- All Implemented Interfaces:
Serializable, Comparable<Router.State>, java.lang.constant.Constable
- Enclosing class:
Router
State management - startup / shutdown states.
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E>Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNon-zero-hop expl.Cancellable shutdown has begun.Constructor complete.RIs loaded.A "soft" restart, primarily of the comm system, after a port change or large step-change in system time.From NETDB_READY or EXPL_TUNNELS_READY.Startup: runRouter() called.Startup:Router.startupStuff()complete, most of the time here is NTP.NTP done, Job queue started, StartupJob queued, runRouter() returned.All done.Nothing has run yet.Constructor Summary
ConstructorsMethod Summary
All MethodsModifier and TypeMethodDescriptionstatic Router.StateReturns the enum constant of this class with the specified name.static Router.State[]values()Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
UNINITIALIZED
Nothing has run yet.INITIALIZED
Constructor complete.STARTING_1
Startup: runRouter() called.STARTING_2
Startup:Router.startupStuff()complete, most of the time here is NTP.STARTING_3
NTP done, Job queue started, StartupJob queued, runRouter() returned.NETDB_READY
RIs loaded. From STARTING_3.EXPL_TUNNELS_READY
Non-zero-hop expl. tunnels built. From STARTING_3.RUNNING
From NETDB_READY or EXPL_TUNNELS_READY.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
Cancellable shutdown has begun.FINAL_SHUTDOWN_1
InRouter.shutdown(int). Non-cancellable shutdown has begun.FINAL_SHUTDOWN_2
InRouter.shutdown2(int). Killing everything.FINAL_SHUTDOWN_3
InRouter.finalShutdown(int). Final cleanup.STOPPED
All done.
Constructor Details
State
private State()
Method Details
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
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 nameNullPointerException- if the argument is null