|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.sape.carbon.core.util.enum.BaseEnum | +--org.sape.carbon.core.util.classify.SeverityEnum
This generic severity classification system is used by the Core Carbon
to classify Exceptions
and logging messages. This standardized
system will allow for consistent handling of these events throughout the
Core Carbon.
Nested Class Summary | |
class |
SeverityEnum.SeverityEnumNotFoundException
This class is a typesafe retriever excepection for an enumeration |
Nested classes inherited from class org.sape.carbon.core.util.enum.BaseEnum |
|
Field Summary | |
static SeverityEnum |
DEBUG
Severity to be used for moderately detailed information needed to debug system problems. |
static int |
DEBUG_ORDINAL
|
static SeverityEnum |
ERROR
Severity to be used when the system encountered an error which it could not handle and was forced to terminate the current operation, but concurrent and future requests should not be affected. |
static int |
ERROR_ORDINAL
|
static SeverityEnum |
FATAL
Should be used when the system encounters a critical error which affects the accuracy, integrity or capability of the system as a whole, not just the current request/transaction. |
static int |
FATAL_ORDINAL
|
static SeverityEnum |
INFO
Severity to be used for all interesting periodic events so that anyone browsing the logs should be able to see the amount and kind of processing occurring in the system |
static int |
INFO_ORDINAL
|
static SeverityEnum |
TRACE
Severity to be used for high verbosity debug logging that could significantly affect the performance of the system. |
static int |
TRACE_ORDINAL
|
static SeverityEnum |
WARN
Severity to be used when the system encountered a recoverable error, which should non-the-less be logged as its occurrence is significant. |
static int |
WARN_ORDINAL
|
Fields inherited from class org.sape.carbon.core.util.enum.BaseEnum |
name, ordinal |
Constructor Summary | |
private |
SeverityEnum(String name,
int ordinal)
Constructs a enumeration of type SeverityEnum |
Method Summary | |
static SeverityEnum |
getByName(String name)
Looks up a SeverityEnum by its string representation |
static SeverityEnum |
getByOrdinal(int ordinal)
Looks up a SeverityEnum by its ordinal representation |
static Iterator |
iterator()
Creates an iterator over the values of the enumerated type |
(package private) Object |
readResolve()
Overrides part of serialization to return a reference to an enumeration instance that is managed by the Enumeration Subsystem. |
Methods inherited from class org.sape.carbon.core.util.enum.BaseEnum |
equals, getByName, getByOrdinal, getName, getOrdinal, hashCode, iterator, toString |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int FATAL_ORDINAL
FATAL
,
Constant Field Valuespublic static final SeverityEnum FATAL
public static final int ERROR_ORDINAL
ERROR
,
Constant Field Valuespublic static final SeverityEnum ERROR
public static final int WARN_ORDINAL
WARN
,
Constant Field Valuespublic static final SeverityEnum WARN
public static final int DEBUG_ORDINAL
DEBUG
,
Constant Field Valuespublic static final SeverityEnum DEBUG
public static final int INFO_ORDINAL
INFO
,
Constant Field Valuespublic static final SeverityEnum INFO
public static final int TRACE_ORDINAL
TRACE
,
Constant Field Valuespublic static final SeverityEnum TRACE
Constructor Detail |
private SeverityEnum(String name, int ordinal)
SeverityEnum
name
- the name of the severity level to buildMethod Detail |
public static final SeverityEnum getByName(String name)
SeverityEnum
by its string representation
name
- the String name of a enumeration instance
SeverityEnum
public static SeverityEnum getByOrdinal(int ordinal)
SeverityEnum
by its ordinal representation
ordinal
- the integer ordinal value of a specific enumeration instance
SeverityEnum
public static Iterator iterator()
final Object readResolve() throws ObjectStreamException
ObjectStreamException
- when there is a failure to resolve the streamed object due
to a format or read io exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |