All Known Subinterfaces:
PeerManagerFacade, TunnelManagerFacade
All Known Implementing Classes:
ClientManagerFacade, ClientManagerFacadeImpl, CommSystemFacade, CommSystemFacadeImpl, DummyClientManagerFacade, DummyNetworkDatabaseFacade, DummyPeerManagerFacade, DummyTunnelManagerFacade, FloodfillNetworkDatabaseFacade, InNetMessagePool, KademliaNetworkDatabaseFacade, NetworkDatabaseFacade, PeerManagerFacadeImpl, TunnelDispatcher, TunnelPoolManager, VMCommSystem

public interface Service
Defines the lifecycle interface for router subsystems. Provides startup, shutdown, restart, and status reporting capabilities for manageable components.
  • Method Summary

    All Methods
    Modifier and Type
    Method
    Description
    void
    Render the status as HTML.
    void
    Perform a soft restart.
    void
    Instruct the service that the router is shutting down and that it should do whatever is necessary to go down gracefully.
    void
    Instruct the service that it should start normal operation.
  • Method Details

    • startup

      void startup()
      Instruct the service that it should start normal operation. This call DOES block until the service is ready.
    • shutdown

      void shutdown()
      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

      void restart()
      Perform a soft restart.
    • renderStatusHTML

      void renderStatusHTML(Writer out) throws IOException
      Render the status as HTML.
      Parameters:
      out - the writer to write to
      Throws:
      IOException - if an error occurs writing