Class Watchdog
java.lang.Object
ua.mcchickenstudio.opencreative.managers.stability.Watchdog
- All Implemented Interfaces:
Manager, StabilityManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong@NotNull StabilityStateReturns stability state of database connection.@NotNull StabilityStateReturns stability state of memory.getName()Returns name of manager, that will be displayed by request in the logs.@NotNull StabilityStategetState()Returns stability state of all systems.@NotNull StabilityStateReturns stability state of storage.@NotNull StabilityStateReturns stability state of ticks.longdoublegetTPS()longvoidinit()Initialization of manager.booleanChecks if manager is ready to work.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StabilityManager
isFine, isVeryBad
-
Constructor Details
-
Watchdog
public Watchdog()
-
-
Method Details
-
init
-
isEnabled
-
getDatabaseState
Description copied from interface:StabilityManagerReturns stability state of database connection.- Specified by:
getDatabaseStatein interfaceStabilityManager- Returns:
- state of database.
-
getMemoryState
Description copied from interface:StabilityManagerReturns stability state of memory.- Specified by:
getMemoryStatein interfaceStabilityManager- Returns:
- state of RAM.
-
getStorageState
Description copied from interface:StabilityManagerReturns stability state of storage.- Specified by:
getStorageStatein interfaceStabilityManager- Returns:
- state of storage.
-
getTicksState
Description copied from interface:StabilityManagerReturns stability state of ticks.- Specified by:
getTicksStatein interfaceStabilityManager- Returns:
- state of TPS.
-
getName
-
getAvailableSpace
public long getAvailableSpace() -
getUsedSpace
public long getUsedSpace() -
getTPS
public double getTPS() -
getTotalSpace
public long getTotalSpace() -
getState
Description copied from interface:StabilityManagerReturns stability state of all systems.- Specified by:
getStatein interfaceStabilityManager- Returns:
- state of plugin
-