|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface INotification
The notification interface represents a notification emitted from a Sonic Management Framework compliant component.
When a notifiable event occurs, components create a notification. Event information is included in the notification by adding attributes (name/value pairs).
Management applications subscribe to notifications through the JMS connector and may cast JMX notifications to INotification in order to access the additional functionality of this interface.
JMSConnectorClient
,
JMSConnectorClient.addNotificationListener(ObjectName, NotificationListener, NotificationFilter, Object)
Field Summary | |
---|---|
static short |
ALERT_SUBCATEGORY
|
static short |
APPLICATION_CATEGORY
|
static java.lang.String[] |
CATEGORY_TEXT
A textual representation of the notification category may be obtained using the return value from getCategory() as an index into the array. |
static java.lang.String |
CLASSNAME
|
static short |
CONFIGURATION_CATEGORY
|
static short |
ERROR_TYPE
|
static short |
FAILURE_AUDIT_TYPE
|
static short |
INFORMATION_TYPE
|
static short |
LOG_SUBCATEGORY
|
static java.lang.String[] |
LOGTYPE_TEXT
A textual representation of the notification log type may be obtained using the return value from getLogType() as an index into the array. |
static short |
MONITOR_SUBCATEGORY
|
static short |
SECURITY_SUBCATEGORY
|
static short |
STATE_SUBCATEGORY
|
static short |
STORAGE_SUBCATEGORY
|
static java.lang.String[] |
SUBCATEGORY_TEXT
A textual representation of the notification subcategory may be obtained using the return value from getSubCategory() as an index into the array. |
static short |
SUCCESS_AUDIT_TYPE
|
static short |
SYSTEM_CATEGORY
Management framework system notifications (reserved for internal use only) |
static short |
WARNING_TYPE
|
Method Summary | |
---|---|
java.util.HashMap |
getAttributes()
Gets the event information specified as attributes. |
short |
getCategory()
Each notification belongs to a major category. |
java.lang.String |
getEventName()
Each notification type is unique by category/subcategory/event name. |
short |
getLogType()
|
long |
getSequenceNumber()
Gets the sequence number for the notification. |
int |
getSeverity()
Each notification has a severity associated with it. |
java.lang.String |
getSourceHost()
Gets the source of the notification. |
IComponentIdentity |
getSourceIdentity()
Gets the source of the notification. |
java.lang.String |
getSubCategory()
Each notification has a minor category. |
long |
getTimeStamp()
Gets the timestamp of the notification. |
java.lang.String |
getType()
Each notification type is unique by category/subcategory/event name. |
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets a notification attribute (a named piece of event information). |
void |
setLogType(short logType)
Each notification can be assigned a log type. |
void |
setSourceIdentity(IComponentIdentity sourceIdentity)
Sets the source of the notification. |
Field Detail |
---|
static final short ALERT_SUBCATEGORY
static final short APPLICATION_CATEGORY
static final java.lang.String[] CATEGORY_TEXT
getCategory()
static final java.lang.String CLASSNAME
static final short CONFIGURATION_CATEGORY
static final short ERROR_TYPE
static final short FAILURE_AUDIT_TYPE
static final short INFORMATION_TYPE
static final short LOG_SUBCATEGORY
static final java.lang.String[] LOGTYPE_TEXT
getLogType()
static final short MONITOR_SUBCATEGORY
static final short SECURITY_SUBCATEGORY
static final short STATE_SUBCATEGORY
static final short STORAGE_SUBCATEGORY
static final java.lang.String[] SUBCATEGORY_TEXT
getSubCategory()
static final short SUCCESS_AUDIT_TYPE
static final short SYSTEM_CATEGORY
static final short WARNING_TYPE
Method Detail |
---|
java.util.HashMap getAttributes()
short getCategory()
Permissible values are 0 thru 3 (see <>_CATEGORY constants).
java.lang.String getEventName()
short getLogType()
setLogType(short)
long getSequenceNumber()
int getSeverity()
java.lang.String getSourceHost()
IComponentIdentity getSourceIdentity()
java.lang.String getSubCategory()
A subset of well known values are defined as constants (see <>_SUBCATEGORY constants).
long getTimeStamp()
java.lang.String getType()
void setAttribute(java.lang.String name, java.lang.Object value)
name
- The attribute name.value
- The attribute value (should be base types or arrays of base types).void setLogType(short logType)
Log types are intended for indexing of information types by log\audit services (e.g. Microsoft Event Viewer). They provide a narrower/alternate view of severity.
logType
- Permissible values are 0 thru 4 (see <>_TYPE constants).void setSourceIdentity(IComponentIdentity sourceIdentity)
|
Sonic Management API | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |