public class DaemonLifecycleAdapter extends Object implements IDaemonLifecycleListener
IDaemonLifecycleListener| Constructor and Description |
|---|
DaemonLifecycleAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
aborting()
will be called on imminent abortion
|
boolean |
doStart()
Will be called to allow for custom startup code
|
boolean |
doStop()
Will be called to allow for custom shutdown code
|
void |
exception(LifecyclePhase phase,
Throwable exception)
This method is called if an error occurs.
|
Map<String,String> |
loadProperties() |
void |
signalUSR2()
received custom signal SIGUSR2
|
void |
started()
will be called after successful startup
|
void |
stopped()
will be called after successful shutdown
|
void |
stopping()
will be called on imminent shutdown
|
public boolean doStart()
IDaemonLifecycleListenerdoStart in interface IDaemonLifecycleListenerpublic boolean doStop()
IDaemonLifecycleListenerdoStop in interface IDaemonLifecycleListenerpublic void started()
IDaemonLifecycleListenerstarted in interface IDaemonLifecycleListenerpublic void stopped()
IDaemonLifecycleListenerstopped in interface IDaemonLifecycleListenerpublic void stopping()
IDaemonLifecycleListenerstopping in interface IDaemonLifecycleListenerpublic void aborting()
IDaemonLifecycleListeneraborting in interface IDaemonLifecycleListenerpublic void signalUSR2()
IDaemonLifecycleListenersignalUSR2 in interface IDaemonLifecycleListenerpublic void exception(LifecyclePhase phase, Throwable exception)
IDaemonLifecycleListenerLifecyclePhase and the exceptionexception in interface IDaemonLifecycleListenerphase - the phase the error occured inexception - the occured exceptionpublic Map<String,String> loadProperties()
loadProperties in interface IDaemonLifecycleListenerCopyright © 2012 Taimos GmbH. All Rights Reserved.