|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.presents.server.AbstractSignalHandler
public abstract class AbstractSignalHandler
A base class that is used to wire up signal handling in one of a couple of possible ways.
| Field Summary | |
|---|---|
protected ReportManager |
_repmgr
|
protected PresentsServer |
_server
|
protected SignalReceiver |
_usr2receiver
|
| Constructor Summary | |
|---|---|
AbstractSignalHandler()
|
|
| Method Summary | |
|---|---|
protected void |
hupReceived()
Implementations should call this method when a SIGHUP is received. |
boolean |
init()
Initializes this signal handler. |
protected void |
intReceived()
Implementations should call this method when a SIGINT is received. |
protected abstract boolean |
registerHandlers()
Signal handler implementations should wire themselves up in the call to this method. |
protected void |
termReceived()
Implementations should call this method when a SIGTERM is received. |
protected void |
usr2Received()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Inject(optional=true) protected SignalReceiver _usr2receiver
@Inject protected PresentsServer _server
@Inject protected ReportManager _repmgr
| Constructor Detail |
|---|
public AbstractSignalHandler()
| Method Detail |
|---|
public boolean init()
protected abstract boolean registerHandlers()
protected void termReceived()
protected void intReceived()
protected void hupReceived()
protected void usr2Received()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||