Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.opensolaris.os.dtrace
Class ProcessEvent

    java.lang.Object
      java.util.EventObject
          org.opensolaris.os.dtrace.ProcessEvent

All Implemented Interfaces:
  java.io.Serializable

    public class ProcessEvent

extends java.util.EventObject

Notification that the state of a target process designated by `Consumer.createProcess(String command)` or `Consumer.grabProcess(int pid)` has changed.

See Also:
  `ConsumerListener.processStateChanged(ProcessEvent e)`, Serialized Form

Field Summary

Fields inherited from class java.util.EventObject
`source`

Constructor Summary
`ProcessEvent(java.lang.Object source, ProcessState p)` Creates a `processStateChanged()` event to notify listeners of a process state change.

Method Summary
`ProcessState` | `getProcessState()` Gets the process state.
`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

### ProcessEvent

    public ProcessEvent(java.lang.Object source,
                        ProcessState p)

  Creates a `processStateChanged()` event to notify listeners of a process state change.

  Parameters:
    `source` - the `Consumer` that is the source of this event
  Throws:
    `java.lang.NullPointerException` - if the given process state is `null`

Method Detail

### getProcessState

    public ProcessState getProcessState()

  Gets the process state.

  Returns:
    non-null process state

### 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`

Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD