org.apache.log
public final class Priority extends Object implements Serializable
Field Summary | |
---|---|
static Priority | DEBUG
Developer orientated messages, usually used during development of product. |
static Priority | ERROR
A problem has occurred but it is not fatal. |
static Priority | FATAL_ERROR
Something caused whole system to fail. |
static Priority | INFO
Useful information messages such as state changes, client connection, user login etc. |
String | m_name |
int | m_priority |
static Priority | NONE
Do not log anything. |
static Priority | WARN
A problem or conflict has occurred but it may be recoverable, then
again it could be the start of the system failing. |
Constructor Summary | |
---|---|
Priority(String name, int priority)
Private Constructor to block instantiation outside class.
|
Method Summary | |
---|---|
String | getName()
Get name of priority.
|
static Priority | getPriorityForName(String priority)
Retrieve a Priority object for the name parameter.
|
int | getValue()
Get numerical value associated with priority.
|
boolean | isGreater(Priority other)
Test whether this priority is greater than other priority.
|
boolean | isLower(Priority other)
Test whether this priority is lower than other priority.
|
boolean | isLowerOrEqual(Priority other)
Test whether this priority is lower or equal to other priority.
|
Object | readResolve()
Helper method that replaces deserialized object with correct singleton.
|
String | toString()
Overidden string to display Priority in human readable form.
|
Parameters: name the string name of priority priority the numerical code of priority
Returns: the priorities name
Parameters: priority the priority name
Returns: the Priority for name
Returns: the numerical value
Parameters: other the other Priority
Returns: TRUE if the priority is greater else FALSE
Parameters: other the other Priority
Returns: TRUE if the priority is lower else FALSE
Parameters: other the other Priority
Returns: TRUE if the priority is lower or equal else FALSE
Returns: the singleton version of object
Returns: the string describing priority