public class KeyInfo extends Object
Modifier and Type | Field | Description |
---|---|---|
static int |
KEY_TYPE_CUMULATIVE |
type value identifying a counter whose value should be treated as a running total.
|
static int |
KEY_TYPE_MEAN |
type value identifying a counter whose value should be used to compute a running average by
dividing the running total for the last N samples by N where N is 5.
|
static int |
KEY_TYPE_RATE |
type value identifying a counter whose value should be used to compute a rate by dividing
the sampled count by the time in seconds over which the sample was obtained.
|
Constructor | Description |
---|---|
KeyInfo() |
|
KeyInfo(String label) |
|
KeyInfo(String label,
String[] keyNames) |
|
KeyInfo(String label,
String[] keyNames,
int[] keyTypes) |
|
KeyInfo(String label,
String[] keyNames,
int[] keyTypes,
String[] keyLabels) |
|
KeyInfo(String label,
String[] keyNames,
String[] keyLabels) |
Modifier and Type | Method | Description |
---|---|---|
void |
addKey(String keyName) |
|
KeyInfo |
addKey(String keyName,
int keyType) |
|
KeyInfo |
addKey(String keyName,
int keyType,
String keyLabel) |
|
int |
getKeyCount() |
|
String[] |
getKeyLabels() |
|
String[] |
getKeyNames() |
|
int[] |
getKeyTypes() |
|
String |
getLabel() |
public static final int KEY_TYPE_CUMULATIVE
public static final int KEY_TYPE_RATE
public static final int KEY_TYPE_MEAN
public KeyInfo()
public KeyInfo(String label)
Copyright © 2018. All rights reserved.