Package alluxio.util.webui
Class NodeInfo
- java.lang.Object
-
- alluxio.util.webui.NodeInfo
-
-
Constructor Summary
Constructors Constructor Description NodeInfo(WorkerInfo workerInfo)
Instantiates a new Node info.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(NodeInfo o)
CompareNodeInfo
by lexicographical order of their associated host.boolean
equals(java.lang.Object o)
long
getBlockCount()
Gets worker block count.java.lang.String
getCapacity()
Gets capacity.int
getFreeSpacePercent()
Gets free space percent.java.lang.String
getHost()
Gets host.java.lang.String
getLastHeartbeat()
Gets last heartbeat.java.lang.String
getRevision()
Gets worker revision.java.lang.String
getState()
Gets state.java.lang.String
getUptimeClockTime()
Gets uptime clock time.java.lang.String
getUsedMemory()
Gets used memory.int
getUsedSpacePercent()
Gets used space percent.java.lang.String
getVersion()
Gets worker version.int
getWebPort()
Gets web port.long
getWorkerId()
Gets worker id.int
hashCode()
-
-
-
Constructor Detail
-
NodeInfo
public NodeInfo(WorkerInfo workerInfo)
Instantiates a new Node info.- Parameters:
workerInfo
- the worker info
-
-
Method Detail
-
getCapacity
public java.lang.String getCapacity()
Gets capacity.- Returns:
- the worker capacity in bytes
-
getFreeSpacePercent
public int getFreeSpacePercent()
Gets free space percent.- Returns:
- the worker free space as a percentage
-
getLastHeartbeat
public java.lang.String getLastHeartbeat()
Gets last heartbeat.- Returns:
- the time of the last worker heartbeat
-
getHost
public java.lang.String getHost()
Gets host.- Returns:
- the worker host
-
getWebPort
public int getWebPort()
Gets web port.- Returns:
- the worker port
-
getState
public java.lang.String getState()
Gets state.- Returns:
- the worker state
-
getUptimeClockTime
public java.lang.String getUptimeClockTime()
Gets uptime clock time.- Returns:
- the worker uptime
-
getUsedMemory
public java.lang.String getUsedMemory()
Gets used memory.- Returns:
- the worker used capacity in bytes
-
getUsedSpacePercent
public int getUsedSpacePercent()
Gets used space percent.- Returns:
- the worker used space as a percentage
-
getWorkerId
public long getWorkerId()
Gets worker id.- Returns:
- the worker id
-
getBlockCount
public long getBlockCount()
Gets worker block count.- Returns:
- the worker block count
-
getVersion
public java.lang.String getVersion()
Gets worker version.- Returns:
- the worker version
-
getRevision
public java.lang.String getRevision()
Gets worker revision.- Returns:
- the worker revision
-
compareTo
public int compareTo(NodeInfo o)
CompareNodeInfo
by lexicographical order of their associated host.- Specified by:
compareTo
in interfacejava.lang.Comparable<NodeInfo>
- Parameters:
o
- the comparison term- Returns:
- a positive value if
this.getHost
is lexicographically "bigger" thano.getHost
, 0 if the hosts are equal, a negative value otherwise.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-