|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Startup
An interface to startups.
| Field Summary | |
|---|---|
static String |
GROUP_ID_PROPERTY
The property for defining the effective group id. |
static String |
SCRIPT_ENGINE_PROPERTY
The property for defining the script engines. |
static String |
SCRIPT_LANGUAGE_PROPERTY
The property for defining the script language. |
static String |
USER_ID_PROPERTY
The property for defining the effective user id. |
| Method Summary | |
|---|---|
int |
getRestartDelay()
Gets the restart delay. |
long |
getShutdownDelay()
Gets the shutdown delay. |
void |
register(String[] args)
Registers the startup without starting. |
void |
restart(int delay)
Restarts after a delay. |
void |
setShutdownDelay(long delay)
Sets the shutdown delay forcing a shutdown after running all shutdown scripts. |
void |
start()
Starts up if registered. |
void |
stop()
Shuts down. |
void |
unregister()
Unregisters and shuts down the startup. |
| Methods inherited from interface org.norther.tammi.core.config.Configurable |
|---|
addProperty, addProperty, clearProperties, containsProperty, getConfigKey, getProperties, getProperty, getPropertyFilePath, indexOfProperty, propertyMap, propertyMap, removeProperty, removeProperty, setConfigKey, setProperties, setProperty, setPropertyFilePath, setPropertyFilePath, storeProperties |
| Methods inherited from interface org.norther.tammi.core.base.Startable |
|---|
isStarted |
| Field Detail |
|---|
static final String GROUP_ID_PROPERTY
static final String USER_ID_PROPERTY
static final String SCRIPT_ENGINE_PROPERTY
static final String SCRIPT_LANGUAGE_PROPERTY
| Method Detail |
|---|
void register(String[] args)
throws Exception
args - the startup arguments.
Exception - if registration fails.void unregister()
void start()
throws Exception
start in interface StartableException - if startup fails.void stop()
stop in interface Startablevoid restart(int delay)
delay - the restart delay in secs.int getRestartDelay()
long getShutdownDelay()
void setShutdownDelay(long delay)
delay - the shutdown delay in msecs (-1 = never).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||