Class PerfCounterWildcardQueryFFM
java.lang.Object
oshi.util.platform.windows.PerfCounterWildcardQueryFFM
Enables queries of Performance Counters using wild cards to filter instances. FFM-based equivalent of
PerfCounterWildcardQuery.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty>
oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValues(Class<T> propertyEnum, String perfObject, String perfWmiClass) Query Performance Counters using PDH, with WMI backup on failure, for values corresponding to the property enum.static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty>
oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValues(Class<T> propertyEnum, String perfObject, String perfWmiClass, String customFilter) Query Performance Counters using PDH, with WMI backup on failure, for values corresponding to the property enum.static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty>
oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValuesFromPDH(Class<T> propertyEnum, String perfObject) Query Performance Counters using PDH for values corresponding to the property enum.static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty>
oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValuesFromPDH(Class<T> propertyEnum, String perfObject, String customFilter) Query Performance Counters using PDH for values corresponding to the property enum.static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty>
oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValuesFromWMI(Class<T> propertyEnum, String perfWmiClass) Query Performance Counters using WMI for values corresponding to the property enum.
-
Method Details
-
queryInstancesAndValues
public static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty> oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValues(Class<T> propertyEnum, String perfObject, String perfWmiClass) Query Performance Counters using PDH, with WMI backup on failure, for values corresponding to the property enum.- Type Parameters:
T- The enum type ofpropertyEnum- Parameters:
propertyEnum- An enum which implementsPdhCounterWildcardPropertyand contains the WMI field (Enum value) and PDH Counter string (instance and counter)perfObject- The PDH object for this counter; all counters on this object will be refreshed at the same timeperfWmiClass- The WMI PerfData_RawData_* class corresponding to the PDH object, optionally including a WHERE clause- Returns:
- A pair containing a list of instances and an
EnumMapof the corresponding values indexed bypropertyEnumon success, or an empty list and empty map if both PDH and WMI queries failed.
-
queryInstancesAndValues
public static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty> oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValues(Class<T> propertyEnum, String perfObject, String perfWmiClass, String customFilter) Query Performance Counters using PDH, with WMI backup on failure, for values corresponding to the property enum.- Type Parameters:
T- The enum type ofpropertyEnum- Parameters:
propertyEnum- An enum which implementsPdhCounterWildcardPropertyand contains the WMI field (Enum value) and PDH Counter string (instance and counter)perfObject- The PDH object for this counter; all counters on this object will be refreshed at the same timeperfWmiClass- The WMI PerfData_RawData_* class corresponding to the PDH object, optionally including a WHERE clausecustomFilter- a custom instance filter to use. If null, uses the first element of the property enum- Returns:
- A pair containing a list of instances and an
EnumMapof the corresponding values indexed bypropertyEnumon success, or an empty list and empty map if both PDH and WMI queries failed.
-
queryInstancesAndValuesFromPDH
public static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty> oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValuesFromPDH(Class<T> propertyEnum, String perfObject) Query Performance Counters using PDH for values corresponding to the property enum.- Type Parameters:
T- The enum type ofpropertyEnum- Parameters:
propertyEnum- An enum which implementsPdhCounterWildcardPropertyand contains the WMI field (Enum value) and PDH Counter string (instance and counter)perfObject- The PDH object for this counter; all counters on this object will be refreshed at the same time- Returns:
- A pair containing a list of instances and an
EnumMapof the corresponding values indexed bypropertyEnumon success, or an empty list and empty map if the PDH query failed.
-
queryInstancesAndValuesFromPDH
public static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty> oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValuesFromPDH(Class<T> propertyEnum, String perfObject, String customFilter) Query Performance Counters using PDH for values corresponding to the property enum.- Type Parameters:
T- The enum type ofpropertyEnum- Parameters:
propertyEnum- An enum which implementsPdhCounterWildcardPropertyand contains the WMI field (Enum value) and PDH Counter string (instance and counter)perfObject- The PDH object for this counter; all counters on this object will be refreshed at the same timecustomFilter- a custom instance filter to use. If null, uses the first element of the property enum- Returns:
- A pair containing a list of instances and an
EnumMapof the corresponding values indexed bypropertyEnumon success, or an empty list and empty map if the PDH query failed.
-
queryInstancesAndValuesFromWMI
public static <T extends Enum<T> & oshi.driver.common.windows.perfmon.PdhCounterWildcardProperty> oshi.util.tuples.Pair<List<String>, Map<T, List<Long>>> queryInstancesAndValuesFromWMI(Class<T> propertyEnum, String perfWmiClass) Query Performance Counters using WMI for values corresponding to the property enum.- Type Parameters:
T- The enum type ofpropertyEnum- Parameters:
propertyEnum- An enum which implementsPdhCounterWildcardPropertyand contains the WMI field (Enum value) and PDH Counter string (instance and counter)perfWmiClass- The WMI PerfData_RawData_* class corresponding to the PDH object, optionally including a WHERE clause- Returns:
- A pair containing a list of instances and an
EnumMapof the corresponding values indexed bypropertyEnumon success, or an empty list and empty map if the WMI query failed.
-