public class SimpleDaemon extends Object implements Daemon, Runnable, DaemonUserSignal
| Modifier and Type | Class and Description |
|---|---|
static class |
SimpleDaemon.Handler |
| Constructor and Description |
|---|
SimpleDaemon() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addHandler(SimpleDaemon.Handler handler) |
void |
destroy() |
protected void |
finalize() |
void |
init(DaemonContext context)
init and destroy were added in jakarta-tomcat-daemon.
|
protected void |
removeHandler(SimpleDaemon.Handler handler) |
void |
run() |
void |
signal() |
void |
start() |
void |
stop() |
public SimpleDaemon()
public void init(DaemonContext context) throws Exception
public void stop() throws IOException, InterruptedException
stop in interface DaemonIOExceptionInterruptedExceptionpublic void signal()
signal in interface DaemonUserSignalprotected void addHandler(SimpleDaemon.Handler handler)
protected void removeHandler(SimpleDaemon.Handler handler)
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.