public class PeerManagerFacadeImpl extends Object implements PeerManagerFacade
| Constructor and Description |
|---|
PeerManagerFacadeImpl(RouterContext ctx)PeerManagerFacadeImpl. |
| Modifier and Type | Method and Description |
|---|---|
int | countPeersByCapability(char capability)Count of peers with the given capability. |
Set<Hash> | getPeersByCapability(char capability)All peers with the given capability. |
PeerTestJob | getPeerTestJob()The peer test job for scheduling priority peer tests. |
void | removeCapabilities(Hash peer)Remove all capabilities for the peer from the index. |
void | restart()Store the profiles and reload them from disk. |
void | setCapabilities(Hash peer,
String caps)The capabilities for a peer. |
void | shutdown()Shut down the peer manager, storing and clearing the profiles. |
void | startup()Start the peer manager and begin testing peers. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderStatusHTMLpublic PeerManagerFacadeImpl(RouterContext ctx)
public int countPeersByCapability(char capability)
PeerManagerFacadecountPeersByCapability in interface PeerManagerFacadecapability - case-insensitivepublic Set<Hash> getPeersByCapability(char capability)
PeerManagerFacadegetPeersByCapability in interface PeerManagerFacadecapability - case-insensitivepublic PeerTestJob getPeerTestJob()
getPeerTestJob in interface PeerManagerFacadepublic void removeCapabilities(Hash peer)
removeCapabilities in interface PeerManagerFacadepeer - the peerpublic void restart()
public void setCapabilities(Hash peer, String caps)
PeerManagerFacadesetCapabilities in interface PeerManagerFacadecaps - non-nullpeer - the peerpublic void shutdown()