|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.EventObject
javax.management.Notification
A Notification.
Revisions:
20020329 Adrian Brock:
20020710 Adrian Brock:
| Field Summary |
| Fields inherited from class java.util.EventObject |
source |
| Constructor Summary | |
Notification(String type,
Object source,
long sequenceNumber)
Create a new notification |
|
Notification(String type,
Object source,
long sequenceNumber,
long timeStamp)
Create a new notification |
|
Notification(String type,
Object source,
long sequenceNumber,
long timeStamp,
String message)
Create a new notification |
|
Notification(String type,
Object source,
long sequenceNumber,
String message)
Create a new notification |
|
| Method Summary | |
String |
getMessage()
Retrieve the message of the notification |
long |
getSequenceNumber()
Retrieve the sequence number of the notification |
Object |
getSource()
Retrieve the source of the notification |
long |
getTimeStamp()
Retrieve the time of the notification |
String |
getType()
Retrieve the type of the notification |
Object |
getUserData()
Retrieve the user data of the notification |
void |
setSequenceNumber(long sequenceNumber)
Set the sequence number of the notifiction |
void |
setSource(Object source)
Set the source of the notification |
void |
setTimeStamp(long timeStamp)
Set the time of the notifiction |
void |
setUserData(Object userData)
Set the user data of the notifiction |
String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Notification(String type, Object source, long sequenceNumber)
type - the type of the notificationsource - the source of the notificationsequenceNumber - the sequence number of the notificationpublic Notification(String type, Object source, long sequenceNumber, String message)
type - the type of the notificationsource - the source of the notificationsequenceNumber - the sequence number of the notificationmessage - the message of the notificationpublic Notification(String type, Object source, long sequenceNumber, long timeStamp)
type - the type of the notificationsource - the source of the notificationsequenceNumber - the sequence number of the notificationtimeStamp - the time of the notificationpublic Notification(String type, Object source, long sequenceNumber, long timeStamp, String message)
type - the type of the notificationsource - the source of the notificationsequenceNumber - the sequence number of the notificationtimeStamp - the time of the notificationmessage - the message of the notification| Method Detail |
public Object getSource()
public void setSource(Object source)
The source must be either a object name or a string that can be used to create a valid object name.
source - the new source
IllegalArgumentException - when the object name is invalidpublic long getSequenceNumber()
public void setSequenceNumber(long sequenceNumber)
sequenceNumber - the new sequence numberpublic String getType()
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
timeStamp - the new timepublic String getMessage()
public Object getUserData()
public void setUserData(Object userData)
userData - the new user datapublic String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||