|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.UserSymbolRecord
public final class UserSymbolRecord
A value generated by the DTrace umod()
, ufunc()
, or
usym()
action used to lookup the symbol associated with a
user address.
Immutable. Supports persistence using XMLEncoder
.
Nested Class Summary | |
---|---|
static class |
UserSymbolRecord.Value
The composite value of a symbol's process ID and user address. |
Constructor Summary | |
---|---|
UserSymbolRecord(int pid,
java.lang.String lookupValue,
long addressValue)
Creates a UserSymbolRecord with the given process ID,
symbol lookup, and user address converted in probe context as a
result of the DTrace umod() , ufunc() , or usym() action. |
Method Summary | |
---|---|
int |
compareTo(UserSymbolRecord r)
Compares this record with the given user symbol lookup and orders by the combined value of process ID first and address second. |
boolean |
equals(java.lang.Object o)
Compares the specified object with this UserSymbolRecord
for equality. |
long |
getAddress()
Gets the symbol's user address. |
int |
getProcessID()
Gets the process ID associated with this record's symbol. |
java.lang.String |
getSymbol()
Gets the result of the address lookup in the same form returned by Consumer.lookupUserFunction(int pid, long address) . |
UserSymbolRecord.Value |
getValue()
Gets the composite value of the symbol's process ID and address. |
int |
hashCode()
Overridden to ensure that equal instances have equal hash codes. |
java.lang.String |
toString()
Gets the result of this symbol lookup. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public UserSymbolRecord(int pid, java.lang.String lookupValue, long addressValue)
UserSymbolRecord
with the given process ID,
symbol lookup, and user address converted in probe context as a
result of the DTrace umod()
, ufunc()
, or usym()
action.
Supports XML persistence.
pid
- non-negative user process IDlookupValue
- the result in the native DTrace library of
looking up the symbol associated with the given user addressaddressValue
- symbol address
java.lang.NullPointerException
- if the given lookup value is null
java.lang.IllegalArgumentException
- if the given process ID is
negativeMethod Detail |
---|
public int getProcessID()
public java.lang.String getSymbol()
Consumer.lookupUserFunction(int pid, long address)
.
getSymbol
in interface SymbolValueRecord
public long getAddress()
getAddress
in interface SymbolValueRecord
public UserSymbolRecord.Value getValue()
equals()
and
compareTo()
to test
equality and to determine the natural ordering of UserSymbolRecord
instances.
getValue
in interface ValueRecord
public boolean equals(java.lang.Object o)
UserSymbolRecord
for equality. Returns true
if and only if the specified
object is also a UserSymbolRecord
and both records have
the same process ID and the same address.
equals
in class java.lang.Object
true
if and only if the specified object is also
a UserSymbolRecord
and both records have the same
process ID and the same addresspublic int hashCode()
hashCode
in class java.lang.Object
public int compareTo(UserSymbolRecord r)
compareTo()
method is compatible with equals()
.
compareTo
in interface java.lang.Comparable<UserSymbolRecord>
public java.lang.String toString()
toString
in class java.lang.Object
getSymbol()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |