@InterfaceAudience.Public @InterfaceStability.Stable public abstract class YarnClusterMetrics extends Object
YarnClusterMetrics
represents cluster metrics.
Currently only number of NodeManager
s is provided.
Constructor and Description |
---|
YarnClusterMetrics() |
Modifier and Type | Method and Description |
---|---|
abstract int |
getNumActiveNodeManagers()
Get the number of
ActiveNodeManager s in the cluster. |
abstract int |
getNumDecommissionedNodeManagers()
Get the number of
DecommissionedNodeManager s in the cluster. |
abstract int |
getNumLostNodeManagers()
Get the number of
LostNodeManager s in the cluster. |
abstract int |
getNumNodeManagers()
Get the number of
NodeManager s in the cluster. |
abstract int |
getNumRebootedNodeManagers()
Get the number of
RebootedNodeManager s in the cluster. |
abstract int |
getNumUnhealthyNodeManagers()
Get the number of
UnhealthyNodeManager s in the cluster. |
static YarnClusterMetrics |
newInstance(int numNodeManagers) |
abstract void |
setNumActiveNodeManagers(int numActiveNodeManagers) |
abstract void |
setNumDecommissionedNodeManagers(int numDecommissionedNodeManagers) |
abstract void |
setNumLostNodeManagers(int numLostNodeManagers) |
abstract void |
setNumNodeManagers(int numNodeManagers) |
abstract void |
setNumRebootedNodeManagers(int numRebootedNodeManagers) |
abstract void |
setNumUnhealthyNodeManagers(int numUnhealthNodeManagers) |
@InterfaceAudience.Private @InterfaceStability.Unstable public static YarnClusterMetrics newInstance(int numNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getNumNodeManagers()
NodeManager
s in the cluster.NodeManager
s in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumNodeManagers(int numNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumDecommissionedNodeManagers()
DecommissionedNodeManager
s in the cluster.DecommissionedNodeManager
s in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumDecommissionedNodeManagers(int numDecommissionedNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumActiveNodeManagers()
ActiveNodeManager
s in the cluster.ActiveNodeManager
s in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumActiveNodeManagers(int numActiveNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumLostNodeManagers()
LostNodeManager
s in the cluster.LostNodeManager
s in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumLostNodeManagers(int numLostNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumUnhealthyNodeManagers()
UnhealthyNodeManager
s in the cluster.UnhealthyNodeManager
s in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumUnhealthyNodeManagers(int numUnhealthNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumRebootedNodeManagers()
RebootedNodeManager
s in the cluster.RebootedNodeManager
s in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumRebootedNodeManagers(int numRebootedNodeManagers)
Copyright © 2017 Apache Software Foundation. All Rights Reserved.