public interface UsageMBean extends UsageMBean
Rhino extensions to SLEE Usage MBeans.
Modifier and Type | Field and Description |
---|---|
static String |
NAMESPACE_KEY
The JMX Object Name property key that identifies the namespace that the Usage MBean belongs to.
|
static String |
NODE_ID_KEY
The JMX Object Name property key that identifies the node ID of the node that the Usage MBean is providing usage information for.
|
BASE_OBJECT_NAME, NOTIFICATION_SOURCE_KEY, USAGE_PARAMETER_SET_NAME_KEY
Modifier and Type | Method and Description |
---|---|
String |
getNamespace()
Get the namespace that the usage parameters managed by this Usage MBean reside in.
|
String |
getUsageParametersInterfaceType()
Get the usage parameters interface type of the usage parameter set managed by this Usage MBean.
|
TabularData |
tabulateAll(boolean reset)
Get the values of all usage parameters in the usage parameter set managed by this Usage MBean.
|
close, getNotificationSource, getUsageNotificationManagerMBean, getUsageParameterSet, resetAllUsageParameters
static final String NAMESPACE_KEY
The JMX Object Name property key that identifies the namespace that the Usage MBean belongs to. This key is equal to the string "namespace". This key is only present in the Object Name if the Usage MBean resides in a user-defined namespace, rather than the default namespace. The value of this key, if present, is the quoted name of the namespace.
static final String NODE_ID_KEY
The JMX Object Name property key that identifies the node ID of the node that the Usage MBean is providing usage information for. This key is equal to the string "nodeID". This key is only present in the Object Name if the Usage MBean is providing access to a single node’s usage state only, rather than cluster-wide state. The value of this key, if present, is the node ID.
String getNamespace()
Get the namespace that the usage parameters managed by this Usage MBean reside in.
null
if the usage parameters reside in the default namespace.String getUsageParametersInterfaceType() throws ManagementException
Get the usage parameters interface type of the usage parameter set managed by this Usage MBean.
This method only returns a non-null value if the usage parameters interface was declared using the Rhino extension mechanism.
null
if the usage parameters interface was declared using the standard SLEE mechanism.ManagementException
- if a system-level failure occurs.TabularData tabulateAll(boolean reset) throws ManagementException
Get the values of all usage parameters in the usage parameter set managed by this Usage MBean.
This method returns tabular data with the following structure:
Field | Open Type | Description |
---|---|---|
parameter-name |
String |
The name of the usage parameter. |
type |
String |
The type of the usage parameter. The value of this field is either "counter" or "sample". |
counter-value |
Long |
The value for a counter-type usage parameter. This value is null for sample-type usage parameters. |
sample-stats |
CompositeType (see below) |
The sample stats for a sample-type usage parameter. This value is null for counter-type usage parameters. |
Sample statistics are reported within the tabular data above using a composite type with the following structure:
Field | Open Type | Description |
---|---|---|
sample-count |
Long |
The number of samples recorded for the usage parameter since either the service was deployed or the usage parameter was last reset (whichever occurred most recently). |
min |
Long |
The minimum recorded value of the counted samples. |
max |
Long |
The maximum recorded value of the counted samples. |
mean |
Double |
The mean value of counted samples. |
reset
- if true
each usage parameter is reset once its value is obtained.ManagementException
- if the values of the usage parameters could not be obtained due to a system-level failure.