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 Monitor
MonitorException
public List getNodes() throws MonitorException
getNodes
in interface Monitor
MonitorException
public ResourceNode getNodeById(String nodeId) throws MonitorException
getNodeById
in interface Monitor
MonitorException
public ResourceNode getNodeByURL(URL ipAddr) throws MonitorException
getNodeByURL
in interface Monitor
MonitorException
public boolean reduceLoad(ResourceNode node, int loadValue) throws MonitorException
reduceLoad
in interface Monitor
MonitorException
public boolean assignLoad(ResourceNode node, int loadValue) throws MonitorException
assignLoad
in interface Monitor
MonitorException
public void addNode(ResourceNode node) throws MonitorException
addNode
in interface Monitor
MonitorException
public void removeNodeById(String nodeId) throws MonitorException
removeNodeById
in interface Monitor
MonitorException
public ResourceNode getAdded()
Copyright © 1999–2017 Apache OODT. All rights reserved.