public class DummyPeerManagerFacade extends Object implements PeerManagerFacade
| Constructor and Description |
|---|
DummyPeerManagerFacade() |
| 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 testing peers. |
void | removeCapabilities(Hash peer)Remove all capabilities from a peer. |
void | renderStatusHTML(Writer out)Render the status as HTML. |
void | restart()Perform a soft restart. |
void | setCapabilities(Hash peer,
String caps)The capabilities for a peer. |
void | shutdown()Instruct the service that the router is shutting down and that it should do
whatever is necessary to go down gracefully. |
void | startup()Instruct the service that it should start normal operation. |
public int countPeersByCapability(char capability)
PeerManagerFacadecountPeersByCapability in interface PeerManagerFacadecapability - the capabilitypublic Set<Hash> getPeersByCapability(char capability)
PeerManagerFacadegetPeersByCapability in interface PeerManagerFacadecapability - the capabilitypublic PeerTestJob getPeerTestJob()
PeerManagerFacadegetPeerTestJob in interface PeerManagerFacadepublic void removeCapabilities(Hash peer)
PeerManagerFacaderemoveCapabilities in interface PeerManagerFacadepeer - the peerpublic void renderStatusHTML(Writer out)
ServicerenderStatusHTML in interface Serviceout - the writer to write topublic void restart()
Servicepublic void setCapabilities(Hash peer, String caps)
PeerManagerFacadesetCapabilities in interface PeerManagerFacadepeer - the peerpublic void shutdown()
Service