org.ourgrid.peer.manager.allocation
Class AllocationEntry
java.lang.Object
org.ourgrid.peer.manager.allocation.AllocationEntry
public class AllocationEntry
- extends java.lang.Object
This class represents an allocation in the peer. It indicates who is using
this machine and if the machine is local or from the Community.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AllocationEntry
public AllocationEntry(EBGum ebGum,
GumSpec gumSpec)
getStatus
public AllocationStatus getStatus()
getGumSpec
public GumSpec getGumSpec()
isAllocated
public boolean isAllocated()
isAllocatedToRequest
public boolean isAllocatedToRequest(long requestID)
isALocalGum
public boolean isALocalGum()
isARemoteGum
public boolean isARemoteGum()
allocate
public void allocate(long requestID,
boolean requestIsLocal)
deallocate
protected void deallocate()
getEBGum
public EBGum getEBGum()
getRequestID
public long getRequestID()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
getGumSource
public AllocationEntry.GumSource getGumSource()