org.opensolaris.os.dtrace
Class DropEvent

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

public class DropEvent
extends java.util.EventObject

Notification that DTrace has dropped data due to inadequate buffer space.

See Also:
ConsumerListener.dataDropped(DropEvent e), Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
DropEvent(java.lang.Object source, Drop dataDrop)
          Creates a dataDropped() event that reports dropped data.
 
Method Summary
 Drop getDrop()
          Gets the drop information generated by DTrace.
 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

DropEvent

public DropEvent(java.lang.Object source,
                 Drop dataDrop)
Creates a dataDropped() event that reports dropped data.

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

getDrop

public Drop getDrop()
Gets the drop information generated by DTrace.

Returns:
non-null drop information generated by DTrace

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