Package com.sun.solaris.service.kstat
Class Kstat
- java.lang.Object
-
- com.sun.solaris.service.kstat.Kstat
-
public final class Kstat extends java.lang.ObjectWrapslibkstat(3lib). See/usr/include/sys/kstat.hfor details.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HRTimegetCreationTime()Returns the kstat'sks_crtimefield.HRTimegetSnapTime()Returns the kstat'sks_snaptimefield.java.lang.ObjectgetValue(java.lang.String name)Returns the named value -- the value of the named kstat, or field in a raw kstat, as applicable, and available.voidread()Invokeskstat_read(3kstat)for tho underlying kstat.
-
-
-
Method Detail
-
getSnapTime
public HRTime getSnapTime()
Returns the kstat'sks_snaptimefield.
-
getCreationTime
public HRTime getCreationTime()
Returns the kstat'sks_crtimefield.
-
getValue
public java.lang.Object getValue(java.lang.String name) throws KstatTypeNotSupportedExceptionReturns 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 KstatReadExceptionInvokeskstat_read(3kstat)for tho underlying kstat. Throws KstatException if the native function returns an error.- Throws:
KstatReadException
-
-