|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CorePeer
Description: The core peer is the central peer of the OurGrid Community. When a peer wants to join the community, it contacts the CorePeer to inform its ID and URL and the CorePeer notifies the other community peers of the presence of a new peer.
Method Summary | |
---|---|
java.util.List<ObjectID> |
getKnownPeers(ObjectID peerId)
Returns a list of known peers in the OurGrid Community. |
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 objectID)
Remove a peer from knowPeers list. |
void |
shutdown()
Shutdown a core peer. |
Method Detail |
---|
java.util.List<ObjectID> hereIAm(ObjectID peerId) throws java.rmi.RemoteException
peerId
- The id of the caller peer.
java.rmi.RemoteException
- If cannot contact the core peer.java.util.List<ObjectID> getKnownPeers(ObjectID peerId) throws java.rmi.RemoteException
peerId
- The identification of the caller "peer".
java.rmi.RemoteException
- If cannot contact the core peer.void shutdown() throws java.rmi.RemoteException
java.rmi.RemoteException
- If cannot contact the core peer.void removePeer(ObjectID objectID) throws java.rmi.RemoteException
objectID
- informations about the peer
java.rmi.RemoteException
- If cannot contact the core peer.void newPeerArrived(ObjectID peerID) throws java.rmi.RemoteException
peerID
- informations about the peer
java.rmi.RemoteException
- If cannot contact the core peer.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |