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() |
int |
getShutdownTimeoutSeconds() |
protected void |
loadBasicProperties(Map<String,String> map)
Override to set properties to be used in the daemon without specifying them in the
IPropertyProvider |
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 int getShutdownTimeoutSeconds()
getShutdownTimeoutSeconds in interface IDaemonLifecycleListenerprotected void loadBasicProperties(Map<String,String> map)
IPropertyProvidermap - the map to populate with basic propertiespublic IPropertyProvider getPropertyProvider()
Copyright © 2015–2022 Taimos GmbH. All rights reserved.