public abstract class AbstractApplication extends Object implements org.apache.commons.daemon.Daemon, org.apache.commons.daemon.DaemonUserSignal
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger
Logger.
|
| Constructor and Description |
|---|
AbstractApplication() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<Listener<?>> |
buildListeners()
Returns collection of listeners (not started, but instantiated).
|
void |
destroy()
Daemon resources freeing.
|
protected abstract String |
getDaemonName()
Returns daemon application name.
|
protected abstract String |
getDaemonVersion()
Returns daemon application version.
|
void |
init(org.apache.commons.daemon.DaemonContext context)
Daemon resources initialization.
|
void |
signal()
Just re-loads configuration.
|
void |
start()
Runs all listeners.
|
void |
stop()
Stops listeners.
|
public void start()
start in interface org.apache.commons.daemon.Daemonpublic void stop()
stop in interface org.apache.commons.daemon.Daemonpublic void signal()
signal in interface org.apache.commons.daemon.DaemonUserSignalpublic void init(org.apache.commons.daemon.DaemonContext context)
init in interface org.apache.commons.daemon.Daemoncontext - Runtime context for daemon.public void destroy()
destroy in interface org.apache.commons.daemon.Daemonprotected abstract String getDaemonName()
protected abstract String getDaemonVersion()
protected abstract Collection<Listener<?>> buildListeners()
Copyright © 2015 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.