Class LogNotification
java.lang.Object
java.util.EventObject
javax.management.Notification
com.sun.messaging.jms.management.server.MQNotification
com.sun.messaging.jms.management.server.LogNotification
- All Implemented Interfaces:
Serializable
Class containing information on log related notifications. Log Notifications are sent when an entry in the broker log
is made.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
Fields inherited from class com.sun.messaging.jms.management.server.MQNotification
PREFIX
Fields inherited from class javax.management.Notification
source
-
Constructor Summary
ConstructorsConstructorDescriptionLogNotification
(String type, Object source, long sequenceNumber) Creates a LogNotification object. -
Method Summary
Modifier and TypeMethodDescriptiongetLevel()
Returns the log level related to this log notification.Returns message related to this log notification.void
Sets the log level related to this log notification.void
setMessage
(String msg) Sets the message related to this log notification.Methods inherited from class javax.management.Notification
getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
Methods inherited from class java.util.EventObject
getSource
-
Field Details
-
LOG_LEVEL_PREFIX
- See Also:
-
LOG_LEVEL_WARNING
- See Also:
-
LOG_LEVEL_ERROR
- See Also:
-
LOG_LEVEL_INFO
- See Also:
-
-
Constructor Details
-
LogNotification
Creates a LogNotification object.- Parameters:
type
- The notification type.source
- The notification source.sequenceNumber
- The notification sequence number within the source object.
-
-
Method Details
-
setMessage
Sets the message related to this log notification.- Parameters:
msg
- The log message for this notification.
-
getMessage
Returns message related to this log notification.- Overrides:
getMessage
in classNotification
- Returns:
- The log message for this notification.
-
setLevel
Sets the log level related to this log notification.- Parameters:
level
- The log level for this notification.
-
getLevel
Returns the log level related to this log notification.- Returns:
- The log level for this notification.
-