org.ourgrid.peer.community.obtainer
Class EBCommunityObtainer
java.lang.Object
org.ourgrid.peer.community.obtainer.EBCommunityObtainer
- All Implemented Interfaces:
- EBGump, EBGumpClient
public class EBCommunityObtainer
- extends java.lang.Object
- implements EBGump, EBGumpClient
This entity is responsible for, in this peer, ask the community for
GridMachine
s. Also, At the beginning of the request process,
it will broadcast a wannaGuM message for a request, and when receive answers
(hereIsGuM) will pass a valid OurGridMachine abstraction to the PeerManager
and start the counters for the usage time for the respective GuM.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EBCommunityObtainer
public EBCommunityObtainer(EBGumpClient consumer,
UIManager uimanager)
EBCommunityObtainer
protected EBCommunityObtainer(EBGumpClient consumer,
CommunicationLayer communication,
UIManager uimanager)
requestGums
public void requestGums(RequestSpec requestSpec)
- Specified by:
requestGums
in interface EBGump
- See Also:
EBGump.requestGums(RequestSpec)
finishRequestGums
public void finishRequestGums(long requestID)
- Specified by:
finishRequestGums
in interface EBGump
- See Also:
EBGump.finishRequestGums(long)
disposeGum
public void disposeGum(long requestID,
GumID gumID)
- Specified by:
disposeGum
in interface EBGump
- See Also:
EBGump.disposeGum(long, GumID)
pauseRequestGums
public void pauseRequestGums(long requestID)
- Specified by:
pauseRequestGums
in interface EBGump
- See Also:
EBGump.pauseRequestGums(long)
resumeRequestGums
public void resumeRequestGums(long requestID)
- Specified by:
resumeRequestGums
in interface EBGump
- See Also:
EBGump.resumeRequestGums(long)
hereIsGum
public void hereIsGum(EBGum receivedGum,
ObjectID gumOwnerObjectID,
long requestID)
- Specified by:
hereIsGum
in interface EBGumpClient
- See Also:
EBGumpClient.hereIsGum(EBGum,
org.ourgrid.common.id.ObjectID, long)
unwantedGum
public void unwantedGum(long requestID,
GumID gumID)
- Specified by:
unwantedGum
in interface EBGump
- See Also:
EBGump.unwantedGum(long,
org.ourgrid.common.id.GumID)