|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opensolaris.os.dtrace.KernelSymbolRecord
public final class KernelSymbolRecord
A value generated by the DTrace mod()
, func()
, or
sym()
action used to lookup the symbol associated with a
kernel address.
Immutable. Supports persistence using XMLEncoder
.
Constructor Summary | |
---|---|
KernelSymbolRecord(java.lang.String lookupValue,
long addressValue)
Creates a KernelSymbolRecord with the given symbol lookup
and kernel address converted in probe context as a result of the
DTrace mod() , func() , or sym() action. |
Method Summary | |
---|---|
int |
compareTo(KernelSymbolRecord r)
Compares this record with the given kernel symbol lookup and orders by address. |
boolean |
equals(java.lang.Object o)
Compares the specified object with this KernelSymbolRecord
for equality. |
long |
getAddress()
Gets the symbol's kernel address. |
java.lang.String |
getSymbol()
Gets the result of the address lookup in the same form returned by Consumer.lookupKernelFunction(long address) . |
java.lang.Long |
getValue()
Gets the symbol's kernel 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 KernelSymbolRecord(java.lang.String lookupValue, long addressValue)
KernelSymbolRecord
with the given symbol lookup
and kernel address converted in probe context as a result of the
DTrace mod()
, func()
, or sym()
action.
Supports XML persistence.
addressValue
- symbol addresslookupValue
- the result in the native DTrace library of
looking up the symbol associated with the given kernel address
java.lang.NullPointerException
- if the given lookup value is null
Method Detail |
---|
public java.lang.String getSymbol()
Consumer.lookupKernelFunction(long address)
.
getSymbol
in interface SymbolValueRecord
public long getAddress()
getAddress
in interface SymbolValueRecord
public java.lang.Long getValue()
equals()
and compareTo()
to test equality
and to determine the natural ordering of KernelSymbolRecord
instances.
getValue
in interface ValueRecord
public boolean equals(java.lang.Object o)
KernelSymbolRecord
for equality. Returns true
if and only if the specified
object is also a KernelSymbolRecord
and both records have
the same address.
equals
in class java.lang.Object
true
if and only if the specified object is also
a KernelSymbolRecord
and both records have the same
addresspublic int hashCode()
hashCode
in class java.lang.Object
public int compareTo(KernelSymbolRecord r)
compareTo()
method is
compatible with equals()
.
compareTo
in interface java.lang.Comparable<KernelSymbolRecord>
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 |