Package io.trino.server
Class NodeStatus
- java.lang.Object
-
- io.trino.server.NodeStatus
-
public class NodeStatus extends Object
-
-
Constructor Summary
Constructors Constructor Description NodeStatus(String nodeId, NodeVersion nodeVersion, String environment, boolean coordinator, io.airlift.units.Duration uptime, String externalAddress, String internalAddress, MemoryInfo memoryInfo, int processors, double processCpuLoad, double systemCpuLoad, long heapUsed, long heapAvailable, long nonHeapUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEnvironment()StringgetExternalAddress()longgetHeapAvailable()longgetHeapUsed()StringgetInternalAddress()MemoryInfogetMemoryInfo()StringgetNodeId()NodeVersiongetNodeVersion()longgetNonHeapUsed()doublegetProcessCpuLoad()intgetProcessors()doublegetSystemCpuLoad()io.airlift.units.DurationgetUptime()booleanisCoordinator()
-
-
-
Constructor Detail
-
NodeStatus
public NodeStatus(String nodeId, NodeVersion nodeVersion, String environment, boolean coordinator, io.airlift.units.Duration uptime, String externalAddress, String internalAddress, MemoryInfo memoryInfo, int processors, double processCpuLoad, double systemCpuLoad, long heapUsed, long heapAvailable, long nonHeapUsed)
-
-
Method Detail
-
getNodeId
public String getNodeId()
-
getNodeVersion
public NodeVersion getNodeVersion()
-
getEnvironment
public String getEnvironment()
-
isCoordinator
public boolean isCoordinator()
-
getUptime
public io.airlift.units.Duration getUptime()
-
getExternalAddress
public String getExternalAddress()
-
getInternalAddress
public String getInternalAddress()
-
getMemoryInfo
public MemoryInfo getMemoryInfo()
-
getProcessors
public int getProcessors()
-
getProcessCpuLoad
public double getProcessCpuLoad()
-
getSystemCpuLoad
public double getSystemCpuLoad()
-
getHeapUsed
public long getHeapUsed()
-
getHeapAvailable
public long getHeapAvailable()
-
getNonHeapUsed
public long getNonHeapUsed()
-
-