|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.i2p.router.peermanager.PeerManagerFacadeImpl
public class PeerManagerFacadeImpl
Base implementation that has simple algorithms and periodically saves state
Constructor Summary | |
---|---|
PeerManagerFacadeImpl(RouterContext ctx)
|
Method Summary | |
---|---|
java.util.List |
getPeersByCapability(char capability)
|
void |
removeCapabilities(Hash peer)
|
void |
renderStatusHTML(java.io.Writer out)
|
void |
restart()
Perform a soft restart. |
java.util.List |
selectPeers(PeerSelectionCriteria criteria)
Select peers from the manager's existing routing tables according to the specified criteria. |
Hash |
selectRandomByCapability(char capability)
|
void |
setCapabilities(Hash peer,
java.lang.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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PeerManagerFacadeImpl(RouterContext ctx)
Method Detail |
---|
public void startup()
Service
startup
in interface Service
public void shutdown()
Service
shutdown
in interface Service
public void restart()
Service
restart
in interface Service
public java.util.List selectPeers(PeerSelectionCriteria criteria)
PeerManagerFacade
selectPeers
in interface PeerManagerFacade
public void setCapabilities(Hash peer, java.lang.String caps)
setCapabilities
in interface PeerManagerFacade
public void removeCapabilities(Hash peer)
removeCapabilities
in interface PeerManagerFacade
public Hash selectRandomByCapability(char capability)
selectRandomByCapability
in interface PeerManagerFacade
public java.util.List getPeersByCapability(char capability)
getPeersByCapability
in interface PeerManagerFacade
public void renderStatusHTML(java.io.Writer out) throws java.io.IOException
renderStatusHTML
in interface Service
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |