net.i2p.router.transport
Class CommSystemFacadeImpl

java.lang.Object
  extended bynet.i2p.router.CommSystemFacade
      extended bynet.i2p.router.transport.CommSystemFacadeImpl
All Implemented Interfaces:
Service

public class CommSystemFacadeImpl
extends CommSystemFacade


Constructor Summary
CommSystemFacadeImpl(RouterContext context)
           
 
Method Summary
 int countActivePeers()
           
 java.util.Set createAddresses()
          Create the set of RouterAddress structures based on the router's config
 TransportBid getBid(OutNetMessage msg)
           
 java.util.List getBids(OutNetMessage msg)
           
 java.util.List getMostRecentErrorMessages()
           
 void processMessage(OutNetMessage msg)
           
 void renderStatusHTML(java.io.Writer out)
           
 void restart()
          Perform a soft restart.
 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

CommSystemFacadeImpl

public CommSystemFacadeImpl(RouterContext context)
Method Detail

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.


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.


restart

public void restart()
Description copied from interface: Service
Perform a soft restart.


countActivePeers

public int countActivePeers()
Overrides:
countActivePeers in class CommSystemFacade

getBids

public java.util.List getBids(OutNetMessage msg)

getBid

public TransportBid getBid(OutNetMessage msg)

processMessage

public void processMessage(OutNetMessage msg)
Specified by:
processMessage in class CommSystemFacade

getMostRecentErrorMessages

public java.util.List getMostRecentErrorMessages()
Overrides:
getMostRecentErrorMessages in class CommSystemFacade

renderStatusHTML

public void renderStatusHTML(java.io.Writer out)
                      throws java.io.IOException
Specified by:
renderStatusHTML in interface Service
Overrides:
renderStatusHTML in class CommSystemFacade
Throws:
java.io.IOException

createAddresses

public java.util.Set createAddresses()
Description copied from class: CommSystemFacade
Create the set of RouterAddress structures based on the router's config

Overrides:
createAddresses in class CommSystemFacade