Enum Class Facility
- All Implemented Interfaces:
Serializable
,Comparable<Facility>
,Constable
Defines the standard Syslog message facilities.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSecurity/authorization messages.Security/authorization messages.Clock daemon.Clock daemon.System daemons.FTP daemon.Kernel messages.Local use 0 (local0).Local use 1 (local1).Local use 2 (local2).Local use 3 (local3).Local use 4 (local4).Local use 5 (local5).Local use 6 (local6).Local use 7 (local7).Log alert.Log audit.Line printer subsystem.Mail system.Network news subsystem.NTP subsystem.Messages generated internally by syslogd.User-level messages.UUCP subsystem. -
Method Summary
-
Enum Constant Details
-
KERN
Kernel messages. -
USER
User-level messages. -
MAIL
Mail system. -
DAEMON
System daemons. -
AUTH
Security/authorization messages. -
SYSLOG
Messages generated internally 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. -
LOGAUDIT
Log audit. -
LOGALERT
Log alert. -
CLOCKD
Clock daemon. -
LOCAL0
Local use 0 (local0). -
LOCAL1
Local use 1 (local1). -
LOCAL2
Local use 2 (local2). -
LOCAL3
Local use 3 (local3). -
LOCAL4
Local use 4 (local4). -
LOCAL5
Local use 5 (local5). -
LOCAL6
Local use 6 (local6). -
LOCAL7
Local use 7 (local7).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getCode
public int getCode()Get the syslog code for the facility.- Returns:
- The code.
-