|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.peer.manager.gummanager.GumManagerEntry
public class GumManagerEntry
GumManagerEntry It represents a GridMachine and its state in the Peer.
Constructor Summary | |
---|---|
GumManagerEntry(GumSpec gumSpec)
The GUM will not be contacted during creation. |
Method Summary | |
---|---|
void |
allocate()
Allocates the GridMachine - sets its allocated state to
true . |
int |
compareTo(GumManagerEntry o)
Compares the name of Entries. |
void |
deallocate()
Deallocates the grid machine and stops the module's event processor |
java.util.Map<java.lang.String,java.lang.String> |
getAttributes()
Returns the GridMachine's attributes. |
EBGumFacade |
getEBGumFacade()
Returns the EBGridMachine. |
GumID |
getGumID()
|
java.lang.String |
getGumName()
Returns the GridMachine name. |
GumSpec |
getGumSpec()
Returns the GuMSpec that describes the GridMachine
of this Entry. |
GumStatus |
getStatus()
|
boolean |
isAllocated()
Returns if the GridMachine is allocated or not. |
boolean |
isAvailable()
Returns if the GridMachine is available or not. |
boolean |
isDown()
Returns if the GridMachine is status (working) or not. |
boolean |
isUp()
Returns if the GridMachine is status (working) or not. |
void |
setStatus(GumStatus newState)
|
java.lang.String |
toString()
Returns a String that describes this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GumManagerEntry(GumSpec gumSpec)
gumSpec
- GUM specification represented by this GumManagerEntryMethod Detail |
---|
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
public EBGumFacade getEBGumFacade()
public java.lang.String getGumName()
public GumID getGumID()
public boolean isAvailable()
True
if it is available ( status and
not allocated ). False
otherwise.public boolean isAllocated()
True
if the GuM is allocated. False
otherwise.public boolean isUp()
True
id the GuM is status. False
otherwise.public boolean isDown()
True
id the GuM is status. False
otherwise.public void allocate()
allocated
state to
true
.
public void deallocate()
public void setStatus(GumStatus newState)
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(GumManagerEntry o)
compareTo
in interface java.lang.Comparable<GumManagerEntry>
o
- Object to be compared to. It must be a GridMachineEntry
.
Comparable.compareTo(java.lang.Object)
public GumSpec getGumSpec()
GuMSpec
that describes the GridMachine
of this Entry.
public GumStatus getStatus()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |