Package org.opennms.netmgt.syslogd
Enum SyslogFacility
- java.lang.Object
-
- java.lang.Enum<SyslogFacility>
-
- org.opennms.netmgt.syslogd.SyslogFacility
-
- All Implemented Interfaces:
Serializable
,Comparable<SyslogFacility>
public enum SyslogFacility extends Enum<SyslogFacility>
-
-
Field Summary
Fields Modifier and Type Field Description static int
MASK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
static SyslogFacility
getFacility(int fac)
static SyslogFacility
getFacilityForCode(int code)
int
getFacilityNumber()
int
getPriority(SyslogSeverity severity)
String
toString()
static SyslogFacility
valueOf(String name)
Returns the enum constant of this type with the specified name.static SyslogFacility[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
KERNEL
public static final SyslogFacility KERNEL
-
USER
public static final SyslogFacility USER
-
MAIL
public static final SyslogFacility MAIL
-
SYSTEM
public static final SyslogFacility SYSTEM
-
AUTH
public static final SyslogFacility AUTH
-
SYSLOG
public static final SyslogFacility SYSLOG
-
LPD
public static final SyslogFacility LPD
-
NEWS
public static final SyslogFacility NEWS
-
UUCP
public static final SyslogFacility UUCP
-
CLOCK
public static final SyslogFacility CLOCK
-
AUTHPRIV
public static final SyslogFacility AUTHPRIV
-
FTP
public static final SyslogFacility FTP
-
NTP
public static final SyslogFacility NTP
-
AUDIT
public static final SyslogFacility AUDIT
-
ALERT
public static final SyslogFacility ALERT
-
CRON
public static final SyslogFacility CRON
-
LOCAL0
public static final SyslogFacility LOCAL0
-
LOCAL1
public static final SyslogFacility LOCAL1
-
LOCAL2
public static final SyslogFacility LOCAL2
-
LOCAL3
public static final SyslogFacility LOCAL3
-
LOCAL4
public static final SyslogFacility LOCAL4
-
LOCAL5
public static final SyslogFacility LOCAL5
-
LOCAL6
public static final SyslogFacility LOCAL6
-
LOCAL7
public static final SyslogFacility LOCAL7
-
UNKNOWN
public static final SyslogFacility UNKNOWN
-
-
Field Detail
-
MASK
public static final int MASK
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static SyslogFacility[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (SyslogFacility c : SyslogFacility.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SyslogFacility valueOf(String name)
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
-
getFacilityNumber
public int getFacilityNumber()
-
getDescription
public String getDescription()
-
getPriority
public int getPriority(SyslogSeverity severity)
-
toString
public String toString()
- Overrides:
toString
in classEnum<SyslogFacility>
-
getFacility
public static SyslogFacility getFacility(int fac)
-
getFacilityForCode
public static SyslogFacility getFacilityForCode(int code)
-
-