Class ResourceMxBeanImpl
java.lang.Object
org.glassfish.jersey.server.internal.monitoring.jmx.ResourceMxBeanImpl
- All Implemented Interfaces:
ResourceMXBean
MXBean implementing the
ResourceMethodMXBean
MXBean interface.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MBeanExposer
private ExecutionStatisticsDynamicBean
private final String
private ExecutionStatisticsDynamicBean
private final Map<String,
ResourceMethodMXBeanImpl> private final String
private final boolean
-
Constructor Summary
ConstructorsConstructorDescriptionResourceMxBeanImpl
(ResourceStatistics resourceStatistics, String name, boolean uriResource, MBeanExposer mBeanExposer, String parentName) Create and register new MXBean into the mbean server using themBeanExposer
. -
Method Summary
Modifier and TypeMethodDescriptiongetName()
Get the name of the resource.void
updateResourceStatistics
(ResourceStatistics resourceStatistics) Update the statistics of this MXBean and of nested MXBeans.
-
Field Details
-
name
-
methodsExecutionStatisticsBean
-
requestExecutionStatisticsBean
-
resourceMethods
-
resourcePropertyName
-
uriResource
private final boolean uriResource -
mBeanExposer
-
-
Constructor Details
-
ResourceMxBeanImpl
public ResourceMxBeanImpl(ResourceStatistics resourceStatistics, String name, boolean uriResource, MBeanExposer mBeanExposer, String parentName) Create and register new MXBean into the mbean server using themBeanExposer
.- Parameters:
resourceStatistics
- resource statistics that should be exposed by this and nested MXBeans.name
- Name of the resource.uriResource
-true
if the resource is identified by URI (and not by java class name for example).mBeanExposer
- MBean exposer.parentName
- Name of the parent bean.
-
-
Method Details
-
updateResourceStatistics
Update the statistics of this MXBean and of nested MXBeans.- Parameters:
resourceStatistics
- New resource statistics.
-
getName
Description copied from interface:ResourceMXBean
Get the name of the resource. The name can be URI or resource class name depending on the usage of MXBean.- Specified by:
getName
in interfaceResourceMXBean
- Returns:
- Name of the MXBean.
-