org.ourgrid.mygrid.scheduler.gridmanager
Class GridManagerEntry
java.lang.Object
org.ourgrid.mygrid.scheduler.gridmanager.GridManagerEntry
- All Implemented Interfaces:
- java.io.Serializable
public class GridManagerEntry
- extends java.lang.Object
- implements java.io.Serializable
Objects of this class are responsible for maintaining the state of Gums on
behalf of the Scheduler. It also associates a Gum with its Gump.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GridManagerEntry
public GridManagerEntry(long requestId,
int jobID,
GumClient gumClient,
ObjectID peerBrokerAccessID)
GridManagerEntry
public GridManagerEntry(GumSpec spec,
int jobID,
ObjectID peerBrokerAccessId)
getGum
public GumClient getGum()
getState
public GumStatus getState()
getGumID
public GumID getGumID()
getRequestId
public long getRequestId()
allocate
public void allocate(ReplicaEntry replica)
isReady
public boolean isReady()
- Verifies if the gum is ready.
- Returns:
- True if the gum is free, false otherwise
ready
public void ready()
- Sets the gum state to READY
getPeerBrokerAccessID
public ObjectID getPeerBrokerAccessID()
getGumSpec
public GumSpec getGumSpec()
getJobID
public int getJobID()
getReplica
public ReplicaEntry getReplica()