@InterfaceAudience.Public @InterfaceStability.Stable public abstract class YarnClusterMetrics extends Object
YarnClusterMetrics represents cluster metrics.
Currently only number of NodeManagers is provided.
| Constructor and Description |
|---|
YarnClusterMetrics() |
| Modifier and Type | Method and Description |
|---|---|
abstract int |
getNumActiveNodeManagers()
Get the number of
ActiveNodeManagers in the cluster. |
abstract int |
getNumDecommissionedNodeManagers()
Get the number of
DecommissionedNodeManagers in the cluster. |
abstract int |
getNumDecommissioningNodeManagers()
Get the number of
DecommissioningNodeManagers in the cluster. |
abstract int |
getNumLostNodeManagers()
Get the number of
LostNodeManagers in the cluster. |
abstract int |
getNumNodeManagers()
Get the number of
NodeManagers in the cluster. |
abstract int |
getNumRebootedNodeManagers()
Get the number of
RebootedNodeManagers in the cluster. |
abstract int |
getNumShutdownNodeManagers()
Get the number of
ShutdownNodeManagers in the cluster. |
abstract int |
getNumUnhealthyNodeManagers()
Get the number of
UnhealthyNodeManagers in the cluster. |
static YarnClusterMetrics |
newInstance(int numNodeManagers) |
abstract void |
setNumActiveNodeManagers(int numActiveNodeManagers) |
abstract void |
setNumDecommissionedNodeManagers(int numDecommissionedNodeManagers) |
abstract void |
setNumDecommissioningNodeManagers(int numDecommissioningNodeManagers) |
abstract void |
setNumLostNodeManagers(int numLostNodeManagers) |
abstract void |
setNumNodeManagers(int numNodeManagers) |
abstract void |
setNumRebootedNodeManagers(int numRebootedNodeManagers) |
abstract void |
setNumShutdownNodeManagers(int numShutdownNodeManagers) |
abstract void |
setNumUnhealthyNodeManagers(int numUnhealthNodeManagers) |
@InterfaceAudience.Private @InterfaceStability.Unstable public static YarnClusterMetrics newInstance(int numNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Stable public abstract int getNumNodeManagers()
NodeManagers in the cluster.NodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumNodeManagers(int numNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumDecommissioningNodeManagers()
DecommissioningNodeManagers in the cluster.DecommissioningNodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumDecommissioningNodeManagers(int numDecommissioningNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumDecommissionedNodeManagers()
DecommissionedNodeManagers in the cluster.DecommissionedNodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumDecommissionedNodeManagers(int numDecommissionedNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumActiveNodeManagers()
ActiveNodeManagers in the cluster.ActiveNodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumActiveNodeManagers(int numActiveNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumLostNodeManagers()
LostNodeManagers in the cluster.LostNodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumLostNodeManagers(int numLostNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumUnhealthyNodeManagers()
UnhealthyNodeManagers in the cluster.UnhealthyNodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumUnhealthyNodeManagers(int numUnhealthNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumRebootedNodeManagers()
RebootedNodeManagers in the cluster.RebootedNodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumRebootedNodeManagers(int numRebootedNodeManagers)
@InterfaceAudience.Public @InterfaceStability.Unstable public abstract int getNumShutdownNodeManagers()
ShutdownNodeManagers in the cluster.ShutdownNodeManagers in the cluster@InterfaceAudience.Private @InterfaceStability.Unstable public abstract void setNumShutdownNodeManagers(int numShutdownNodeManagers)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.