public final class RMStatistics extends Object
Constructor and Description |
---|
RMStatistics()
Creates a new instance of the this class.
|
RMStatistics(RMStatistics rmStatistics)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
double |
getActivityTimePercentage()
Returns the nodes activity time percentage.
|
int |
getAvailableNodesCount()
Returns the current number of available nodes.
|
int |
getBusyNodesCount()
Returns the current number of nodes in
NodeState.BUSY state. |
int |
getConfiguringNodesCount()
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. |
double |
getInactivityTimePercentage()
Returns the nodes inactivity time percentage.
|
int |
getLostNodesCount()
Returns the current number of nodes in
NodeState.LOST state. |
int |
getMaxBusyNodes()
Returns the maximum number of busy nodes.
|
int |
getMaxConfiguringNodes()
Returns the maximum number of configuring nodes.
|
int |
getMaxDeployingNodes()
Returns the maximum number of deploying nodes.
|
int |
getMaxDownNodes()
Returns the maximum number of down nodes.
|
int |
getMaxFreeNodes()
Returns the maximum number of free nodes.
|
int |
getMaxLostNodes()
Returns the maximum number of lost nodes.
|
int |
getMaxToBeReleasedNodes()
Returns the maximum number of toBeReleased nodes.
|
int |
getNeededNodes() |
String |
getRMStatus()
Returns the current status of the resource manager.
|
int |
getToBeRemovedNodesCount()
Returns the current number of nodes in
NodeState.TO_BE_REMOVED state. |
void |
nodeEvent(RMNodeEvent event)
Handle incoming node events of the Resource Manager
|
void |
rmEvent(RMEvent event)
Handle incoming Resource Manager events
|
void |
setNeededNodes(int neededNodes) |
RMStatistics |
updateFrom(RMStatistics rmStatistics)
Updates all fields of this class from an existing instance.
|
public RMStatistics()
public RMStatistics(RMStatistics rmStatistics)
public RMStatistics updateFrom(RMStatistics rmStatistics)
rmStatistics
- existing instance of this classpublic void nodeEvent(RMNodeEvent event)
event
- incoming eventpublic void rmEvent(RMEvent event)
event
- The Resource Manager eventpublic String getRMStatus()
public int getAvailableNodesCount()
public int getNeededNodes()
public int getConfiguringNodesCount()
NodeState.CONFIGURING
state.NodeState.CONFIGURING
state.public int getDeployingNodesCount()
NodeState.DEPLOYING
state.NodeState.DEPLOYING
state.public int getLostNodesCount()
NodeState.LOST
state.NodeState.LOST
state.public int getFreeNodesCount()
NodeState.FREE
state.public int getBusyNodesCount()
NodeState.BUSY
state.public int getToBeRemovedNodesCount()
NodeState.TO_BE_REMOVED
state.public int getDownNodesCount()
NodeState.DOWN
state.public int getMaxConfiguringNodes()
public int getMaxDeployingNodes()
public int getMaxLostNodes()
public int getMaxFreeNodes()
public int getMaxBusyNodes()
public int getMaxToBeReleasedNodes()
public int getMaxDownNodes()
public double getActivityTimePercentage()
public double getInactivityTimePercentage()
public void setNeededNodes(int neededNodes)