Class DisabledWatchdog

java.lang.Object
ua.mcchickenstudio.opencreative.managers.stability.DisabledWatchdog
All Implemented Interfaces:
Manager, StabilityManager

public final class DisabledWatchdog extends Object implements StabilityManager
  • Constructor Details

    • DisabledWatchdog

      public DisabledWatchdog()
  • Method Details

    • init

      public void init()
      Description copied from interface: Manager
      Initialization of manager.
      Specified by:
      init in interface Manager
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: Manager
      Checks if manager is ready to work.
      Specified by:
      isEnabled in interface Manager
      Returns:
      true - if enabled, false - disabled.
    • getDatabaseState

      @NotNull public @NotNull StabilityState getDatabaseState()
      Description copied from interface: StabilityManager
      Returns stability state of database connection.
      Specified by:
      getDatabaseState in interface StabilityManager
      Returns:
      state of database.
    • getMemoryState

      @NotNull public @NotNull StabilityState getMemoryState()
      Description copied from interface: StabilityManager
      Returns stability state of memory.
      Specified by:
      getMemoryState in interface StabilityManager
      Returns:
      state of RAM.
    • getStorageState

      @NotNull public @NotNull StabilityState getStorageState()
      Description copied from interface: StabilityManager
      Returns stability state of storage.
      Specified by:
      getStorageState in interface StabilityManager
      Returns:
      state of storage.
    • getTicksState

      @NotNull public @NotNull StabilityState getTicksState()
      Description copied from interface: StabilityManager
      Returns stability state of ticks.
      Specified by:
      getTicksState in interface StabilityManager
      Returns:
      state of TPS.
    • getName

      public String getName()
      Description copied from interface: Manager
      Returns name of manager, that will be displayed by request in the logs.
      Specified by:
      getName in interface Manager
      Returns:
      name of manager.
    • getState

      @NotNull public @NotNull StabilityState getState()
      Description copied from interface: StabilityManager
      Returns stability state of all systems.
      Specified by:
      getState in interface StabilityManager
      Returns:
      state of plugin