JavaScript is disabled on your browser.
All Implemented Interfaces:
Serializable
, Comparable <Facility >
, java.lang.constant.Constable
The facility codes used by the Syslog system.
Numerical Code
Facility
0
kernel messages
1
user-level messages
2
mail system
3
system daemons
4
security/authorization messages
5
messages generated internally by syslogd
6
line printer subsystem
7
network news subsystem
8
UUCP subsystem
9
clock daemon
10
security/authorization messages
11
FTP daemon
12
NTP subsystem
13
log audit
14
log alert
15
clock daemon (note 2)
16
local use 0 (local0)
17
local use 1 (local1)
18
local use 2 (local2)
19
local use 3 (local3)
20
local use 4 (local4)
21
local use 5 (local5)
22
local use 6 (local6)
23
local use 7 (local7)
Enum Constant Summary
Enum Constants
Security/Authorization messages.
Security/Authorization messages.
Messages generated by syslogd.
Constructor Summary
Constructors
Method Summary
All Methods Static Methods Instance Methods Concrete Methods
int
Retrieve the value of the enumeration.
boolean
Determine if this enumeration matches the specified name (ignoring case).
Returns the Facility for the given string.
Returns the Facility for the given string.
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in
the order they are declared.
Methods inherited from class java.lang.Enum
clone , compareTo , describeConstable , equals , finalize , getDeclaringClass , hashCode , name , ordinal , toString , valueOf
Enum Constant Details
USER
User level messages.
AUTH
Security/Authorization messages.
SYSLOG
Messages generated by syslogd.
LPR
Line printer subsystem.
NEWS
Network news subsystem.
AUTHPRIV
Security/Authorization messages.
Field Details
code
private final int code
Constructor Details
Facility
private Facility (int code)
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 name
NullPointerException
- if the argument is null
toFacility
Returns the Facility for the given string.
Parameters:
name
- The Facility enum name, case-insensitive. If null, returns, null
Returns:
a Facility enum value or null if name is null
toFacility
Returns the Facility for the given string.
Parameters:
name
- The Facility enum name, case-insensitive. If null, returns, defaultFacility
defaultFacility
- the Facility to return if name is null
Returns:
a Facility enum value or null if name is null
getCode
public int getCode ()
Retrieve the value of the enumeration.
Returns:
The value associated with the enumeration.
isEqual
public boolean isEqual (String name)
Determine if this enumeration matches the specified name (ignoring case).
Parameters:
name
- The name to check.
Returns:
true if the name matches this enumeration, ignoring case.