Methods Summary |
---|
public javax.management.Notification | buildNew()Build a new Notification without any values in its Map
and no message.
return buildNew( mNotificationType );
|
public javax.management.Notification | buildNew(java.lang.String message)Build a new Notification without any values in its Map.
return buildNewWithMap( message, null );
|
public javax.management.Notification | buildNewWithMap(java.lang.String message, java.util.Map userDataMap)Build a new Notification with an existing Map.
final Notification notif = new Notification(
mNotificationType,
mSource,
nextSequenceNumber(),
now(),
message);
if ( userDataMap != null )
{
notif.setUserData( userDataMap );
}
else
{
notif.setUserData( new HashMap<String,Serializable>() );
}
return( notif );
|
public final java.lang.String | getNotificationType()
return( mNotificationType );
|
public final java.lang.Object | getSource()
return( mSource );
|
protected synchronized long | nextSequenceNumber()
return( mSequenceNumber++ );
|
protected final long | now()
return( System.currentTimeMillis() );
|
public static final void | putAllMapData(javax.management.Notification notif, java.util.Map additionalUserData)Put all key/value pairs into the user data Map.
final Map<String,Serializable> userData =
JMXUtil.getUserDataMapString_Serializable( notif );
userData.putAll( additionalUserData );
|
public static final void | putMapData(javax.management.Notification notif, java.lang.String keyToInsert, java.io.Serializable valueToInsert)Put a single key/value pair into the user data Map.
final Map<String,Serializable> userData =
JMXUtil.getUserDataMapString_Serializable( notif );
userData.put( keyToInsert, valueToInsert );
|