com.ibm.websphere.ras
Interface RasMessage
- All Superinterfaces:
- java.io.Serializable
- public interface RasMessage
- extends java.io.Serializable
RasMessage defines the interface for WebSphere ras-generated localized message events that are externalized via the JMX mechanism.
Field Summary static java.lang.String AUDIT
static java.lang.String ERROR
static java.lang.String FATAL
static java.lang.String INFO
Define a set of message severitiesstatic java.lang.String SERVICE
static java.lang.String UNKNOWN
static java.lang.String WARNING
Method Summary java.lang.String getLocalizedMessage(java.util.Locale locale)
Return the message represented by this Object in the specified Locale.java.lang.String getMessageKey()
Return the message key specified by the caller when the message was logged.java.lang.String getMessageOriginator()
Return the name of the Object that logged this message.java.lang.String getMessageSeverity()
Return a String indicating the severity of this messagejava.lang.String getResourceBundleName()
Return the name of the ResourceBundle specified by the caller when the message was logged.java.lang.String getThreadId()
Return the identifier of the thread that logged this message.long getTimeStamp()
Return the raw timestamp indicating the time when the message was logged.
Field Detail INFO
public static final java.lang.String INFO
- Define a set of message severities
- See Also:
- Constant Field Values
AUDIT
public static final java.lang.String AUDIT
- See Also:
- Constant Field Values
SERVICE
public static final java.lang.String SERVICE
- See Also:
- Constant Field Values
WARNING
public static final java.lang.String WARNING
- See Also:
- Constant Field Values
ERROR
public static final java.lang.String ERROR
- See Also:
- Constant Field Values
FATAL
public static final java.lang.String FATAL
- See Also:
- Constant Field Values
UNKNOWN
public static final java.lang.String UNKNOWN
- See Also:
- Constant Field Values
Method Detail getTimeStamp
public long getTimeStamp()
- Return the raw timestamp indicating the time when the message was logged.
- Returns:
- a long raw timestamp value
getThreadId
public java.lang.String getThreadId()
- Return the identifier of the thread that logged this message.
- Returns:
- a String representation of the thread identifier.
getMessageSeverity
public java.lang.String getMessageSeverity()
- Return a String indicating the severity of this message
- Returns:
- a non-null String indicating the message severity. The String will be one of the values defined above in this class.
getMessageKey
public java.lang.String getMessageKey()
- Return the message key specified by the caller when the message was logged.
- Returns:
- the String passed by the caller when the message was logged. If the caller passed null, Ras has generated a non-null String. Null is never returned.
getResourceBundleName
public java.lang.String getResourceBundleName()
- Return the name of the ResourceBundle specified by the caller when the message was logged.
- Returns:
- the name of the ResourceBundle that was set when this MessageEvent was created. This value may be null if the caller passed null, or if the caller has already localized the message.
getMessageOriginator
public java.lang.String getMessageOriginator()
- Return the name of the Object that logged this message.
- Returns:
- the name the caller registered with. May be null.
getLocalizedMessage
public java.lang.String getLocalizedMessage(java.util.Locale locale)
- Return the message represented by this Object in the specified Locale.
- Parameters:
- locale - the Locale to use when looking up the ResourceBundle to retrieve the message text. Must not be null.
- Returns:
- a non-null message. If an error occurs during localization, a message is generated. This message may simply be the message key.
WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.
IBM is a trademark of the IBM Corporation in the United States, other countries, or both.