Class StartupManager

java.lang.Object
host.anzo.core.startup.StartupManager

public class StartupManager extends Object
Since:
27.12.2016
  • Method Details

    • startup

      public <SL extends Enum<SL>> void startup(@NotNull @NotNull Class<SL> sl)
    • shutdown

      public void shutdown()
    • isStartupCompleted

      public boolean isStartupCompleted()
      Returns:
      true if server startup routine completed, false otherwise
    • isShutDowning

      public boolean isShutDowning()
      Returns:
      true if server doing shutdown routine at this moment, false otherwise
    • getUptime

      public int getUptime(@NotNull @NotNull TimeUnit timeUnit)
      Parameters:
      timeUnit - time unit
      Returns:
      application uptime