java.lang.Object
java.lang.Enum<Router.State>
net.i2p.router.Router.State
All Implemented Interfaces:
Serializable, Comparable<Router.State>, java.lang.constant.Constable
Enclosing class:
Router

private static enum Router.Stateextends Enum<Router.State>
State management - startup / shutdown states.
  • Enum Constant Details

    • UNINITIALIZED

      public static final Router.State UNINITIALIZED
      Nothing has run yet.
    • INITIALIZED

      public static final Router.State INITIALIZED
      Constructor complete.
    • STARTING_1

      public static final Router.State STARTING_1
      Startup: runRouter() called.
    • STARTING_2

      public static final Router.State STARTING_2
      Startup: Router.startupStuff() complete, most of the time here is NTP.
    • STARTING_3

      public static final Router.State STARTING_3
      NTP done, Job queue started, StartupJob queued, runRouter() returned.
    • NETDB_READY

      public static final Router.State NETDB_READY
      RIs loaded. From STARTING_3.
    • EXPL_TUNNELS_READY

      public static final Router.State EXPL_TUNNELS_READY
      Non-zero-hop expl. tunnels built. From STARTING_3.
    • RUNNING

      public static final Router.State RUNNING
      From NETDB_READY or EXPL_TUNNELS_READY.
    • RESTARTING

      public static final Router.State RESTARTING
      A "soft" restart, primarily of the comm system, after a port change or large step-change in system time. Does not stop the whole JVM, so it is safe even in the absence of the wrapper. This is not a graceful restart - all peer connections are dropped immediately.
    • GRACEFUL_SHUTDOWN

      public static final Router.State GRACEFUL_SHUTDOWN
      Cancellable shutdown has begun.
    • FINAL_SHUTDOWN_1

      public static final Router.State FINAL_SHUTDOWN_1
      In Router.shutdown(int). Non-cancellable shutdown has begun.
    • FINAL_SHUTDOWN_2

      public static final Router.State FINAL_SHUTDOWN_2
      In Router.shutdown2(int). Killing everything.
    • FINAL_SHUTDOWN_3

      public static final Router.State FINAL_SHUTDOWN_3
      In Router.finalShutdown(int). Final cleanup.
    • STOPPED

      public static final Router.State STOPPED
      All done.
  • Constructor Details

    • State

      private State()
  • Method Details

    • values

      public static Router.State[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Router.State valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null