public class PeerManagerFacadeImpl extends Object implements PeerManagerFacade
| Constructor and Description |
|---|
PeerManagerFacadeImpl(RouterContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
Set<Hash> |
getPeersByCapability(char capability) |
void |
removeCapabilities(Hash peer) |
void |
renderStatusHTML(Writer out)
Deprecated.
moved to routerconsole
|
void |
restart()
Perform a soft restart.
|
List<Hash> |
selectPeers(PeerSelectionCriteria criteria)
Select peers from the manager's existing routing tables according to
the specified criteria.
|
Hash |
selectRandomByCapability(char capability)
Deprecated.
unused
|
void |
setCapabilities(Hash peer,
String caps) |
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 PeerManagerFacadeImpl(RouterContext ctx)
public void startup()
Servicepublic void shutdown()
Servicepublic void restart()
Servicepublic List<Hash> selectPeers(PeerSelectionCriteria criteria)
PeerManagerFacadeselectPeers in interface PeerManagerFacadepublic void setCapabilities(Hash peer, String caps)
setCapabilities in interface PeerManagerFacadecaps - non-nullpublic void removeCapabilities(Hash peer)
removeCapabilities in interface PeerManagerFacade@Deprecated public Hash selectRandomByCapability(char capability)
selectRandomByCapability in interface PeerManagerFacadepublic Set<Hash> getPeersByCapability(char capability)
getPeersByCapability in interface PeerManagerFacadecapability - case-insensitive@Deprecated public void renderStatusHTML(Writer out) throws IOException
renderStatusHTML in interface ServiceIOException