org.ourgrid.peer.community.communicationlayer
Class CommunicationLayerImpl

java.lang.Object
  extended by org.ourgrid.peer.community.communicationlayer.CommunicationLayerImpl
All Implemented Interfaces:
CommunicationLayer

public class CommunicationLayerImpl
extends java.lang.Object
implements CommunicationLayer


Constructor Summary
protected CommunicationLayerImpl()
          Creates the Communication Layer.
 
Method Summary
 void config(RemoteAccess remoteAccess)
          Configures the ConcreteCommunicationLayer.
 void disposeOf(GumID gumID, long requestID, ObjectID peerID)
           
 void finishRequest(long requestID)
           
static CommunicationLayerImpl getInstance()
           
 ObjectID getPeerID()
           
 void hereIsPeerList(java.util.Collection<ObjectID> peerList)
           
 void pauseRequest(long requestID)
           
 void resumeRequest(long requestID)
           
 void sendRequest(RequestSpec requestSpec)
           
 void unwantedGum(ObjectID gumOwnerID, long requestID, GumID gumID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommunicationLayerImpl

protected CommunicationLayerImpl()
Creates the Communication Layer.

Method Detail

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)