|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.ExitRecord
public final class ExitRecord
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
.
Constructor Summary | |
---|---|
ExitRecord(int exitStatus)
Creates an exit record with the given status. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this ExitRecord for
equality. |
int |
getStatus()
Gets the exit status of a DTrace Consumer . |
int |
hashCode()
Overridden to ensure that equal instances have equal hash codes. |
java.lang.String |
toString()
Gets a string representation of the exit status. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExitRecord(int exitStatus)
exitStatus
- value passed to the D exit()
actionMethod Detail |
---|
public int getStatus()
Consumer
.
exit()
actionpublic boolean equals(java.lang.Object o)
ExitRecord
for
equality. Returns true
if and only if the specified
object is also an ExitRecord
and both records have the
same status.
equals
in class java.lang.Object
true
if and only if the specified object is also
an ExitRecord
and both records have the same statuspublic int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
getStatus()
returned by
Integer.toString(int i)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |