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
|
void |
doStart()
Will be called to allow for custom startup code
|
void |
doStop()
Will be called to allow for custom shutdown code
|
void |
exception(LifecyclePhase phase,
Throwable exception)
This method is called if an error occurs.
|
IPropertyProvider |
getPropertyProvider() |
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 void doStart()
throws Exception
IDaemonLifecycleListenerdoStart in interface IDaemonLifecycleListenerException - if start failedpublic void doStop()
throws Exception
IDaemonLifecycleListenerdoStop in interface IDaemonLifecycleListenerException - if shutdown failedpublic 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 IDaemonLifecycleListenerpublic IPropertyProvider getPropertyProvider()
Copyright © 2012-2013 Taimos GmbH. All Rights Reserved.