public final class ProgramInfo
extends java.lang.Object
implements java.io.Serializable
Program
including stability and matching
probe count.
Immutable. Supports persistence using XMLEncoder
.
Constructor and Description |
---|
ProgramInfo(InterfaceAttributes minProbeAttr,
InterfaceAttributes minStatementAttr,
int matchingProbes)
Creates a
ProgamInfo instance with the given properties. |
Modifier and Type | Method and Description |
---|---|
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. |
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 descriptionjava.lang.NullPointerException
- if minProbeAttr
or minStatementAttr
is null
java.lang.IllegalArgumentException
- if matchingProbes
is
negativepublic 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