Klasse Kstat2.Kstat2MatcherList
java.lang.Object
com.sun.jna.PointerType
com.sun.jna.platform.unix.solaris.Kstat2.Kstat2MatcherList
- Alle implementierten Schnittstellen:
NativeMapped
- Umschließende Schnittstelle:
Kstat2
Opaque kstat match list.
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates a new Kstat2MatcherList, allocating the necessary resources. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
addMatcher
(int type, String match) Convenience method forKstat2.kstat2_add_matcher(int, String, Kstat2MatcherList)
that adds matchers to the provided matcher list.int
free()
Convenience method forKstat2.kstat2_free_matcher_list(PointerByReference)
that frees the resources associated with the matcher list.Von Klasse geerbte Methoden com.sun.jna.PointerType
equals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
-
Konstruktordetails
-
Kstat2MatcherList
public Kstat2MatcherList()Instantiates a new Kstat2MatcherList, allocating the necessary resources. Convenience method forKstat2.kstat2_alloc_matcher_list(PointerByReference)
.It is the caller's responsibility to free this matcher list by calling
free()
.
-
-
Methodendetails
-
addMatcher
Convenience method forKstat2.kstat2_add_matcher(int, String, Kstat2MatcherList)
that adds matchers to the provided matcher list. Each call appends the new matcher to the provided matcher list. Matches are on kstat URI, with the following match types supported:Kstat2.KSTAT2_M_STRING
which performs a directstrcmp
with the kstat URI,Kstat2.KSTAT2_M_GLOB
which performs a glob pattern match usinggmatch
, andKstat2.KSTAT2_M_RE
which performs a Perl Compatible Regular Expression (PCRE) match usingpcre_exec
.- Parameter:
type
- The type of matcher, from thekstat2_match_type_t
enumeration.match
- The string to match.- 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.
-
free
public int free()Convenience method forKstat2.kstat2_free_matcher_list(PointerByReference)
that frees the resources associated with the matcher list.- 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.
-