|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.ourgrid.common.rmi.OurgridUnicastRemoteObject
org.ourgrid.corepeer.CorePeerImpl
public class CorePeerImpl
Description: Implementation of CorePeer interface.
Field Summary | |
---|---|
static long |
serialVersionUID
Serial identification of the class. |
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
CorePeerImpl()
Default constructor. |
Method Summary | |
---|---|
java.util.List<ObjectID> |
getKnownPeers(ObjectID peerId)
Returns a list of known peers in the OurGrid Community. |
java.util.Collection<ObjectID> |
getPeerList()
Gets a collection of know peers. |
java.util.List<ObjectID> |
hereIAm(ObjectID peerID)
Called when a peer wants to join the OurGrid Community. |
void |
newPeerArrived(ObjectID peerID)
Add a peer to knowPeers list. |
void |
removePeer(ObjectID peerID)
Remove a peer from knowPeers list. |
void |
setFailureDetector(CorePeerFailureDetector fd)
|
void |
setPingerFactory(PingerFactory pingerFactory)
|
void |
shutdown()
Shutdown a core peer. |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
---|
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
---|
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
---|
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final long serialVersionUID
Constructor Detail |
---|
public CorePeerImpl() throws java.rmi.RemoteException
java.rmi.RemoteException
- If could not create the object.Method Detail |
---|
public java.util.List<ObjectID> hereIAm(ObjectID peerID) throws java.rmi.RemoteException
CorePeer
hereIAm
in interface CorePeer
peerID
- The id of the caller peer.
java.rmi.RemoteException
- If cannot contact the core peer.CorePeer.hereIAm(ObjectID)
public void newPeerArrived(ObjectID peerID)
CorePeer
newPeerArrived
in interface CorePeer
peerID
- informations about the peerpublic void removePeer(ObjectID peerID)
CorePeer
removePeer
in interface CorePeer
peerID
- informations about the peerCorePeer.removePeer(org.ourgrid.common.id.ObjectID)
public void shutdown()
CorePeer
shutdown
in interface CorePeer
public void setFailureDetector(CorePeerFailureDetector fd)
public java.util.List<ObjectID> getKnownPeers(ObjectID peerId) throws java.rmi.RemoteException
CorePeer
getKnownPeers
in interface CorePeer
peerId
- The identification of the caller "peer".
java.rmi.RemoteException
- If cannot contact the core peer.public java.util.Collection<ObjectID> getPeerList()
CorePeerStatusProvider
getPeerList
in interface CorePeerStatusProvider
public void setPingerFactory(PingerFactory pingerFactory)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |