Package org.apache.bookkeeper.client
Class BookieInfoReader.BookieInfo
- java.lang.Object
-
- org.apache.bookkeeper.client.BookieInfoReader.BookieInfo
-
- All Implemented Interfaces:
WeightedRandomSelection.WeightedObject
- Enclosing class:
- BookieInfoReader
public static class BookieInfoReader.BookieInfo extends java.lang.Object implements WeightedRandomSelection.WeightedObject
A class represents the information (e.g. disk usage, load) of a bookie.NOTE: This class is tended to be used by this project only. External users should not rely on it directly.
-
-
Constructor Summary
Constructors Constructor Description BookieInfo()
BookieInfo(long totalDiskSpace, long freeDiskSpace)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getFreeDiskSpace()
long
getTotalDiskSpace()
long
getWeight()
java.lang.String
toString()
-
-
-
Method Detail
-
getFreeDiskSpace
public long getFreeDiskSpace()
-
getTotalDiskSpace
public long getTotalDiskSpace()
-
getWeight
public long getWeight()
- Specified by:
getWeight
in interfaceWeightedRandomSelection.WeightedObject
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-