Package org.apache.sshd.server
Enum Signal
- All Implemented Interfaces:
Serializable
,Comparable<Signal>
System signals definition that the shell can receive.
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NavigableMap<String,
Signal> An un-modifiable case-insensitiveNavigableMap
of the names of all availableSignal
sprivate final int
static final NavigableMap<Integer,
Signal> An un-modifiableNavigableMap
of the numeric values of all availableSignal
s -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Signal
get
(int num) Retrieves a signal value given its numeric valuestatic Signal
Retrieves a signal value given its nameint
static Signal
Returns the enum constant of this type with the specified name.static Signal[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HUP
-
INT
-
QUIT
-
ILL
-
TRAP
-
IOT
-
BUS
-
FPE
-
KILL
-
USR1
-
SEGV
-
USR2
-
PIPE
-
ALRM
-
TERM
-
STKFLT
-
CHLD
-
CONT
-
STOP
-
TSTP
-
TTIN
-
TTOU
-
URG
-
XCPU
-
XFSZ
-
VTALRM
-
PROF
-
WINCH
-
IO
-
PWR
-
-
Field Details
-
SIGNALS
-
NAME_LOOKUP_TABLE
An un-modifiable case-insensitiveNavigableMap
of the names of all availableSignal
s- See Also:
-
NUMERIC_LOOKUP_TABLE
An un-modifiableNavigableMap
of the numeric values of all availableSignal
s- See Also:
-
numeric
private final int numeric
-
-
Constructor Details
-
Signal
private Signal(int numeric)
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumeric
public int getNumeric()- Returns:
- The signal's numeric value
-
get
Retrieves a signal value given its name- Parameters:
name
- The signal's name (case insensitive) - ignored ifnull
/empty- Returns:
- The matching
Signal
ornull
if no match found
-
get
Retrieves a signal value given its numeric value- Parameters:
num
- The signal's numeric value- Returns:
- The matching
Signal
ornull
if no match found - See Also:
-