public abstract class SignalInterceptor extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
SignalInterceptor() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract boolean |
handle(String signame)
Handle the given signal (which you had previously registered for).
|
protected void |
register(String signame)
Register for the given signal.
|
protected void register(String signame) throws com.googlecode.jmxtrans.util.SignalInterceptor.SignalInterceptorException
Register for the given signal. Note that the signal name should
not begin with SIG. For example, if you are interested in
SIGTERM, you should call register("TERM").
If the registration fails for any reason, a
SignalInterceptorException will be thrown. This is usually
caused by one of the following conditions:
sun.misc.Signal* classes are not available (e.g. you
are not using Sun's JVM).signame is not a valid trappable signal name on this OS
(e.g. KILL can't be trapped, HUP does not exist on Windows)
signame because it is
already being used for some other important purpose (e.g. QUIT
and/or BREAK cause the JVM to print diagnostic output).com.googlecode.jmxtrans.util.SignalInterceptor.SignalInterceptorExceptionprotected abstract boolean handle(String signame)
Copyright © 2010-2016 JmxTrans team. All Rights Reserved.