| java.lang.Object java.util.EventObject javax.management.Notification
All known Subclasses: javax.management.timer.TimerAlarmClockNotification, javax.management.relation.RelationNotification, javax.management.MBeanServerNotification, javax.management.monitor.MonitorNotification, javax.management.timer.TimerNotification, javax.management.AttributeChangeNotification,
Notification | public class Notification extends java.util.EventObject (Code) | | A Notification.
Revisions:
20020329 Adrian Brock:
- Make the source serializable
20020710 Adrian Brock:
author: Adrian Brock. version: $Revision: 57200 $ |
Constructor Summary | |
public | Notification(String type, Object source, long sequenceNumber) | public | Notification(String type, Object source, long sequenceNumber, String message) | public | Notification(String type, Object source, long sequenceNumber, long timeStamp) | public | Notification(String type, Object source, long sequenceNumber, long timeStamp, String message) |
Notification | public Notification(String type, Object source, long sequenceNumber)(Code) | | Create a new notification
Parameters: type - the type of the notification Parameters: source - the source of the notification Parameters: sequenceNumber - the sequence number of the notification |
Notification | public Notification(String type, Object source, long sequenceNumber, String message)(Code) | | Create a new notification
Parameters: type - the type of the notification Parameters: source - the source of the notification Parameters: sequenceNumber - the sequence number of the notification Parameters: message - the message of the notification |
Notification | public Notification(String type, Object source, long sequenceNumber, long timeStamp)(Code) | | Create a new notification
Parameters: type - the type of the notification Parameters: source - the source of the notification Parameters: sequenceNumber - the sequence number of the notification Parameters: timeStamp - the time of the notification |
Notification | public Notification(String type, Object source, long sequenceNumber, long timeStamp, String message)(Code) | | Create a new notification
Parameters: type - the type of the notification Parameters: source - the source of the notification Parameters: sequenceNumber - the sequence number of the notification Parameters: timeStamp - the time of the notification Parameters: message - the message of the notification |
getMessage | public String getMessage()(Code) | | Retrieve the message of the notification
the message |
getSequenceNumber | public long getSequenceNumber()(Code) | | Retrieve the sequence number of the notification
the sequence number |
getSource | public Object getSource()(Code) | | Retrieve the source of the notification
the source |
getTimeStamp | public long getTimeStamp()(Code) | | Retrieve the time of the notification
the time |
getType | public String getType()(Code) | | Retrieve the type of the notification
the type |
getUserData | public Object getUserData()(Code) | | Retrieve the user data of the notification
the user data |
setSequenceNumber | public void setSequenceNumber(long sequenceNumber)(Code) | | Set the sequence number of the notifiction
Parameters: sequenceNumber - the new sequence number |
setSource | public void setSource(Object source)(Code) | | Set the source of the notification
The source must be either a object name or a string that can be
used to create a valid object name.
Parameters: source - the new source exception: IllegalArgumentException - when the object name is invalid |
setTimeStamp | public void setTimeStamp(long timeStamp)(Code) | | Set the time of the notifiction
Parameters: timeStamp - the new time |
setUserData | public void setUserData(Object userData)(Code) | | Set the user data of the notifiction
Parameters: userData - the new user data |
|
|