| Modifier and Type | Field and Description |
|---|---|
| public static final Priority | DEBUG
Developer orientated messages, usually used during development of product. |
| public static final Priority | ERROR
A problem has occurred but it is not fatal. |
| public static final Priority | FATAL_ERROR
Something caused whole system to fail. |
| public static final Priority | INFO
Useful information messages such as state changes, client connection, user login etc. |
| private final String | |
| private final int | |
| public static final Priority | NONE
Do not log anything. |
| public static final Priority | WARN
A problem or conflict has occurred but it may be recoverable, then again it could be the start of the system failing. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public static Priority | Returns: the Priority for namethe priority name priority)Retrieve a Priority object for the name parameter. |
| public int | |
| public boolean | |
| public boolean | |
| public boolean | Returns: TRUE if the priority is lower or equal else FALSEthe other Priority other)Test whether this priority is lower or equal to other priority. |
| private Object | Returns: the singleton version of objectHelper method that replaces deserialized object with correct singleton. |
| public String | Returns: the string describing priorityOverrides java. |
| DEBUG | back to summary |
|---|---|
| public static final Priority DEBUG Developer orientated messages, usually used during development of product. | |
| ERROR | back to summary |
|---|---|
| public static final Priority ERROR A problem has occurred but it is not fatal. The system will still function. | |
| FATAL_ERROR | back to summary |
|---|---|
| public static final Priority FATAL_ERROR Something caused whole system to fail. This indicates that an administrator should restart the system and try to fix the problem that caused the failure. | |
| INFO | back to summary |
|---|---|
| public static final Priority INFO Useful information messages such as state changes, client connection, user login etc. | |
| m_name | back to summary |
|---|---|
| private final String m_name | |
| m_priority | back to summary |
|---|---|
| private final int m_priority | |
| NONE | back to summary |
|---|---|
| public static final Priority NONE Do not log anything. | |
| WARN | back to summary |
|---|---|
| public static final Priority WARN A problem or conflict has occurred but it may be recoverable, then again it could be the start of the system failing. | |
| Priority | back to summary |
|---|---|
| private Priority(final String name, final int priority) Private Constructor to block instantiation outside class.
| |
| getName | back to summary |
|---|---|
| public String getName() Get name of priority.
| |
| getPriorityForName | back to summary |
|---|---|
| public static Priority getPriorityForName(final String priority) Retrieve a Priority object for the name parameter. | |
| getValue | back to summary |
|---|---|
| public int getValue() Get numerical value associated with priority.
| |
| isGreater | back to summary |
|---|---|
| public boolean isGreater(final Priority other) Test whether this priority is greater than other priority.
| |
| isLower | back to summary |
|---|---|
| public boolean isLower(final Priority other) Test whether this priority is lower than other priority.
| |
| isLowerOrEqual | back to summary |
|---|---|
| public boolean isLowerOrEqual(final Priority other) Test whether this priority is lower or equal to other priority.
| |
| readResolve | back to summary |
|---|---|
| private Object readResolve() Helper method that replaces deserialized object with correct singleton.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Overidden string to display Priority in human readable form.
| |