org.opensolaris.os.dtrace
Class DataEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.opensolaris.os.dtrace.DataEvent
All Implemented Interfaces:
java.io.Serializable

public class DataEvent
extends java.util.EventObject

An event used to pass probe data generated by a DTrace Consumer to interested listeners.

See Also:
ConsumerListener.dataReceived(DataEvent e), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DataEvent(java.lang.Object source, ProbeData generatedData)
          Creates a dataReceived() event that conveys data generated by DTrace from a single probe firing.
 
Method Summary
 ProbeData getProbeData()
          Gets the data generated by DTrace from a single probe firing.
 java.lang.String toString()
          Gets a string representation of this event useful for logging and not intended for display.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataEvent

public DataEvent(java.lang.Object source,
                 ProbeData generatedData)
Creates a dataReceived() event that conveys data generated by DTrace from a single probe firing.

Throws:
java.lang.NullPointerException - if the given probe data is null
Method Detail

getProbeData

public ProbeData getProbeData()
Gets the data generated by DTrace from a single probe firing.

Returns:
non-null probe data generated by DTrace from a single probe firing

toString

public java.lang.String toString()
Gets a string representation of this event useful for logging and not intended for display. The exact details of the representation are unspecified and subject to change, but the following format may be regarded as typical:

 class-name[property1 = value1, property2 = value2]
 

Overrides:
toString in class java.util.EventObject