Class ServerAndLoad
java.lang.Object
org.apache.hadoop.hbase.master.balancer.ServerAndLoad
- All Implemented Interfaces:
Serializable
,Comparable<ServerAndLoad>
Data structure that holds servername and 'load'.
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
private static final long
private final ServerName
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(ServerAndLoad other) boolean
(package private) int
getLoad()
(package private) ServerName
int
hashCode()
toString()
-
Field Details
-
serialVersionUID
- See Also:
-
sn
-
load
-
-
Constructor Details
-
ServerAndLoad
ServerAndLoad(ServerName sn, int load)
-
-
Method Details
-
getServerName
-
getLoad
int getLoad() -
compareTo
- Specified by:
compareTo
in interfaceComparable<ServerAndLoad>
-
hashCode
-
equals
-
toString
-