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 ExitRecord

    java.lang.Object
      org.opensolaris.os.dtrace.ExitRecord

All Implemented Interfaces:
  java.io.Serializable, Record

    public final class ExitRecord

extends java.lang.Object
implements Record, java.io.Serializable

A record indicating that the DTrace `exit()` action is about to stop the source `Consumer`. The exit status is whatever value was passed to the `exit()` action in the D program.

Immutable. Supports persistence using `XMLEncoder`.

See Also:
  Serialized Form

Constructor Summary
`ExitRecord(int exitStatus)` Creates an exit record with the given status.

Method Summary
`int` | `getStatus()` Gets the exit status of a DTrace `Consumer`.
`java.lang.String` | `toString()` Gets a string representation of the exit status.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

Constructor Detail

### ExitRecord

    public ExitRecord(int exitStatus)

  Creates an exit record with the given status.

  Parameters:
    `exitStatus` - value passed to the D `exit()` action

Method Detail

### getStatus

    public int getStatus()

  Gets the exit status of a DTrace `Consumer`.

  Returns:
    the value passed to the D `exit()` action

### toString

    public java.lang.String toString()

  Gets a string representation of the exit status.

  Overrides:
    `toString` in class `java.lang.Object`
  Returns:
    the string form of `getStatus()` returned by `Integer.toString(int i)`

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