| Modifier and Type | Class and Description |
|---|---|
| public static class | PdhUtil.PdhEnumObjectItems
Holder Object for PdhEnumObjectsItems. |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static PdhUtil. | Returns: Returns a List of Strings of the counters for the object.String that specifies the name of the log file used to
enumerate the counter and instance names. If NULL, the
function uses the computer specified in the szMachineName
parameter to enumerate the names. szDataSource, String String that specifies the name of the computer that contains
the counter and instance names that you want to enumerate.
Include the leading slashes in the computer name, for example,
\\computername. If the szDataSource parameter is NULL, you can
set szMachineName to NULL to specify the local computer. szMachineName, String String that specifies the name of the object whose counter and
instance names you want to enumerate. szObjectName, int Detail level of the performance items to return. All items
that are of the specified detail level or less will be
returned. dwDetailLevel)Utility method to call Pdh's PdhEnumObjectItems that allocates the required memory for the lists parameters based on the type mapping used, calls to PdhEnumObjectItems, and returns the received lists of strings. |
| public static int | Returns: The counter's index if it exists, or 0 otherwise.The English name of the performance counter szNameBuffer)Utility method similar to Pdh's PdhLookupPerfIndexByName that returns the counter index corresponding to the specified counter name in English. |
| public static String | Returns: Returns the name of the performance object or counter.Null-terminated string that specifies the name of the computer
where the specified performance object or counter is located.
The computer name can be specified by the DNS name or the IP
address. If NULL, the function uses the local computer. szMachineName, int Index of the performance object or counter. dwNameIndex)Utility method to call Pdh's PdhLookupPerfNameByIndex that allocates the required memory for the szNameBuffer parameter based on the type mapping used, calls to PdhLookupPerfNameByIndex, and returns the received string. |
| CHAR_TO_BYTES | back to summary |
|---|---|
| private static final int CHAR_TO_BYTES | |
| ENGLISH_COUNTER_KEY | back to summary |
|---|---|
| private static final String ENGLISH_COUNTER_KEY | |
| ENGLISH_COUNTER_VALUE | back to summary |
|---|---|
| private static final String ENGLISH_COUNTER_VALUE | |
| PdhUtil | back to summary |
|---|---|
| public PdhUtil() | |
| PdhEnumObjectItems | back to summary |
|---|---|
| public static PdhUtil. Utility method to call Pdh's PdhEnumObjectItems that allocates the required memory for the lists parameters based on the type mapping used, calls to PdhEnumObjectItems, and returns the received lists of strings.
| |
| PdhLookupPerfIndexByEnglishName | back to summary |
|---|---|
| public static int PdhLookupPerfIndexByEnglishName(String szNameBuffer) Utility method similar to Pdh's PdhLookupPerfIndexByName that returns the counter index corresponding to the specified counter name in English. Uses the registry on the local machine to find the index in the English locale, regardless of the current language setting on the machine.
| |
| PdhLookupPerfNameByIndex | back to summary |
|---|---|
| public static String PdhLookupPerfNameByIndex(String szMachineName, int dwNameIndex) Utility method to call Pdh's PdhLookupPerfNameByIndex that allocates the required memory for the szNameBuffer parameter based on the type mapping used, calls to PdhLookupPerfNameByIndex, and returns the received string.
| |
getCounters() and
getInstances() accessors.
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final List |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private List | |
| public List | Returns: the embedded counters list, all calls to this function receive the same list and thus share modifications
|
| public List | Returns: the embedded instances list, all calls to this function receive the same list and thus share modifications
|
| public String |
| counters | back to summary |
|---|---|
| private final List<String> counters | |
| instances | back to summary |
|---|---|
| private final List<String> instances | |
| PdhEnumObjectItems | back to summary |
|---|---|
| public PdhEnumObjectItems(List<String> counters, List<String> instances) | |
| copyAndEmptyListForNullList | back to summary |
|---|---|
| private List | |
| getCounters | back to summary |
|---|---|
| public List | |
| getInstances | back to summary |
|---|---|
| public List | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| Modifier and Type | Field and Description |
|---|---|
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| errorCode | back to summary |
|---|---|
| private final int errorCode | |
| PdhException | back to summary |
|---|---|
| public PdhException(int errorCode) | |
| getErrorCode | back to summary |
|---|---|
| public int getErrorCode() | |