Klasse Kstat2.Kstat2Handle
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.unix.solaris.Kstat2.Kstat2Handle
- Alle implementierten Schnittstellen:
NativeMapped
- Umschließende Schnittstelle:
Kstat2
Opaque kstat handle.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates and opens a new Kstat2Handle with no filtering.Kstat2Handle
(Kstat2.Kstat2MatcherList matchers) Instantiates and opens a new Kstat2Handle filtered with the provided matcher. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
close()
Convenience method forKstat2.kstat2_close(PointerByReference)
.Convenience method forKstat2.kstat2_lookup_map(Kstat2Handle, String, PointerByReference)
that obtains a reference to a kstat2 map given the URI of the map.int
update()
Convenience method forKstat2.kstat2_update(Kstat2Handle)
that synchronises the user's view with that of the kernel.Von Klasse geerbte Methoden com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Konstruktordetails
-
Kstat2Handle
public Kstat2Handle()Instantiates and opens a new Kstat2Handle with no filtering. All of the system's kstats will be available. Convenience method forKstat2.kstat2_open(PointerByReference, Kstat2MatcherList)
with a null matcher list. -
Kstat2Handle
Instantiates and opens a new Kstat2Handle filtered with the provided matcher. Convenience method forKstat2.kstat2_open(PointerByReference, Kstat2MatcherList)
.- Parameter:
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. Restricting the number of kstats available will improve performance and reduce the memory footprint.
-
-
Methodendetails
-
update
public int update()Convenience method forKstat2.kstat2_update(Kstat2Handle)
that synchronises the user's view with that of the kernel. The kernel may at any point add or remove kstats, causing the user's view of the available kstats to become out of date.- Gibt zurück:
- Upon successful completion, returns a int value of
Kstat2.KSTAT2_S_OK
. If an error occurs a value other than KSTAT2_S_OK is returned.
-
lookupMap
Convenience method forKstat2.kstat2_lookup_map(Kstat2Handle, String, PointerByReference)
that obtains a reference to a kstat2 map given the URI of the map.- Parameter:
uri
- The URI of the map to return.- Gibt zurück:
- A reference to the map.
-
close
public int close()Convenience method forKstat2.kstat2_close(PointerByReference)
. After use, the kstat handle should be closed to reclaim the handles and memory that it allocated on open.- Gibt zurück:
- Upon successful completion, returns a int value of
Kstat2.KSTAT2_S_OK
. If an error occurs a value other than KSTAT2_S_OK is returned.
-