public interface Monitor
The Job Monitor interface.
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(ResourceNode node)
Adds a new
ResourceNode for this Monitor to manage (if
node already exist, then should perform update) |
boolean |
assignLoad(ResourceNode node,
int loadValue) |
int |
getLoad(ResourceNode node)
Gets the load on a resource node available to the resource manager.
|
ResourceNode |
getNodeById(String nodeId)
Gets the
ResourceNode with the given nodeId. |
ResourceNode |
getNodeByURL(URL ipAddr)
Returns the
ResourceNode with the given ipAddr. |
List |
getNodes() |
boolean |
reduceLoad(ResourceNode node,
int loadValue)
Reduces the load on a particular
ResourceNode by the given
loadValue. |
void |
removeNodeById(String nodeId)
Remove
ResourceNode from this Monitor |
int getLoad(ResourceNode node) throws MonitorException
node - The ResourceNode to obtain the load for.ResourceNode.MonitorException - If there is any error obtaining the load.List getNodes() throws MonitorException
List of the ResourceNodes known to the resource
manager.MonitorException - If any error occurs getting the List of
ResourceNodes.ResourceNode getNodeById(String nodeId) throws MonitorException
ResourceNode with the given nodeId.ResourceNode for the corresponding nodeId.MonitorException - If any error occurs.ResourceNode getNodeByURL(URL ipAddr) throws MonitorException
ResourceNode with the given ipAddr.ipAddr - The URL of the ResourceNode to return.ResourceNode with the given ipAddr.MonitorException - If any error occurs.boolean reduceLoad(ResourceNode node, int loadValue) throws MonitorException
ResourceNode by the given
loadValue.node - The ResourceNode to reduce the load on.loadValue - The amount of reduction.MonitorException - If any error occurs.boolean assignLoad(ResourceNode node, int loadValue) throws MonitorException
node - The ResourceNode to assign load to.loadValue - The integer load to assign to the given ResourceNode.MonitorException - If any error occurs assigning the load.void addNode(ResourceNode node) throws MonitorException
ResourceNode for this Monitor to manage (if
node already exist, then should perform update)node - The new ResourceNode to manageMonitorExceptionvoid removeNodeById(String nodeId) throws MonitorException
ResourceNode from this MonitornodeId - The id of the ResourceNode to removeMonitorExceptionCopyright © 1999–2017 Apache OODT. All rights reserved.