public final class NodeInfo extends Object implements Comparable<NodeInfo>
Constructor and Description |
---|
NodeInfo(WorkerInfo workerInfo)
Instantiates a new Node info.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(NodeInfo o)
Compare
NodeInfo by lexicographical order of their associated host. |
boolean |
equals(Object o) |
long |
getBlockCount()
Gets worker block count.
|
String |
getCapacity()
Gets capacity.
|
int |
getFreeSpacePercent()
Gets free space percent.
|
String |
getHost()
Gets host.
|
String |
getLastHeartbeat()
Gets last heartbeat.
|
String |
getState()
Gets state.
|
String |
getUptimeClockTime()
Gets uptime clock time.
|
String |
getUsedMemory()
Gets used memory.
|
int |
getUsedSpacePercent()
Gets used space percent.
|
int |
getWebPort()
Gets web port.
|
long |
getWorkerId()
Gets worker id.
|
int |
hashCode() |
public NodeInfo(WorkerInfo workerInfo)
workerInfo
- the worker infopublic String getCapacity()
public int getFreeSpacePercent()
public String getLastHeartbeat()
public String getHost()
public int getWebPort()
public String getState()
public String getUptimeClockTime()
public String getUsedMemory()
public int getUsedSpacePercent()
public long getWorkerId()
public long getBlockCount()
public int compareTo(NodeInfo o)
NodeInfo
by lexicographical order of their associated host.compareTo
in interface Comparable<NodeInfo>
o
- the comparison termthis.getHost
is lexicographically "bigger" than
o.getHost
, 0 if the hosts are equal, a negative value otherwise.Copyright © 2023. All Rights Reserved.