public class SimpleNotificationSerializer extends java.lang.Object implements NotificationSerializer
Notification
into an simple text message.
Notification.getUserData()
is always added as object metadata against the key
"userData".
In the adapter configuration file this class is aliased as simple-jmx-notification-serializer which is the preferred alternative to the fully qualified classname when building your configuration.
OBJ_METADATA_USERDATA
Constructor and Description |
---|
SimpleNotificationSerializer() |
Modifier and Type | Method and Description |
---|---|
AdaptrisMessage |
serialize(javax.management.Notification n,
AdaptrisMessage msg) |
public AdaptrisMessage serialize(javax.management.Notification n, AdaptrisMessage msg) throws CoreException, java.io.IOException
serialize
in interface NotificationSerializer
CoreException
java.io.IOException