Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.management
Class Notification  view Notification download Notification.java

java.lang.Object
  extended byjava.util.EventObject
      extended byjavax.management.Notification
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AttributeChangeNotification, MBeanServerNotification

public class Notification
extends java.util.EventObject

A Notification.

Revisions:

20020329 Adrian Brock:

20020710 Adrian Brock:

Version:
$Revision: 1.2.6.2 $

Field Summary
private  java.lang.String message
          The message of the notification
private  java.lang.Object mySource
          The source of the notification
private  long sequenceNumber
          The sequence number of the notification
private static java.io.ObjectStreamField[] serialPersistentFields
           
private static long serialVersionUID
           
private  long timeStamp
          The time of the notification
private  java.lang.String type
          The notification type
private  java.lang.Object userData
          The user data of the notification
 
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
private  void readObject(java.io.ObjectInputStream ois)
           
 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()
          Converts the event to a String.
private  void writeObject(java.io.ObjectOutputStream oos)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID

serialPersistentFields

private static final java.io.ObjectStreamField[] serialPersistentFields

type

private java.lang.String type
The notification type


sequenceNumber

private long sequenceNumber
The sequence number of the notification


message

private java.lang.String message
The message of the notification


timeStamp

private long timeStamp
The time of the notification


userData

private java.lang.Object userData
The user data of the notification


mySource

private java.lang.Object mySource
The source of the notification

Constructor Detail

Notification

public Notification(java.lang.String type,
                    java.lang.Object source,
                    long sequenceNumber)
Create a new notification


Notification

public Notification(java.lang.String type,
                    java.lang.Object source,
                    long sequenceNumber,
                    java.lang.String message)
Create a new notification


Notification

public Notification(java.lang.String type,
                    java.lang.Object source,
                    long sequenceNumber,
                    long timeStamp)
Create a new notification


Notification

public Notification(java.lang.String type,
                    java.lang.Object source,
                    long sequenceNumber,
                    long timeStamp,
                    java.lang.String message)
Create a new notification

Method Detail

getSource

public java.lang.Object getSource()
Retrieve the source of the notification


setSource

public void setSource(java.lang.Object source)
               throws java.lang.IllegalArgumentException
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.


getSequenceNumber

public long getSequenceNumber()
Retrieve the sequence number of the notification


setSequenceNumber

public void setSequenceNumber(long sequenceNumber)
Set the sequence number of the notifiction


getType

public java.lang.String getType()
Retrieve the type of the notification


getTimeStamp

public long getTimeStamp()
Retrieve the time of the notification


setTimeStamp

public void setTimeStamp(long timeStamp)
Set the time of the notifiction


getMessage

public java.lang.String getMessage()
Retrieve the message of the notification


getUserData

public java.lang.Object getUserData()
Retrieve the user data of the notification


setUserData

public void setUserData(java.lang.Object userData)
Set the user data of the notifiction


toString

public java.lang.String toString()
Description copied from class: java.util.EventObject
Converts the event to a String. The format is not specified, but by observation, the JDK uses: getClass().getName() + "[source=" + source + "]";.


readObject

private void readObject(java.io.ObjectInputStream ois)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException

writeObject

private void writeObject(java.io.ObjectOutputStream oos)
                  throws java.io.IOException