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 SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionintgetCode()Retrieve the value of the enumeration.booleanDetermine if this enumeration matches the specified name (ignoring case).static FacilitytoFacility(String name) Returns the Facility for the given string.static FacilitytoFacility(String name, Facility defaultFacility) Returns the Facility for the given string.static FacilityReturns 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- 
KERNKernel messages.
- 
USERUser level messages.
- 
MAILMail system.
- 
DAEMONSystem daemons.
- 
AUTHSecurity/Authorization messages.
- 
SYSLOGMessages generated by syslogd.
- 
LPRLine printer subsystem.
- 
NEWSNetwork news subsystem.
- 
UUCPUUCP subsystem.
- 
CRONClock daemon.
- 
AUTHPRIVSecurity/Authorization messages.
- 
FTPFTP daemon.
- 
NTPNTP subsystem.
- 
LOG_AUDITLog audit.
- 
LOG_ALERTLog alert.
- 
CLOCKClock daemon.
- 
LOCAL0Local use 0.
- 
LOCAL1Local use 1.
- 
LOCAL2Local use 2.
- 
LOCAL3Local use 3.
- 
LOCAL4Local use 4.
- 
LOCAL5Local use 5.
- 
LOCAL6Local use 6.
- 
LOCAL7Local use 7.
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
toFacilityReturns 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
 
- 
toFacilityReturns 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 defaultFacility if name is null
 
- 
getCodepublic int getCode()Retrieve the value of the enumeration.- Returns:
- The value associated with the enumeration.
 
- 
isEqualDetermine 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.
 
 
-