All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class examples.mo.kstat.KernelStat

java.lang.Object
   |
   +----examples.mo.kstat.KernelStat

public class KernelStat
extends Object
The "kstat" example runs only on machines with Solaris Os. This class contains the JNI interface for Kernel Statistics based on the Solaris kstat(3M) interface.

The native library implementing the native methods is libstat.so provided under:

SUNWconn/jaw/lib/Solaris/sparc/2.x/lib/libstat.so


Variable Index

 o STAT_INTR
 o STAT_IO
 o STAT_NAMED
 o STAT_RAW
 o STAT_TIMER

Constructor Index

 o KernelStat()
 o KernelStat(String, String)

Method Index

 o statGetIntegerValue(String)
 o statGetList(String, String, int)
 o statGetLongValue(String)
 o statGetValue(String, String, String)
 o statProperties(String, String)
 o statType(String, String)

Variables

 o STAT_RAW
 public static final int STAT_RAW
 o STAT_NAMED
 public static final int STAT_NAMED
 o STAT_INTR
 public static final int STAT_INTR
 o STAT_IO
 public static final int STAT_IO
 o STAT_TIMER
 public static final int STAT_TIMER

Constructors

 o KernelStat
 public KernelStat()
 o KernelStat
 public KernelStat(String mod,
                   String inst)

Methods

 o statGetList
 public native String statGetList(String module,
                                  String instance,
                                  int type)
 o statGetValue
 public native String statGetValue(String module,
                                   String instance,
                                   String property)
 o statProperties
 public native String statProperties(String module,
                                     String instance)
 o statType
 public native int statType(String module,
                            String instance)
 o statGetIntegerValue
 public Integer statGetIntegerValue(String propName)
 o statGetLongValue
 public Long statGetLongValue(String propName)

All Packages  Class Hierarchy  This Package  Previous  Next  Index