public class KstatUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static long |
kstatDataLookupLong(com.sun.jna.platform.unix.solaris.LibKstat.Kstat ksp,
String name)
Convenience method for kstat_data_lookup() with numeric return values.
|
static String |
kstatDataLookupString(com.sun.jna.platform.unix.solaris.LibKstat.Kstat ksp,
String name)
Convenience method for kstat_data_lookup() with String return values.
|
static com.sun.jna.platform.unix.solaris.LibKstat.Kstat |
kstatLookup(String module,
int instance,
String name)
Convenience method for kstat_lookup().
|
static List<com.sun.jna.platform.unix.solaris.LibKstat.Kstat> |
kstatLookupAll(String module,
int instance,
String name)
Convenience method for kstat_lookup().
|
static boolean |
kstatRead(com.sun.jna.platform.unix.solaris.LibKstat.Kstat ksp)
Convenience method for kstat_read() which gets data from the kernel for the
kstat pointed to by ksp.
|
public static String kstatDataLookupString(com.sun.jna.platform.unix.solaris.LibKstat.Kstat ksp, String name)
ksp - The kstat to searchname - The key for the name-value pair, or name of the timer as
applicablepublic static long kstatDataLookupLong(com.sun.jna.platform.unix.solaris.LibKstat.Kstat ksp,
String name)
ksp - The kstat to searchname - The key for the name-value pair, or name of the timer as
applicablepublic static boolean kstatRead(com.sun.jna.platform.unix.solaris.LibKstat.Kstat ksp)
ksp - The kstat from which to retrieve datapublic static com.sun.jna.platform.unix.solaris.LibKstat.Kstat kstatLookup(String module, int instance, String name)
module - The module, or null to ignoreinstance - The instance, or -1 to ignorename - The name, or null to ignorepublic static List<com.sun.jna.platform.unix.solaris.LibKstat.Kstat> kstatLookupAll(String module, int instance, String name)
module - The module, or null to ignoreinstance - The instance, or -1 to ignorename - The name, or null to ignoreCopyright © 2010–2019 oshi. All rights reserved.