Package org.jboss.byteman.sample.helper
Class KeyInfo
java.lang.Object
org.jboss.byteman.sample.helper.KeyInfo
Auxiliary class used by the rule set to provide information about which counters the rule system
will be updating and how it wants them to be presented in the JMX bean display
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
type value identifying a counter whose value should be treated as a running total.static final int
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 final int
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.private int
how many keys there areprivate String[]
the keys for each of the counters being sampledprivate String[]
the keys for each of the counters being sampledprivate int[]
the type of information each sampled counter is being used to collectprivate String
A label for the collection of stats to use in the JMX bean display -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
KEY_TYPE_CUMULATIVE
public static final int KEY_TYPE_CUMULATIVEtype value identifying a counter whose value should be treated as a running total. the value is displayed as an int.- See Also:
-
KEY_TYPE_RATE
public static final int KEY_TYPE_RATEtype 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. the value is displayed as a float.- See Also:
-
KEY_TYPE_MEAN
public static final int KEY_TYPE_MEANtype 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. the value is displayed as a float.- See Also:
-
label
A label for the collection of stats to use in the JMX bean display -
keyCount
private int keyCounthow many keys there are -
keyNames
the keys for each of the counters being sampled -
keyTypes
private int[] keyTypesthe type of information each sampled counter is being used to collect -
keyLabels
the keys for each of the counters being sampled
-
-
Constructor Details
-
KeyInfo
public KeyInfo() -
KeyInfo
-
KeyInfo
-
KeyInfo
-
KeyInfo
-
KeyInfo
-
-
Method Details
-
getLabel
-
getKeyCount
public int getKeyCount() -
getKeyNames
-
getKeyTypes
public int[] getKeyTypes() -
getKeyLabels
-
addKey
-
addKey
-
addKey
-