Package host.anzo.core.startup
Class StartupManager
java.lang.Object
host.anzo.core.startup.StartupManager
- Since:
- 27.12.2016
-
Method Summary
Modifier and TypeMethodDescriptionlonggetStartupTime(@NotNull TimeUnit timeUnit) intbooleanbooleanvoidshutdown()<SL extends Enum<SL>>
void
-
Method Details
-
startup
-
shutdown
public void shutdown() -
isStartupCompleted
public boolean isStartupCompleted()- Returns:
trueif server startup routine completed,falseotherwise
-
isShutDowning
public boolean isShutDowning()- Returns:
trueif server doing shutdown routine at this moment,falseotherwise
-
getStartupTime
- Parameters:
timeUnit- time unit- Returns:
- application loading time
-
getUptime
- Parameters:
timeUnit- time unit- Returns:
- application uptime
-