|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hyperic.sigar.win32.Win32
org.hyperic.sigar.win32.Pdh
public class Pdh
Field Summary | |
---|---|
static int |
BAD_COUNTERNAME
Unable to parse the counter path. |
static int |
NO_COUNTER
The specified counter could not be found. |
static int |
NO_INSTANCE
The specified instance is not present. |
static int |
NO_MACHINE
Unable to connect to specified machine or machine is off line. |
static int |
NO_OBJECT
The specified object is not found on the system. |
static long |
PERF_TYPE_COUNTER
|
static long |
PERF_TYPE_NUMBER
|
static long |
PERF_TYPE_TEXT
|
static long |
PERF_TYPE_ZERO
|
static java.lang.String |
PERFLIB_KEY
|
static int |
VALID_DATA
The returned data is valid. |
Fields inherited from class org.hyperic.sigar.win32.Win32 |
---|
EXE_EXT |
Constructor Summary | |
---|---|
Pdh()
|
|
Pdh(java.lang.String hostName)
|
Method Summary | |
---|---|
void |
close()
|
static void |
enableTranslation()
|
protected void |
finalize()
|
static java.lang.String |
getCounterName(int index)
|
long |
getCounterType(java.lang.String path)
|
java.lang.String |
getDescription(java.lang.String path)
|
static java.util.Map |
getEnglishPerflibCounterMap()
|
double |
getFormattedValue(java.lang.String path)
|
static java.lang.String[] |
getInstances(java.lang.String path)
|
static java.lang.String[] |
getKeys(java.lang.String path)
|
static java.lang.String[] |
getObjects()
|
static java.util.Map |
getPerflibCounterMap(LocaleInfo locale)
|
double |
getRawValue(java.lang.String path)
|
double |
getSingleValue(java.lang.String path)
Deprecated. |
static void |
main(java.lang.String[] args)
Main method for dumping the entire PDH Usage: Pdh [OPTION] Show information from the Windows PDH -v, --values include key values [default=no] --object=NAME only print info on this object --contains=NAME only print info on objects that contain this substring -i, --instance show instances [default=no] -k, --keys show keys [default=no] -h, --help display help and exit |
static java.lang.String |
translate(java.lang.String path)
|
static int |
validate(java.lang.String path)
|
Methods inherited from class org.hyperic.sigar.win32.Win32 |
---|
findExecutable, findScriptExecutable, getFileVersion |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VALID_DATA
public static final int NO_INSTANCE
public static final int NO_COUNTER
public static final int NO_OBJECT
public static final int NO_MACHINE
public static final int BAD_COUNTERNAME
public static final java.lang.String PERFLIB_KEY
public static final long PERF_TYPE_NUMBER
public static final long PERF_TYPE_COUNTER
public static final long PERF_TYPE_TEXT
public static final long PERF_TYPE_ZERO
Constructor Detail |
---|
public Pdh() throws Win32Exception
Win32Exception
public Pdh(java.lang.String hostName) throws Win32Exception
Win32Exception
Method Detail |
---|
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close() throws Win32Exception
Win32Exception
public static void enableTranslation() throws Win32Exception
Win32Exception
public static java.util.Map getEnglishPerflibCounterMap() throws Win32Exception
Win32Exception
public static java.util.Map getPerflibCounterMap(LocaleInfo locale) throws Win32Exception
Win32Exception
public static java.lang.String getCounterName(int index) throws Win32Exception
Win32Exception
public double getSingleValue(java.lang.String path) throws Win32Exception
Win32Exception
getRawValue(String path)
public double getRawValue(java.lang.String path) throws Win32Exception
Win32Exception
public double getFormattedValue(java.lang.String path) throws Win32Exception
Win32Exception
public static java.lang.String translate(java.lang.String path) throws Win32Exception
Win32Exception
public java.lang.String getDescription(java.lang.String path) throws Win32Exception
Win32Exception
public long getCounterType(java.lang.String path) throws Win32Exception
Win32Exception
public static java.lang.String[] getInstances(java.lang.String path) throws Win32Exception
Win32Exception
public static java.lang.String[] getKeys(java.lang.String path) throws Win32Exception
Win32Exception
public static java.lang.String[] getObjects() throws Win32Exception
Win32Exception
public static final int validate(java.lang.String path)
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |