Package com.sun.solaris.service.kstat
Class Kstat
- java.lang.Object
-
- com.sun.solaris.service.kstat.Kstat
-
public final class Kstat extends java.lang.Object
Wrapslibkstat(3lib)
. See/usr/include/sys/kstat.h
for details.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HRTime
getCreationTime()
Returns the kstat'sks_crtime
field.HRTime
getSnapTime()
Returns the kstat'sks_snaptime
field.java.lang.Object
getValue(java.lang.String name)
Returns the named value -- the value of the named kstat, or field in a raw kstat, as applicable, and available.void
read()
Invokeskstat_read(3kstat)
for tho underlying kstat.
-
-
-
Method Detail
-
getSnapTime
public HRTime getSnapTime()
Returns the kstat'sks_snaptime
field.
-
getCreationTime
public HRTime getCreationTime()
Returns the kstat'sks_crtime
field.
-
getValue
public java.lang.Object getValue(java.lang.String name) throws KstatTypeNotSupportedException
Returns the named value -- the value of the named kstat, or field in a raw kstat, as applicable, and available. Returns null if no such named kstat or field is available.- Throws:
KstatTypeNotSupportedException
- if the raw kstat is not understood. (Presenstly, none are.)
-
read
public void read() throws KstatReadException
Invokeskstat_read(3kstat)
for tho underlying kstat. Throws KstatException if the native function returns an error.- Throws:
KstatReadException
-
-