org.ourgrid.peer.community.communicationlayer
Class CommunicationLayerImpl
java.lang.Object
org.ourgrid.peer.community.communicationlayer.CommunicationLayerImpl
- All Implemented Interfaces:
- CommunicationLayer
public class CommunicationLayerImpl
- extends java.lang.Object
- implements CommunicationLayer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommunicationLayerImpl
protected CommunicationLayerImpl()
- Creates the Communication Layer.
getInstance
public static final CommunicationLayerImpl getInstance()
- Returns:
- The singleton intance.
config
public void config(RemoteAccess remoteAccess)
- Configures the ConcreteCommunicationLayer.
getPeerID
public ObjectID getPeerID()
- Specified by:
getPeerID
in interface CommunicationLayer
- See Also:
CommunicationLayer.getPeerID()
hereIsPeerList
public void hereIsPeerList(java.util.Collection<ObjectID> peerList)
- Specified by:
hereIsPeerList
in interface CommunicationLayer
- See Also:
CommunicationLayer.hereIsPeerList(Collection)
sendRequest
public void sendRequest(RequestSpec requestSpec)
- Specified by:
sendRequest
in interface CommunicationLayer
- See Also:
CommunicationLayer.sendRequest(RequestSpec)
finishRequest
public void finishRequest(long requestID)
- Specified by:
finishRequest
in interface CommunicationLayer
- See Also:
CommunicationLayer.finishRequest(long)
pauseRequest
public void pauseRequest(long requestID)
- Specified by:
pauseRequest
in interface CommunicationLayer
- See Also:
CommunicationLayer.pauseRequest(long)
resumeRequest
public void resumeRequest(long requestID)
- Specified by:
resumeRequest
in interface CommunicationLayer
- See Also:
CommunicationLayer.resumeRequest(long)
disposeOf
public void disposeOf(GumID gumID,
long requestID,
ObjectID peerID)
- Specified by:
disposeOf
in interface CommunicationLayer
- See Also:
CommunicationLayer.disposeOf(GumID,
long, ObjectID)
unwantedGum
public void unwantedGum(ObjectID gumOwnerID,
long requestID,
GumID gumID)
- Specified by:
unwantedGum
in interface CommunicationLayer
- See Also:
CommunicationLayer.unwantedGum(ObjectID,
long, GumID)