|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | 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(java.lang.String type,
java.lang.Object source,
long sequenceNumber)
Create a new notification |
|
Notification(java.lang.String type,
java.lang.Object source,
long sequenceNumber,
long timeStamp)
Create a new notification |
|
Notification(java.lang.String type,
java.lang.Object source,
long sequenceNumber,
long timeStamp,
java.lang.String message)
Create a new notification |
|
Notification(java.lang.String type,
java.lang.Object source,
long sequenceNumber,
java.lang.String message)
Create a new notification |
Method Summary | |
java.lang.String |
getMessage()
Retrieve the message of the notification |
long |
getSequenceNumber()
Retrieve the sequence number of the notification |
java.lang.Object |
getSource()
Retrieve the source of the notification |
long |
getTimeStamp()
Retrieve the time of the notification |
java.lang.String |
getType()
Retrieve the type of the notification |
java.lang.Object |
getUserData()
Retrieve the user data of the notification |
void |
setSequenceNumber(long sequenceNumber)
Set the sequence number of the notifiction |
void |
setSource(java.lang.Object source)
Set the source of the notification |
void |
setTimeStamp(long timeStamp)
Set the time of the notifiction |
void |
setUserData(java.lang.Object userData)
Set the user data of the notifiction |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Notification(java.lang.String type, java.lang.Object source, long sequenceNumber)
type
- the type of the notificationsource
- the source of the notificationsequenceNumber
- the sequence number of the notificationpublic Notification(java.lang.String type, java.lang.Object source, long sequenceNumber, java.lang.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(java.lang.String type, java.lang.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(java.lang.String type, java.lang.Object source, long sequenceNumber, long timeStamp, java.lang.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 notificationMethod Detail |
public java.lang.Object getSource()
public void setSource(java.lang.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
java.lang.IllegalArgumentException
- when the object name is invalidpublic long getSequenceNumber()
public void setSequenceNumber(long sequenceNumber)
sequenceNumber
- the new sequence numberpublic java.lang.String getType()
public long getTimeStamp()
public void setTimeStamp(long timeStamp)
timeStamp
- the new timepublic java.lang.String getMessage()
public java.lang.Object getUserData()
public void setUserData(java.lang.Object userData)
userData
- the new user datapublic java.lang.String toString()
|
||||||||||
PREV CLASS (src) NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |