org.ourgrid.mygrid.scheduler.gridmanager
Class GridManagerEntry

java.lang.Object
  extended by 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

Constructor Summary
GridManagerEntry(GumSpec spec, int jobID, ObjectID peerBrokerAccessId)
           
GridManagerEntry(long requestId, int jobID, GumClient gumClient, ObjectID peerBrokerAccessID)
           
 
Method Summary
 void allocate(ReplicaEntry replica)
           
 GumClient getGum()
           
 GumID getGumID()
           
 GumSpec getGumSpec()
           
 int getJobID()
           
 ObjectID getPeerBrokerAccessID()
           
 ReplicaEntry getReplica()
           
 long getRequestId()
           
 GumStatus getState()
           
 boolean isReady()
          Verifies if the gum is ready.
 void ready()
          Sets the gum state to READY
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridManagerEntry

public GridManagerEntry(long requestId,
                        int jobID,
                        GumClient gumClient,
                        ObjectID peerBrokerAccessID)

GridManagerEntry

public GridManagerEntry(GumSpec spec,
                        int jobID,
                        ObjectID peerBrokerAccessId)
Method Detail

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()