Enum Facility
- All Implemented Interfaces:
Serializable
,Comparable<Facility>
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 ConstantDescriptionSecurity/Authorization messages.Security/Authorization messages.Clock daemon.Clock daemon.System daemons.FTP daemon.Kernel messages.Local use 0.Local use 1.Local use 2.Local use 3.Local use 4.Local use 5.Local use 6.Local use 7.Log alert.Log audit.Line printer subsystem.Mail system.Network news subsystem.NTP subsystem.Messages generated by syslogd.User level messages.UUCP subsystem. -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Retrieve the value of the enumeration.boolean
Determine if this enumeration matches the specified name (ignoring case).static Facility
toFacility
(String name) Returns the Facility for the given string.static Facility
toFacility
(String name, Facility defaultFacility) Returns the Facility for the given string.static Facility
Returns the enum constant of this type with the specified name.static Facility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
KERN
Kernel messages. -
USER
User level messages. -
MAIL
Mail system. -
DAEMON
System daemons. -
AUTH
Security/Authorization messages. -
SYSLOG
Messages generated by syslogd. -
LPR
Line printer subsystem. -
NEWS
Network news subsystem. -
UUCP
UUCP subsystem. -
CRON
Clock daemon. -
AUTHPRIV
Security/Authorization messages. -
FTP
FTP daemon. -
NTP
NTP subsystem. -
LOG_AUDIT
Log audit. -
LOG_ALERT
Log alert. -
CLOCK
Clock daemon. -
LOCAL0
Local use 0. -
LOCAL1
Local use 1. -
LOCAL2
Local use 2. -
LOCAL3
Local use 3. -
LOCAL4
Local use 4. -
LOCAL5
Local use 5. -
LOCAL6
Local use 6. -
LOCAL7
Local use 7.
-
-
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
-
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, defaultFacilitydefaultFacility
- the Facility to return if name is null- Returns:
- a Facility enum value or defaultFacility if name is null
-
getCode
public int getCode()Retrieve the value of the enumeration.- Returns:
- The value associated with the enumeration.
-
isEqual
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.
-