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 boolean
baseCounter
private java.lang.String
counter
private java.lang.String
instance
private java.lang.String
object
-
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.String
getCounter()
java.lang.String
getCounterPath()
Returns the path for this counterjava.lang.String
getInstance()
java.lang.String
getObject()
boolean
isBaseCounter()
-
-
-
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
-
-