Package oshi.util.platform.windows
Class PerfDataUtil.PerfCounter
- java.lang.Object
-
- oshi.util.platform.windows.PerfDataUtil.PerfCounter
-
- Enclosing class:
- PerfDataUtil
@Immutable public static class PerfDataUtil.PerfCounter extends java.lang.Object
Encapsulates the three string components of a performance counter
-
-
Field Summary
Fields Modifier and Type Field Description private booleanbaseCounterprivate java.lang.Stringcounterprivate java.lang.Stringinstanceprivate java.lang.Stringobject
-
Constructor Summary
Constructors Constructor Description PerfCounter(java.lang.String objectName, java.lang.String instanceName, java.lang.String counterName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetCounter()java.lang.StringgetCounterPath()Returns the path for this counterjava.lang.StringgetInstance()java.lang.StringgetObject()booleanisBaseCounter()
-
-
-
Method Detail
-
getObject
public java.lang.String getObject()
- Returns:
- Returns the object.
-
getInstance
public java.lang.String getInstance()
- Returns:
- Returns the instance.
-
getCounter
public java.lang.String getCounter()
- Returns:
- Returns the counter.
-
isBaseCounter
public boolean isBaseCounter()
- Returns:
- Returns whether the counter is a base counter
-
getCounterPath
public java.lang.String getCounterPath()
Returns the path for this counter- Returns:
- A string representing the counter path
-
-