@PublicAPI public class RuntimeDataMBeanImpl extends StandardMBean implements RuntimeDataMBean
RuntimeDataMBean
to expose the runtime data of the Resource
Manager following the JMX standard for management. It provides a consistent view of
the Resource Manager statistics.RuntimeDataMBean
Modifier and Type | Field and Description |
---|---|
protected RMStatistics |
rmStatistics
The reference on the statistics holder.
|
Constructor and Description |
---|
RuntimeDataMBeanImpl(RMStatistics rmStatistics)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
int |
getAvailableNodesCount()
Returns the current number of available nodes.
|
double |
getAverageActivity()
Returns the average activity percentage.
|
double |
getAverageInactivity()
Returns the average inactivity percentage.
|
int |
getBusyNodesCount()
Returns the current number of nodes in
NodeState.BUSY state. |
int |
getConfigNodesCount()
Returns the current number of nodes in
NodeState.CONFIGURING state. |
int |
getDeployingNodesCount()
Returns the current number of nodes in
NodeState.DEPLOYING state. |
int |
getDownNodesCount()
Returns the current number of nodes in
NodeState.DOWN state. |
int |
getFreeNodesCount()
Returns the current number of nodes in
NodeState.FREE state. |
int |
getLostNodesCount()
Returns the current number of nodes in
NodeState.LOST state. |
int |
getMaxBusyNodes()
Returns the maximum number of nodes in
NodeState.BUSY state. |
int |
getMaxConfiguringNodes()
Returns the maximum number of nodes in
NodeState.CONFIGURING state. |
int |
getMaxDeployingNodes()
Returns the maximum number of nodes in
NodeState.DEPLOYING state. |
int |
getMaxDownNodes()
Returns the maximum number of nodes in
NodeState.FREE state. |
int |
getMaxFreeNodes()
Returns the maximum number of nodes in
NodeState.FREE state. |
int |
getMaxLostNodes()
Returns the maximum number of nodes in
NodeState.LOST state. |
int |
getMaxToBeReleasedNodes()
Returns the maximum number of nodes in
NodeState.TO_BE_REMOVED state. |
int |
getNeededNodesCount() |
byte[] |
getStatisticHistory()
Sends the statistics accumulated in the RRD data base
|
String |
getStatus()
Returns the current status of the resource manager.
|
int |
getToBeReleasedNodesCount()
Returns the current number of nodes in
NodeState.TO_BE_REMOVED state. |
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation
protected final RMStatistics rmStatistics
public RuntimeDataMBeanImpl(RMStatistics rmStatistics) throws NotCompliantMBeanException
rmStatistics
- The instance of the statistics holderNotCompliantMBeanException
- if the RuntimeDataMBean
interface does not follow
JMX design patterns for Management Interfaces, or if this does not
implement the specified interface.public String getStatus()
RuntimeDataMBean
getStatus
in interface RuntimeDataMBean
RuntimeDataMBean.getStatus()
public int getAvailableNodesCount()
RuntimeDataMBean
getAvailableNodesCount
in interface RuntimeDataMBean
RuntimeDataMBean.getAvailableNodesCount()
public int getNeededNodesCount()
getNeededNodesCount
in interface RuntimeDataMBean
public int getConfigNodesCount()
RuntimeDataMBean
NodeState.CONFIGURING
state.getConfigNodesCount
in interface RuntimeDataMBean
NodeState.CONFIGURING
state.RuntimeDataMBean.getConfigNodesCount()
public int getLostNodesCount()
RuntimeDataMBean
NodeState.LOST
state.getLostNodesCount
in interface RuntimeDataMBean
NodeState.LOST
state.RuntimeDataMBean.getLostNodesCount()
public int getDeployingNodesCount()
RuntimeDataMBean
NodeState.DEPLOYING
state.getDeployingNodesCount
in interface RuntimeDataMBean
NodeState.DEPLOYING
state.RuntimeDataMBean.getDeployingNodesCount()
public int getFreeNodesCount()
RuntimeDataMBean
NodeState.FREE
state.getFreeNodesCount
in interface RuntimeDataMBean
RuntimeDataMBean.getFreeNodesCount()
public int getBusyNodesCount()
RuntimeDataMBean
NodeState.BUSY
state.getBusyNodesCount
in interface RuntimeDataMBean
RuntimeDataMBean.getBusyNodesCount()
public int getToBeReleasedNodesCount()
RuntimeDataMBean
NodeState.TO_BE_REMOVED
state.getToBeReleasedNodesCount
in interface RuntimeDataMBean
RuntimeDataMBean.getToBeReleasedNodesCount()
public int getDownNodesCount()
RuntimeDataMBean
NodeState.DOWN
state.getDownNodesCount
in interface RuntimeDataMBean
RuntimeDataMBean.getDownNodesCount()
public int getMaxConfiguringNodes()
RuntimeDataMBean
NodeState.CONFIGURING
state.getMaxConfiguringNodes
in interface RuntimeDataMBean
NodeState.CONFIGURING
state.RuntimeDataMBean.getMaxConfiguringNodes()
public int getMaxLostNodes()
RuntimeDataMBean
NodeState.LOST
state.getMaxLostNodes
in interface RuntimeDataMBean
NodeState.LOST
state.RuntimeDataMBean.getMaxLostNodes()
public int getMaxDeployingNodes()
RuntimeDataMBean
NodeState.DEPLOYING
state.getMaxDeployingNodes
in interface RuntimeDataMBean
NodeState.DEPLOYING
state.RuntimeDataMBean.getMaxDeployingNodes()
public int getMaxFreeNodes()
RuntimeDataMBean
NodeState.FREE
state.getMaxFreeNodes
in interface RuntimeDataMBean
RuntimeDataMBean.getMaxFreeNodes()
public int getMaxBusyNodes()
RuntimeDataMBean
NodeState.BUSY
state.getMaxBusyNodes
in interface RuntimeDataMBean
RuntimeDataMBean.getMaxBusyNodes()
public int getMaxToBeReleasedNodes()
RuntimeDataMBean
NodeState.TO_BE_REMOVED
state.getMaxToBeReleasedNodes
in interface RuntimeDataMBean
RuntimeDataMBean.getMaxToBeReleasedNodes()
public int getMaxDownNodes()
RuntimeDataMBean
NodeState.FREE
state.getMaxDownNodes
in interface RuntimeDataMBean
RuntimeDataMBean.getMaxDownNodes()
public double getAverageActivity()
RuntimeDataMBean
getAverageActivity
in interface RuntimeDataMBean
RuntimeDataMBean.getAverageActivity()
public double getAverageInactivity()
RuntimeDataMBean
getAverageInactivity
in interface RuntimeDataMBean
RuntimeDataMBean.getAverageInactivity()
public byte[] getStatisticHistory() throws IOException
RuntimeDataMBean
getStatisticHistory
in interface RuntimeDataMBean
IOException
- when data base cannot be readRuntimeDataMBean.getStatisticHistory()