|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ourgrid.peer.manager.allocation.AllocationManager
public class AllocationManager
Keeps track of all the machines available to the peer.
Constructor Summary | |
---|---|
protected |
AllocationManager()
|
Method Summary | |
---|---|
void |
allocateGumToRequest(GumID gumID,
long requestID,
boolean requestIsLocal)
|
void |
deallocateAndRemove(GumID gumID)
A gum has to be disposed. |
void |
deallocateGum(GumID gumID)
Deallocates a gum from the current user. |
java.util.Collection<AllocationEntry> |
getAllocationEntries(AllocationEntry.GumSource gumSource,
AllocationStatus status)
|
AllocationEntry |
getAllocationEntry(GumID gumID)
|
static AllocationManager |
getInstance()
|
java.util.Collection<AllocationEntry> |
getLocalDonated()
|
java.util.Collection<AllocationEntry> |
getLocalGums()
|
java.util.Collection<AllocationEntry> |
getLocalIdle()
|
java.util.Collection<AllocationEntry> |
getLocalInUse()
|
int |
getNumberOfLocalGums()
|
java.util.Collection<AllocationEntry> |
getRemoteGums()
|
java.util.Collection<AllocationEntry> |
getRemoteIdle()
|
java.util.Collection<AllocationEntry> |
getRemoteInUse()
|
boolean |
gumExists(GumID gumID)
|
AllocationEntry |
gumReceived(EBGum ebGum,
GumSpec gumSpec)
A new gum has been received |
static void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AllocationManager()
Method Detail |
---|
public static AllocationManager getInstance()
public AllocationEntry gumReceived(EBGum ebGum, GumSpec gumSpec)
ebGum
- The event-base gum object representing the grid machinegumSpec
- The grid machine specification
public boolean gumExists(GumID gumID)
public void deallocateAndRemove(GumID gumID)
gumID
- the Id of the gum to be disposed.public void allocateGumToRequest(GumID gumID, long requestID, boolean requestIsLocal)
public void deallocateGum(GumID gumID)
gumID
- The GridMachine name.public java.util.Collection<AllocationEntry> getAllocationEntries(AllocationEntry.GumSource gumSource, AllocationStatus status)
public int getNumberOfLocalGums()
public java.util.Collection<AllocationEntry> getLocalGums()
public java.util.Collection<AllocationEntry> getLocalInUse()
public java.util.Collection<AllocationEntry> getLocalDonated()
public java.util.Collection<AllocationEntry> getLocalIdle()
public java.util.Collection<AllocationEntry> getRemoteGums()
public java.util.Collection<AllocationEntry> getRemoteInUse()
public java.util.Collection<AllocationEntry> getRemoteIdle()
public AllocationEntry getAllocationEntry(GumID gumID)
public static void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |