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