org.ourgrid.peer.manager.allocation
Class AllocationEntry

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


Nested Class Summary
static class AllocationEntry.GumSource
           
 
Constructor Summary
AllocationEntry(EBGum ebGum, GumSpec gumSpec)
           
 
Method Summary
 void allocate(long requestID, boolean requestIsLocal)
           
protected  void deallocate()
           
 EBGum getEBGum()
           
 AllocationEntry.GumSource getGumSource()
           
 GumSpec getGumSpec()
           
 long getRequestID()
           
 AllocationStatus getStatus()
           
 boolean isAllocated()
           
 boolean isAllocatedToRequest(long requestID)
           
 boolean isALocalGum()
           
 boolean isARemoteGum()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AllocationEntry

public AllocationEntry(EBGum ebGum,
                       GumSpec gumSpec)
Method Detail

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