|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectlbg.peer.register.PeerRegister
public class PeerRegister
Constructor Summary | |
---|---|
PeerRegister(Peer managed_peer,
StrategyDescriptor strategy,
PeerStrategyConfiguration peer_strategy_config)
|
Method Summary | |
---|---|
boolean |
checkProfile(java.lang.String peer_id)
Checks the Profile of the target Peer, and creates one if required. |
void |
createProfile(ExternalPeerHandle peer_handle)
Creates a Profile in the PeerRegister for the target Peer. |
ExternalPeerHandle |
getHandle(java.lang.String peer_id)
Returns the Handle of stored Peer. |
NeighborhoodBarteringProfile |
getNeighborhoodBarteringProfile()
|
NeighborhoodNegotiationProfile |
getNeighborhoodNegotiationProfile()
|
PeerProfile |
getProfile(java.lang.String peer_id)
Returns the Profile of the target Peer. |
java.util.Iterator<PeerProfile> |
getProfiles()
Returns the Profiles of the stored Peers. |
void |
removeProfile(java.lang.String peer_id)
Removes a Profile from the PeerRegister for the target Peer. |
int |
size()
Returns the size of the PeerRegister. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PeerRegister(Peer managed_peer, StrategyDescriptor strategy, PeerStrategyConfiguration peer_strategy_config) throws GridException
GridException
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
public void createProfile(ExternalPeerHandle peer_handle) throws GridException
DANGER: Peer authentication currently relies only on PeerHandle.id()
peer_handle
- targer Peer
GridException
public void removeProfile(java.lang.String peer_id) throws GridException
DANGER: Peer authentication currently relies only on PeerHandle.id()
peer_id
- targer Peer id
GridException
public boolean checkProfile(java.lang.String peer_id) throws GridException
peer_id
- target Peer
GridException
public PeerProfile getProfile(java.lang.String peer_id) throws GridException
DANGER: Peer authentication currently relies only on PeerHandle.id()
peer_id
- targer Peer id
GridException
public java.util.Iterator<PeerProfile> getProfiles()
DANGER: Peer authentication currently relies only on PeerHandle.id()
public ExternalPeerHandle getHandle(java.lang.String peer_id) throws GridException
peer_id
- targer Peer id
GridException
public NeighborhoodNegotiationProfile getNeighborhoodNegotiationProfile()
public NeighborhoodBarteringProfile getNeighborhoodBarteringProfile()
|
Lightweight Bartering Grid | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2005-2008, Cyril Briquet, parts Xavier Dalem.