public final class StartupTimer extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
finished()
Notifies this StartupTimer that the startup process was finished.
|
static StartupTimer |
getInstance() |
void |
start(String id,
String description)
Notifies this StartupTimer that a new action in the startup process has begun.
|
void |
stop(String id)
Notifies this StartupTimer that the action identified by the id was finished.
|
public static StartupTimer getInstance()
public void start(String id, String description)
id - id of the action. Must be used when stop(String) is calleddescription - a human-readable description of the action that has begunpublic void stop(String id)
id - id of the action as used in start(String, String)public void finished()
StartupTimerMBean
will be registered.
All actions, that were not yet stopped by calling stop(String), will be stopped.
After this method was called, further calls to start(String, String) or
stop(String) will have no effect.Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.