com.sun.idm.logging.syslog
Class Severity

java.lang.Object
  extended bycom.sun.idm.logging.syslog.Severity

public class Severity
extends java.lang.Object

Enumerates known Severity levels for Syslog events.


Field Summary
static java.lang.String code_id
           
static Severity ERROR
          A Severity indiciating the associated error caused termination of the processing stream and/or data loss.
static Severity FATAL
          A Severity indicating the associated error caused the termination of the overall processing stream.
static Severity WARNING
          A Severity indication the associated error did not terminate the processing stream and was recovered with negligible data loss, if any.
 
Method Summary
 java.lang.String getDBKey()
           
 java.lang.String getMsgKey()
           
static Severity getSeverityByKey(java.lang.String key)
          Find the severity matching a given key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

code_id

public static final java.lang.String code_id
See Also:
Constant Field Values

FATAL

public static final Severity FATAL
A Severity indicating the associated error caused the termination of the overall processing stream.


ERROR

public static final Severity ERROR
A Severity indiciating the associated error caused termination of the processing stream and/or data loss.


WARNING

public static final Severity WARNING
A Severity indication the associated error did not terminate the processing stream and was recovered with negligible data loss, if any.

Method Detail

getDBKey

public java.lang.String getDBKey()
Returns:
the database key used for this severity

getMsgKey

public java.lang.String getMsgKey()
Returns:
the message key used for this severity

getSeverityByKey

public static Severity getSeverityByKey(java.lang.String key)
Find the severity matching a given key.

Parameters:
key - - the DB key of a severity
Returns:
the matching severity, null if no match exists.