Class Kstat2.Kstat2MatcherList
- java.lang.Object
- 
- com.sun.jna.PointerType
- 
- com.sun.jna.platform.unix.solaris.Kstat2.Kstat2MatcherList
 
 
- 
- All Implemented Interfaces:
- NativeMapped
 - Enclosing interface:
- Kstat2
 
 public static class Kstat2.Kstat2MatcherList extends PointerType Opaque kstat match list.
- 
- 
Constructor SummaryConstructors Constructor Description Kstat2MatcherList()Instantiates a new Kstat2MatcherList, allocating the necessary resources.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intaddMatcher(int type, java.lang.String match)Convenience method forKstat2.kstat2_add_matcher(int, String, Kstat2MatcherList)that adds matchers to the provided matcher list.intfree()Convenience method forKstat2.kstat2_free_matcher_list(PointerByReference)that frees the resources associated with the matcher list.- 
Methods inherited from class com.sun.jna.PointerTypeequals, fromNative, getPointer, hashCode, nativeType, setPointer, toNative, toString
 
- 
 
- 
- 
- 
Constructor Detail- 
Kstat2MatcherListpublic 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().
 
- 
 - 
Method Detail- 
addMatcherpublic int addMatcher(int type, java.lang.String match)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_STRINGwhich performs a directstrcmpwith the kstat URI,Kstat2.KSTAT2_M_GLOBwhich performs a glob pattern match usinggmatch, andKstat2.KSTAT2_M_REwhich performs a Perl Compatible Regular Expression (PCRE) match usingpcre_exec.- Parameters:
- type- The type of matcher, from the- kstat2_match_type_tenumeration.
- match- The string to match.
- Returns:
- 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.
 
 - 
freepublic int free() Convenience method forKstat2.kstat2_free_matcher_list(PointerByReference)that frees the resources associated with the matcher list.- Returns:
- 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.
 
 
- 
 
-