public class LogNotification extends MQNotification
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
LOG_LEVEL_ERROR |
static java.lang.String |
LOG_LEVEL_INFO |
static java.lang.String |
LOG_LEVEL_PREFIX |
static java.lang.String |
LOG_LEVEL_WARNING |
PREFIX
Constructor and Description |
---|
LogNotification(java.lang.String type,
java.lang.Object source,
long sequenceNumber)
Creates a LogNotification object.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLevel()
Returns the log level related to this log notification.
|
java.lang.String |
getMessage()
Returns message related to this log notification.
|
void |
setLevel(java.lang.String level)
Sets the log level related to this log notification.
|
void |
setMessage(java.lang.String msg)
Sets the message related to this log notification.
|
public static final java.lang.String LOG_LEVEL_PREFIX
public static final java.lang.String LOG_LEVEL_WARNING
public static final java.lang.String LOG_LEVEL_ERROR
public static final java.lang.String LOG_LEVEL_INFO
public LogNotification(java.lang.String type, java.lang.Object source, long sequenceNumber)
type
- The notification type.source
- The notification source.sequenceNumber
- The notification sequence number within the source object.public void setMessage(java.lang.String msg)
msg
- The log message for this notification.public java.lang.String getMessage()
getMessage
in class javax.management.Notification
public void setLevel(java.lang.String level)
level
- The log level for this notification.public java.lang.String getLevel()
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.