|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.ProgramInfo
public final class ProgramInfo
Information about a Program
including stability and matching
probe count.
Immutable. Supports persistence using XMLEncoder
.
Consumer.getProgramInfo(Program program)
,
Consumer.enable(Program program)
,
Serialized FormConstructor Summary | |
---|---|
ProgramInfo(InterfaceAttributes minProbeAttr,
InterfaceAttributes minStatementAttr,
int matchingProbes)
Creates a ProgamInfo instance with the given properties. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares the specified object with this program information for equality. |
int |
getMatchingProbeCount()
Gets the number of DTrace probes that match the probe descriptions in a compiled Program . |
InterfaceAttributes |
getMinimumProbeAttributes()
Gets the minimum stability levels of the probe descriptions used in a compiled Program . |
InterfaceAttributes |
getMinimumStatementAttributes()
Gets the minimum stability levels of the action statements including D variables used in a compiled Program . |
int |
hashCode()
Overridden to ensure that equal ProgramInfo instances
have equal hashcodes. |
java.lang.String |
toString()
Gets a string representation of this ProgramInfo 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 ProgramInfo(InterfaceAttributes minProbeAttr, InterfaceAttributes minStatementAttr, int matchingProbes)
ProgamInfo
instance with the given properties.
Supports XML persistence.
minProbeAttr
- minimum stability levels of the
program probe descriptionsminStatementAttr
- minimum stability levels of the
program action statements (including D variables)matchingProbes
- non-negative count of probes matching the
program probe description
java.lang.NullPointerException
- if minProbeAttr
or minStatementAttr
is null
java.lang.IllegalArgumentException
- if matchingProbes
is
negativeMethod Detail |
---|
public InterfaceAttributes getMinimumProbeAttributes()
Program
.
public InterfaceAttributes getMinimumStatementAttributes()
Program
.
public int getMatchingProbeCount()
Program
. This count may be
very high for programs that use ProbeDescription
wildcarding (field omission) and globbing (pattern matching
syntax).
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
true
if and only if the specified object is also
a ProgramInfo
instance and has all the same information
as this instancepublic int hashCode()
ProgramInfo
instances
have equal hashcodes.
hashCode
in class java.lang.Object
public java.lang.String toString()
ProgramInfo
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 |