public class StartupHandler extends Object
Constructor and Description |
---|
StartupHandler() |
Modifier and Type | Method and Description |
---|---|
void |
addLoadingTaskWithObserver(String name,
String workUnit,
Errors.CheckedConsumer<SubProgressObserver> method)
The observer will be closed automaticly.
|
Task |
getLoadingSuperTask() |
List<ExecutableTask<?>> |
getLoadingTasks() |
long |
getServerStartTime()
Time stamp of server startup.
|
long |
getServerUpDuration() |
static StartupHandler |
instance() |
void |
onServerStarted() |
void |
runLoadingTasks() |
public static StartupHandler instance()
public void onServerStarted()
public void addLoadingTaskWithObserver(String name, String workUnit, Errors.CheckedConsumer<SubProgressObserver> method)
public long getServerStartTime()
System.currentTimeMillis()
.public long getServerUpDuration()
public List<ExecutableTask<?>> getLoadingTasks()
public Task getLoadingSuperTask()