org.ourgrid.mygrid.scheduler
Class PeerEntry

java.lang.Object
  extended by org.ourgrid.mygrid.scheduler.PeerEntry
All Implemented Interfaces:
java.io.Serializable

public class PeerEntry
extends java.lang.Object
implements java.io.Serializable

This class is intended to store a GuMSpec and its corresponding gump if it could be instantiated. It it could not, every time the getGuMP() method is called,

See Also:
Serialized Form

Nested Class Summary
static class PeerEntry.PeerState
           
 
Constructor Summary
PeerEntry(PeerSpec peerSpec)
           
 
Method Summary
 boolean equals(PeerSpec peerSpec)
           
 Gump getPeer()
          Gets the instance of the GridMachineProvider that corresponds to a given gumpSpec.
 PeerSpec getPeerSpec()
          Gets the GuMPSpec of this GuMPEntry.
 PeerEntry.PeerState getStatus()
           
 void setPeerStatus(PeerEntry.PeerState status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PeerEntry

public PeerEntry(PeerSpec peerSpec)
Method Detail

getPeer

public Gump getPeer()
Gets the instance of the GridMachineProvider that corresponds to a given gumpSpec.

Returns:
Returns the gridMachineProvider or null if it could not be created.

getPeerSpec

public PeerSpec getPeerSpec()
Gets the GuMPSpec of this GuMPEntry.

Returns:
Returns the gumpSpec.

getStatus

public PeerEntry.PeerState getStatus()

setPeerStatus

public void setPeerStatus(PeerEntry.PeerState status)

equals

public boolean equals(PeerSpec peerSpec)