Package net.i2p.router.dummy
Class DummyPeerManagerFacade
java.lang.Object
net.i2p.router.dummy.DummyPeerManagerFacade
- All Implemented Interfaces:
PeerManagerFacade
,Service
Manage peer references and keep them up to date so that when asked for peers,
it can provide appropriate peers according to the criteria provided. This
includes periodically queueing up outbound messages to the peers to test them.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
countPeersByCapability
(char capability) getPeersByCapability
(char capability) void
removeCapabilities
(Hash peer) void
renderStatusHTML
(Writer out) void
restart()
Perform a soft restart.selectRandomByCapability
(char capability) 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.
-
Constructor Details
-
DummyPeerManagerFacade
public DummyPeerManagerFacade()
-
-
Method Details
-
shutdown
public void shutdown()Description copied from interface:Service
Instruct the service that the router is shutting down and that it should do whatever is necessary to go down gracefully. It should not depend on other components at this point. This call DOES block. -
startup
public void startup()Description copied from interface:Service
Instruct the service that it should start normal operation. This call DOES block until the service is ready. -
restart
public void restart()Description copied from interface:Service
Perform a soft restart. -
renderStatusHTML
- Specified by:
renderStatusHTML
in interfaceService
-
getPeersByCapability
- Specified by:
getPeersByCapability
in interfacePeerManagerFacade
-
countPeersByCapability
public int countPeersByCapability(char capability) - Specified by:
countPeersByCapability
in interfacePeerManagerFacade
-
setCapabilities
- Specified by:
setCapabilities
in interfacePeerManagerFacade
-
removeCapabilities
- Specified by:
removeCapabilities
in interfacePeerManagerFacade
-
selectRandomByCapability
- Specified by:
selectRandomByCapability
in interfacePeerManagerFacade
-