public interface UsageMBean extends UsageMBean
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
static final String NODE_ID_KEY
String getNamespace()
null
if the usage parameters reside in the default
namespace.String getUsageParametersInterfaceType() throws ManagementException
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
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.