| Modifier and Type | Field and Description |
|---|---|
int |
load |
| Constructor and Description |
|---|
MockMonitor(int load,
List<ResourceNode> nodes,
ResourceNode id,
ResourceNode url,
ResourceNode reduce) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNode(ResourceNode node) |
boolean |
assignLoad(ResourceNode node,
int loadValue) |
ResourceNode |
getAdded() |
int |
getLoad(ResourceNode node) |
ResourceNode |
getNodeById(String nodeId) |
ResourceNode |
getNodeByURL(URL ipAddr) |
List |
getNodes() |
boolean |
reduceLoad(ResourceNode node,
int loadValue) |
void |
removeNodeById(String nodeId) |
public MockMonitor(int load,
List<ResourceNode> nodes,
ResourceNode id,
ResourceNode url,
ResourceNode reduce)
public int getLoad(ResourceNode node) throws MonitorException
getLoad in interface MonitorMonitorExceptionpublic List getNodes() throws MonitorException
getNodes in interface MonitorMonitorExceptionpublic ResourceNode getNodeById(String nodeId) throws MonitorException
getNodeById in interface MonitorMonitorExceptionpublic ResourceNode getNodeByURL(URL ipAddr) throws MonitorException
getNodeByURL in interface MonitorMonitorExceptionpublic boolean reduceLoad(ResourceNode node, int loadValue) throws MonitorException
reduceLoad in interface MonitorMonitorExceptionpublic boolean assignLoad(ResourceNode node, int loadValue) throws MonitorException
assignLoad in interface MonitorMonitorExceptionpublic void addNode(ResourceNode node) throws MonitorException
addNode in interface MonitorMonitorExceptionpublic void removeNodeById(String nodeId) throws MonitorException
removeNodeById in interface MonitorMonitorExceptionpublic ResourceNode getAdded()
Copyright © 1999–2017 Apache OODT. All rights reserved.