| Modifier and Type | Interface and Description |
|---|---|
static class |
Kstat2.Kstat2Handle
Opaque kstat handle.
|
static class |
Kstat2.Kstat2Map
Opaque kstat map handle.
|
static class |
Kstat2.Kstat2MatcherList
Opaque kstat match list.
|
static class |
Kstat2.Kstat2NV
Immutable Name/Value pair.
|
Library.Handler| Modifier and Type | Field and Description |
|---|---|
static Kstat2 |
INSTANCE
Requires Solaris 11.4.
|
static int |
KSTAT2_M_GLOB |
static int |
KSTAT2_M_RE |
static int |
KSTAT2_M_STRING |
static short |
KSTAT2_NVF_INVAL |
static short |
KSTAT2_NVF_NONE |
static byte |
KSTAT2_NVK_ALL |
static byte |
KSTAT2_NVK_MAP |
static byte |
KSTAT2_NVK_SYS |
static byte |
KSTAT2_NVK_USR |
static byte |
KSTAT2_NVVT_INT |
static byte |
KSTAT2_NVVT_INTS |
static byte |
KSTAT2_NVVT_MAP |
static byte |
KSTAT2_NVVT_STR |
static byte |
KSTAT2_NVVT_STRS |
static int |
KSTAT2_S_CONC_MOD |
static int |
KSTAT2_S_DEL_MAP |
static int |
KSTAT2_S_INVAL_ARG |
static int |
KSTAT2_S_INVAL_STATE |
static int |
KSTAT2_S_INVAL_TYPE |
static int |
KSTAT2_S_NO_MEM |
static int |
KSTAT2_S_NO_PERM |
static int |
KSTAT2_S_NO_SPACE |
static int |
KSTAT2_S_NOT_FOUND |
static int |
KSTAT2_S_OK |
static int |
KSTAT2_S_SYS_FAIL |
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER| Modifier and Type | Method and Description |
|---|---|
int |
kstat2_add_matcher(int type,
java.lang.String match,
Kstat2.Kstat2MatcherList matchers)
Adds matchers to the provided matcher list.
|
int |
kstat2_alloc_matcher_list(PointerByReference matchers)
Allocates a new matcher list to allow matchers to be provided to the
kstat2_open(PointerByReference, Kstat2MatcherList) function. |
int |
kstat2_close(PointerByReference handle)
The kstat2_close() function frees all resources that are associated with the
handle.
|
int |
kstat2_free_matcher_list(PointerByReference matchers)
Frees the resources associated with the matcher list.
|
int |
kstat2_lookup_map(Kstat2.Kstat2Handle handle,
java.lang.String uri,
PointerByReference map)
Obtains a reference to a kstat2 map given the URI of the map.
|
int |
kstat2_map_get(Kstat2.Kstat2Map map,
java.lang.String name,
PointerByReference nv)
Retrieves the name/value (nv) pair identified by the supplied name.
|
int |
kstat2_open(PointerByReference handle,
Kstat2.Kstat2MatcherList matchers)
Initializes an opaque kstat2 handle that provides access to a specific view
of the kernel statistics.
|
java.lang.String |
kstat2_status_string(int status)
Gives a descriptive error message for the supplied status value.
|
int |
kstat2_update(Kstat2.Kstat2Handle handle)
Synchronises the user's view with that of the kernel.
|
static final Kstat2 INSTANCE
static final int KSTAT2_S_OK
static final int KSTAT2_S_NO_PERM
static final int KSTAT2_S_NO_MEM
static final int KSTAT2_S_NO_SPACE
static final int KSTAT2_S_INVAL_ARG
static final int KSTAT2_S_INVAL_STATE
static final int KSTAT2_S_INVAL_TYPE
static final int KSTAT2_S_NOT_FOUND
static final int KSTAT2_S_CONC_MOD
static final int KSTAT2_S_DEL_MAP
static final int KSTAT2_S_SYS_FAIL
static final int KSTAT2_M_STRING
static final int KSTAT2_M_GLOB
static final int KSTAT2_M_RE
static final byte KSTAT2_NVVT_MAP
static final byte KSTAT2_NVVT_INT
static final byte KSTAT2_NVVT_INTS
static final byte KSTAT2_NVVT_STR
static final byte KSTAT2_NVVT_STRS
static final byte KSTAT2_NVK_SYS
static final byte KSTAT2_NVK_USR
static final byte KSTAT2_NVK_MAP
static final byte KSTAT2_NVK_ALL
static final short KSTAT2_NVF_NONE
static final short KSTAT2_NVF_INVAL
int kstat2_open(PointerByReference handle, Kstat2.Kstat2MatcherList matchers)
handle - A pointer to the handle to be initialized.matchers - Only kstats that match one or more of the provided matchers will
be available. If a NULL or empty matcher list is provided, all of
the system's kstats will be available, which is equivalent to
calling the kstat2_open() function. Restricting the number of
kstats available will improve performance and reduce the memory
footprint.KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.int kstat2_update(Kstat2.Kstat2Handle handle)
handle - The handle to be updated.KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.int kstat2_close(PointerByReference handle)
handle - A reference to the handle to close.KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.int kstat2_alloc_matcher_list(PointerByReference matchers)
kstat2_open(PointerByReference, Kstat2MatcherList) function.matchers - Receives a pointer to the allocated matcher list.KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.int kstat2_free_matcher_list(PointerByReference matchers)
matchers - A pointer to the Kstat2.Kstat2MatcherList to be freed.KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.int kstat2_add_matcher(int type,
java.lang.String match,
Kstat2.Kstat2MatcherList matchers)
KSTAT2_M_STRING which performs a direct
strcmp with the kstat URI, KSTAT2_M_GLOB which
performs a glob pattern match using gmatch, and
KSTAT2_M_RE which performs a Perl Compatible Regular
Expression (PCRE) match using pcre_exec.type - The type of matcher, from the kstat2_match_type_t
enumeration.match - The string to match.matchers - The list to which to append the matcher.KSTAT2_S_OK. If an error occurs a value other than
KSTAT2_S_OK is returned.int kstat2_lookup_map(Kstat2.Kstat2Handle handle, java.lang.String uri, PointerByReference map)
handle - The handle to obtain the map from.uri - The string to match.map - Receives a reference to the relevant map.KSTAT2_S_OK will be
returned. If the requested item cannot be found, the map reference
will be set to NULL and an error will be returned.int kstat2_map_get(Kstat2.Kstat2Map map, java.lang.String name, PointerByReference nv)
map - The map from which to retrieve the data.name - The uri of the data to retrieve.nv - Receives a reference to the name/value data.KSTAT2_S_OK. If
there is an error performing the requested operation, an error code
will be returned.java.lang.String kstat2_status_string(int status)
status - A value in the kstat2_status enumeration.