Class YarnClusterMetrics
java.lang.Object
org.apache.hadoop.yarn.api.records.YarnClusterMetrics
YarnClusterMetrics represents cluster metrics.
Currently only number of NodeManagers is provided.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract intGet the number ofActiveNodeManagers in the cluster.abstract intGet the number ofDecommissionedNodeManagers in the cluster.abstract intGet the number ofDecommissioningNodeManagers in the cluster.abstract intGet the number ofLostNodeManagers in the cluster.abstract intGet the number ofNodeManagers in the cluster.abstract intGet the number ofRebootedNodeManagers in the cluster.abstract intGet the number ofShutdownNodeManagers in the cluster.abstract intGet the number ofUnhealthyNodeManagers in the cluster.static YarnClusterMetricsnewInstance(int numNodeManagers) abstract voidsetNumActiveNodeManagers(int numActiveNodeManagers) abstract voidsetNumDecommissionedNodeManagers(int numDecommissionedNodeManagers) abstract voidsetNumDecommissioningNodeManagers(int numDecommissioningNodeManagers) abstract voidsetNumLostNodeManagers(int numLostNodeManagers) abstract voidsetNumNodeManagers(int numNodeManagers) abstract voidsetNumRebootedNodeManagers(int numRebootedNodeManagers) abstract voidsetNumShutdownNodeManagers(int numShutdownNodeManagers) abstract voidsetNumUnhealthyNodeManagers(int numUnhealthNodeManagers)
-
Constructor Details
-
YarnClusterMetrics
public YarnClusterMetrics()
-
-
Method Details
-
newInstance
-
getNumNodeManagers
@Public @Stable public abstract int getNumNodeManagers()Get the number ofNodeManagers in the cluster.- Returns:
- number of
NodeManagers in the cluster
-
setNumNodeManagers
@Private @Unstable public abstract void setNumNodeManagers(int numNodeManagers) -
getNumDecommissioningNodeManagers
@Public @Unstable public abstract int getNumDecommissioningNodeManagers()Get the number ofDecommissioningNodeManagers in the cluster.- Returns:
- number of
DecommissioningNodeManagers in the cluster
-
setNumDecommissioningNodeManagers
@Private @Unstable public abstract void setNumDecommissioningNodeManagers(int numDecommissioningNodeManagers) -
getNumDecommissionedNodeManagers
@Public @Unstable public abstract int getNumDecommissionedNodeManagers()Get the number ofDecommissionedNodeManagers in the cluster.- Returns:
- number of
DecommissionedNodeManagers in the cluster
-
setNumDecommissionedNodeManagers
@Private @Unstable public abstract void setNumDecommissionedNodeManagers(int numDecommissionedNodeManagers) -
getNumActiveNodeManagers
@Public @Unstable public abstract int getNumActiveNodeManagers()Get the number ofActiveNodeManagers in the cluster.- Returns:
- number of
ActiveNodeManagers in the cluster
-
setNumActiveNodeManagers
@Private @Unstable public abstract void setNumActiveNodeManagers(int numActiveNodeManagers) -
getNumLostNodeManagers
@Public @Unstable public abstract int getNumLostNodeManagers()Get the number ofLostNodeManagers in the cluster.- Returns:
- number of
LostNodeManagers in the cluster
-
setNumLostNodeManagers
@Private @Unstable public abstract void setNumLostNodeManagers(int numLostNodeManagers) -
getNumUnhealthyNodeManagers
@Public @Unstable public abstract int getNumUnhealthyNodeManagers()Get the number ofUnhealthyNodeManagers in the cluster.- Returns:
- number of
UnhealthyNodeManagers in the cluster
-
setNumUnhealthyNodeManagers
@Private @Unstable public abstract void setNumUnhealthyNodeManagers(int numUnhealthNodeManagers) -
getNumRebootedNodeManagers
@Public @Unstable public abstract int getNumRebootedNodeManagers()Get the number ofRebootedNodeManagers in the cluster.- Returns:
- number of
RebootedNodeManagers in the cluster
-
setNumRebootedNodeManagers
@Private @Unstable public abstract void setNumRebootedNodeManagers(int numRebootedNodeManagers) -
getNumShutdownNodeManagers
@Public @Unstable public abstract int getNumShutdownNodeManagers()Get the number ofShutdownNodeManagers in the cluster.- Returns:
- number of
ShutdownNodeManagers in the cluster
-
setNumShutdownNodeManagers
@Private @Unstable public abstract void setNumShutdownNodeManagers(int numShutdownNodeManagers)
-