|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.Probe
public final class Probe
A ProbeDescription
identifying a single probe combined with
information about the identified probe.
Immutable. Supports persistence using XMLEncoder
.
Consumer.listProbes(ProbeDescription filter)
,
Consumer.listProgramProbes(Program program)
,
Serialized FormConstructor Summary | |
---|---|
Probe(ProbeDescription probeDescription,
ProbeInfo probeInfo)
Creates a Probe instance with the given identifying
description and associated probe information. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this Probe instance
for equality. |
ProbeDescription |
getDescription()
Gets the probe description identifying a single probe described by this instance. |
ProbeInfo |
getInfo()
Gets information including attributes and argument types of the probe identified by getDescription() . |
int |
hashCode()
Overridden to ensure that equal instances have equal hash codes. |
java.lang.String |
toString()
Returns a string representation of this Probe useful for
logging and not intended for display. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Probe(ProbeDescription probeDescription, ProbeInfo probeInfo)
Probe
instance with the given identifying
description and associated probe information. Supports XML
persistence.
probeDescription
- probe description that identifies a
single DTrace probeprobeInfo
- information about the identified probe, null
indicating that the information could not be obtained
java.lang.NullPointerException
- if the given probe description is
null
Method Detail |
---|
public ProbeDescription getDescription()
public ProbeInfo getInfo()
getDescription()
.
getDescription()
, or null
if that information could not
be obtained for any reasonpublic boolean equals(java.lang.Object o)
Probe
instance
for equality. Defines equality as having the same probe
description.
equals
in class java.lang.Object
true
if and only if the specified object is also
a Probe
and both instances return equal values from
getDescription()
.public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
Probe
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]
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |