public final class POSIXSignalHandler extends Object
Jamaica Real-Time Specification for Java class POSIXSignalHandler.
This class permits the use of an AsyncEventHandler to react on the occurrence of POSIX signals.
On systems that support POSIX signals fully, the 13 signals required by POSIX will be supported. Any further signals defined in this class may be supported by the system. On systems that do not support POSIX signals, even the 13 standard signals may never be fired.
POSIX.1-2001 added added a range of realtime signals, ranged from SIGRTMIN and SIGRTMAX.
Modifier and Type | Field and Description |
---|---|
static int |
SIGABRT
Abort (ANSI).
|
static int |
SIGALRM
Alarm clock (POSIX).
|
static int |
SIGBUS
BUS error (4.2 BSD), optional signal.
|
static int |
SIGCANCEL
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGCHLD
Child status has changed (POSIX).
|
static int |
SIGCLD
Same as SIGCHLD (System V), optional signal.
|
static int |
SIGCONT
Continue (POSIX), optional signal.
|
static int |
SIGEMT
EMT instruction, optional signal.
|
static int |
SIGFPE
floating point exception
|
static int |
SIGFREEZE
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGHUP
Hangup (POSIX).
|
static int |
SIGILL
illegal instruction (ANSI)
|
static int |
SIGINT
interrupt (ANSI)
|
static int |
SIGIO
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGIOT
IOT instruction (4.2 BSD), optional signal.
|
static int |
SIGKILL
Kill, unblockable (POSIX).
|
static int |
SIGLOST
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGLWP
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGPIPE
Broken pipe (POSIX).
|
static int |
SIGPOLL
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGPROF
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGPWR
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGQUIT
quit (POSIX)
|
static int |
SIGRTMAX
Superior bound of Realtime Thread Signals
POSIX.1-2001
|
static int |
SIGRTMIN
Inferior bound of Realtime Thread Signals
POSIX.1-2001
|
static int |
SIGSEGV
Segmentation violation (ANSI).
|
static int |
SIGSTOP
Stop, unblockable (POSIX), optional signal.
|
static int |
SIGSYS
Bad system call, optional signal.
|
static int |
SIGTERM
Termination (ANSI).
|
static int |
SIGTHAW
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGTRAP
trace trap (POSIX), optional signal.
|
static int |
SIGTSTP
Keyboard stop (POSIX), optional signal.
|
static int |
SIGTTIN
Background read from tty (POSIX), optional signal.
|
static int |
SIGTTOU
Background write to tty (POSIX), optional signal.
|
static int |
SIGURG
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGUSR1
User-defined signal 1 (POSIX).
|
static int |
SIGUSR2
User-defined signal 2 (POSIX).
|
static int |
SIGVTALRM
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGWAITING
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGWINCH
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGXCPU
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
static int |
SIGXFSZ
Deprecated.
RTSJ V1.0.1 not part of POSIX 9945-1-1996 standard
|
Constructor and Description |
---|
POSIXSignalHandler() |
Modifier and Type | Method and Description |
---|---|
static void |
addHandler(int signal,
AsyncEventHandler handler)
addHandler adds the handler provided to the set of handlers that
will be released on the provided signal.
|
static void |
removeHandler(int signal,
AsyncEventHandler handler)
removeHandler removes a handler that was added for a given signal.
|
static void |
setHandler(int signal,
AsyncEventHandler handler)
setHandler sets the set of handlers that will be released on the
provided signal to the set with the provided handler being the
single element.
|
public static final int SIGHUP
public static final int SIGINT
public static final int SIGQUIT
public static final int SIGILL
public static final int SIGTRAP
public static final int SIGABRT
public static final int SIGBUS
public static final int SIGFPE
public static final int SIGKILL
public static final int SIGUSR1
public static final int SIGSEGV
public static final int SIGUSR2
public static final int SIGPIPE
public static final int SIGALRM
public static final int SIGTERM
public static final int SIGCHLD
public static final int SIGCONT
public static final int SIGSTOP
public static final int SIGTSTP
public static final int SIGTTIN
public static final int SIGTTOU
@Deprecated public static final int SIGURG
@Deprecated public static final int SIGXCPU
@Deprecated public static final int SIGXFSZ
@Deprecated public static final int SIGVTALRM
@Deprecated public static final int SIGPROF
@Deprecated public static final int SIGWINCH
@Deprecated public static final int SIGIO
@Deprecated public static final int SIGPWR
public static final int SIGSYS
public static final int SIGIOT
@Deprecated public static final int SIGPOLL
public static final int SIGCLD
public static final int SIGEMT
public static final int SIGRTMIN
public static final int SIGRTMAX
@Deprecated public static final int SIGLOST
@Deprecated public static final int SIGCANCEL
@Deprecated public static final int SIGFREEZE
@Deprecated public static final int SIGLWP
@Deprecated public static final int SIGTHAW
@Deprecated public static final int SIGWAITING
public static void addHandler(int signal, AsyncEventHandler handler)
IllegalArgumentException
- iff signal is not defined by any
of the constants in this class or handler is null.signal
- The POSIX signal as defined in the constants SIG*.handler
- the handler to be released on the given signal.public static void removeHandler(int signal, AsyncEventHandler handler)
IllegalArgumentException
- iff signal is not defined by any
of the constants in this class.signal
- The POSIX signal as defined in the constants SIG*.handler
- the handler to be removed from the given
signal. If this handler is null or has not been added to the
signal, nothing will happen.public static void setHandler(int signal, AsyncEventHandler handler)
IllegalArgumentException
- iff signal is not defined by any
of the constants in this class.signal
- The POSIX signal as defined in the constants SIG*.handler
- the handler to be released on the given signal,
null to remove all handlers for the given signal.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2019 aicas GmbH. All Rights Reserved.