|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.commons.LogMessageInfoImpl
public abstract class LogMessageInfoImpl
This abstract class implements the interface
LogMessageInfo.
All parameters are stored as immutable fields. Besides the parameters from the interface, an (unique) error id must be supplied during construction.
| Constructor Summary | |
|---|---|
protected |
LogMessageInfoImpl(String symbol,
int id,
Level level,
String text,
String solution,
BusinessImpact businessImpact,
Category category,
String[] params,
String appName,
String appNameAbbr,
String groupName,
String groupNameAbbr)
|
| Method Summary | |
|---|---|
StringBuffer |
formatMessage(Map parameters,
StringBuffer buffer)
Fills the detail message into the given string buffer with it's parameters substituted. |
String |
getAppName()
Returns the application name as string. |
String |
getAppNameAbbreviation()
Returns the application name abbreviation as string. |
BusinessImpact |
getBusinessImpact()
Returns the possible business impact of the event that triggered this message to be dumped. |
Category |
getCategory()
Returns the category of the event that triggered this message to be dumped. |
String |
getGroupName()
Returns the group name as string. |
String |
getGroupNameAbbreviation()
Returns the group name abbreviation as string. |
Level |
getLogLevel()
Returns the log level that should be used (by default) for this message. |
String |
getMessagePattern()
Returns the message pattern used to create detailed messages for this message type. |
List |
getParameterList()
Returns a List of Strings containing the name of the parameters that are used by this message. |
String |
getSolution()
Returns a string describing the possible solution for this message. |
String |
getSymbol()
Returns the symbolic name for this log message info. |
int |
toInt()
Returns the (unique) integer representation of the log message info. |
String |
toString()
Returns the string representation of the log message info. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected LogMessageInfoImpl(String symbol,
int id,
Level level,
String text,
String solution,
BusinessImpact businessImpact,
Category category,
String[] params,
String appName,
String appNameAbbr,
String groupName,
String groupNameAbbr)
| Method Detail |
|---|
public final int toInt()
+=========+=========+=========+=========+
ID (32 bit) : |0XXX XXXX|YYYY YYYY|ZZZZ ZZZZ|ZZZZ ZZZZ|
+=========+=========+=========+=========+
XXX (7 bit) -> application @id
YYY (8 bit) -> group @id
ZZZ (16 bit) -> message @id
Note:
This value should also be printed in its hexadecimal string
representation since it could then be easily masked by
human readers.
toInt in interface LogMessageInfopublic final String toString()
symbol during construction.
toString in class ObjectObject.toString()public final String getSymbol()
getSymbol in interface LogMessageInfopublic final Level getLogLevel()
getLogLevel in interface LogMessageInfopublic final String getMessagePattern()
MessageFormat. The order of the parameters is
given by the parameter list LogMessageInfo.getParameterList().
getMessagePattern in interface LogMessageInfo
public final StringBuffer formatMessage(Map parameters,
StringBuffer buffer)
formatMessage in interface LogMessageInfoparameters - The map of parameters to be substituted.buffer - the StringBuffer to be filled.
public final String getSolution()
getSolution in interface LogMessageInfopublic final BusinessImpact getBusinessImpact()
getBusinessImpact in interface LogMessageInfopublic final Category getCategory()
getCategory in interface LogMessageInfopublic final List getParameterList()
getParameterList in interface LogMessageInfopublic String getAppName()
getAppName in interface LogMessageInfopublic String getAppNameAbbreviation()
getAppNameAbbreviation in interface LogMessageInfopublic String getGroupName()
getGroupName in interface LogMessageInfopublic String getGroupNameAbbreviation()
getGroupNameAbbreviation in interface LogMessageInfo
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||