Represents a notification emitted by an MBean. More...

#include <SPL/Runtime/Operator/Control/Notification.h>

Inheritance diagram for SPL::Notification:
Inheritance graph
node
[legend]

Detailed Description

Represents a notification emitted by an MBean.

A Notification contains a type, sequence number, timestamp and, optionally, specific user data represented as std::string, and a message. The notification source is the object name of the MBean which emitted the notification.

Since
InfoSphere® Streams Version 4.0.0.

Constructor & Destructor Documentation

Copy constructor.

Creates a Notification object.

The notification timeStamp is set to the current time.

Parameters

Creates a Notification object with message.

The notification timeStamp is set to the current time.

Parameters

Creates a Notification object.

Parameters

Creates a Notification object.

Parameters

Creates a Notification object.

Parameters

Member Function Documentation

Set the source.

Parameters
See Also
getSource

Get the notification sequence number.

The sequence number is a serial number identifying a particular instance of notification in the context of the notification source. The notification model does not assume that notifications will be received in the same order that they are sent. The sequence number helps listeners to sort received notifications.

Returns
The notification sequence number within the source object.
See Also
setSequenceNumber

Set the notification sequence number.

The sequence number is a serial number identifying a particular instance of notification in the context of the notification source.

Parameters
See Also
getSequenceNumber

Get the notification type.

This is a string expressed in a dot notation similar to Java properties. It is recommended that the notification type should follow the reverse-domain-name convention used by Java package names. An example of a notification type is com.acme.streams.router.alarm.

Returns
The notification type.

Get the notification timestamp.

When converted from a JMX Notification, the Java timestamp value is interpreted as the number of milliseconds since the Unix Epoch, January 1, 1970, 00:00:00 GMT (as returned by java.util.Date.getTime()), and the machineId field is set to 0.

Returns
The notification timestamp as an SPL timestamp type.
See Also
setTimeStamp

Set the notification timestamp.

The timestamp indicates when the notification was generated.

Parameters
See Also
getTimeStamp

Get the notification message.

Returns
The message string of this notification object.

Get the user data.

This is used for whatever data the notification source wishes to communicate to its consumers. For JMX Notifications, this function returns the toString() value of the Java Notification's user data. An empty C++ string is returned if the Java Notification user data is null.

Returns
A string representation of the user data.
See Also
setUserData

Get the notification source.

If the source is an MXBean then this function returns the canonical form of the source's ObjectName (see javax.management.ObjectName.getCanonicalName()).

Returns
The notification source.

Set the user data.

Parameters
See Also
getUserData

Returns a string representation of this notification.

Returns
A string representation of this notification.

Friends And Related Function Documentation

Print internal state through the << operator.

Parameters

The documentation for this class was generated from the following file: