|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object and.Mapping.Cluster
public class Cluster
Class representing a computing nodes cluster
Constructor Summary | |
---|---|
Cluster()
Default constructor. |
|
Cluster(int _nb)
Constructor. |
|
Cluster(int _nb,
java.lang.String _name)
Constructor. |
Method Summary | |
---|---|
void |
addGNode(GNode _n)
Adding a computing node to the cluster. |
java.util.ArrayList<GNode> |
getGNodes()
Return the list of computing nodes which are in the cluster. |
java.lang.String |
getName()
Return cluster's name. |
int |
getNbGNode()
Return the amount of computing nodes in the cluster. |
java.lang.String |
getSite()
Return the site's name in which the cluster is. |
void |
initIndice()
Initialization of indice variable. |
boolean |
isIn(GNode _g)
Test if a computing node is in the cluster. |
GNode |
nextGNode()
Return the next computing node in the cluster, according to the indice variable. |
void |
removeGNode(GNode _dead)
Remove a failed node from the cluster. |
void |
setName(java.lang.String _name)
Set the name of the cluster. |
void |
setSite(java.lang.String _site)
Set the site in which the cluster is. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Cluster()
public Cluster(int _nb)
_nb
- The amount of computing nodes in the clusterpublic Cluster(int _nb, java.lang.String _name)
_nb
- The amount of computing nodes in the cluster_name
- Cluster's nameMethod Detail |
---|
public void setName(java.lang.String _name)
_name
- Cluster's namepublic void addGNode(GNode _n)
_n
- Node to be addpublic java.util.ArrayList<GNode> getGNodes()
public java.lang.String getName()
public int getNbGNode()
public void setSite(java.lang.String _site)
_site
- Site's namepublic java.lang.String getSite()
public boolean isIn(GNode _g)
_g
- The node to be tested
public void initIndice()
public GNode nextGNode()
public void removeGNode(GNode _dead)
_dead
- The failed node
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |