|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava2gomd.GomdObject
java2gomd.Cluster
Represents a whole cluster with Gomd running on each node. Each instance has its own hash, usable to check if we have multiple connections to the same cluster.
Hashtable
Field Summary | |
GomdClient |
clientConnection
|
Constructor Summary | |
Cluster(GomdClient c)
Creates a Cluster object communicating via GomdClient c |
Method Summary | |
int[] |
cwc(java.lang.String cmd)
Runs a command on every node using Secure Cluster eXecution |
int |
getHash()
Returns a hash unique for every cluster. |
int |
getLoad()
Returns the average load of all the nodes in the cluster in percents. |
int |
getLoadbalancingEfficiency()
Returns the Loadbalancing efficiency of the cluster It calculates 100%-(maxload - minload). |
long |
getMemory()
Returns the total amount of memory psysically available in the cluster It requests all nodes and then requests the memory available in each node. |
java.util.Hashtable |
getNodes()
Returns a Hashtable containing all available nodes in the cluster. |
long |
getSpeed()
Returns the total speed of all nodes in the cluster running gomd. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public GomdClient clientConnection
Constructor Detail |
public Cluster(GomdClient c)
c
- The GomdClient it is going to use to get info from. This GomdClient is also used by all other objects in this ClusterMethod Detail |
public int getHash() throws java.io.IOException
java.io.IOException
public int getLoad() throws java.io.IOException
java.io.IOException
public long getMemory() throws java.io.IOException
java.io.IOException
public long getSpeed() throws java.io.IOException
java.io.IOException
public int getLoadbalancingEfficiency() throws java.io.IOException
java.io.IOException
public java.util.Hashtable getNodes() throws java.io.IOException
Node n = (Node)getNodes().get("257");
java.io.IOException
public int[] cwc(java.lang.String cmd) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |