|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmedisyn.ScenarioNodeMgr
public class ScenarioNodeMgr
Manages all nodes taking part in a scenario
Field Summary | |
---|---|
private java.util.Vector<X2XProxy> |
nodes
|
Constructor Summary | |
---|---|
ScenarioNodeMgr()
construct a ScenarioNodeMgr with some statically added nodes |
Method Summary | |
---|---|
void |
addNode(X2XProxy node)
adds a node into node-vector |
void |
deleteAllNodes()
deletes all nodes from scenario |
void |
deleteNode(X2XProxy node)
deletes a node frome node-vector |
X2XProxy |
findNode(int[] ip)
Finds the proxy with the given ip in all nodes |
X2XProxy |
findNode(java.lang.String hostName)
Tries to find the X2XProxy which has the given hostname. |
static X2XProxy |
findNode(java.util.Vector<X2XProxy> proxies,
int[] ip)
Finds the proxy with the given ip |
java.util.Vector<X2XProxy> |
getNodes()
|
void |
reorderNodes()
changes the order of the nodes in the vector to a random one |
void |
setNodes(java.util.Vector<X2XProxy> nodes)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Vector<X2XProxy> nodes
Constructor Detail |
---|
public ScenarioNodeMgr()
Method Detail |
---|
public java.util.Vector<X2XProxy> getNodes()
public void reorderNodes()
public void setNodes(java.util.Vector<X2XProxy> nodes)
nodes
- the nodes to setpublic void addNode(X2XProxy node)
node
- - node to addpublic void deleteNode(X2XProxy node)
node
- - node to deletepublic void deleteAllNodes()
public X2XProxy findNode(java.lang.String hostName)
X2XProxy
which has the given hostname.
hostName
-
X2XProxy
with the given name, if it can be found, null otherwise.public X2XProxy findNode(int[] ip)
ip
- - the ip which shall be found
public static X2XProxy findNode(java.util.Vector<X2XProxy> proxies, int[] ip)
proxies
- - the vector of proxies to search inip
- - the ip which shall be found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |