public class ResourceMxBeanImpl extends java.lang.Object implements ResourceMXBean
ResourceMethodMXBean MXBean interface.| Modifier and Type | Field and Description |
|---|---|
private MBeanExposer |
mBeanExposer |
private ExecutionStatisticsDynamicBean |
methodsExecutionStatisticsBean |
private java.lang.String |
name |
private ExecutionStatisticsDynamicBean |
requestExecutionStatisticsBean |
private java.util.Map<java.lang.String,ResourceMethodMXBeanImpl> |
resourceMethods |
private java.lang.String |
resourcePropertyName |
private boolean |
uriResource |
| Constructor and Description |
|---|
ResourceMxBeanImpl(ResourceStatistics resourceStatistics,
java.lang.String name,
boolean uriResource,
MBeanExposer mBeanExposer,
java.lang.String parentName)
Create and register new MXBean into the mbean server using the
mBeanExposer. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getName()
Get the name of the resource.
|
void |
updateResourceStatistics(ResourceStatistics resourceStatistics)
Update the statistics of this MXBean and of nested MXBeans.
|
private final java.lang.String name
private volatile ExecutionStatisticsDynamicBean methodsExecutionStatisticsBean
private volatile ExecutionStatisticsDynamicBean requestExecutionStatisticsBean
private final java.util.Map<java.lang.String,ResourceMethodMXBeanImpl> resourceMethods
private final java.lang.String resourcePropertyName
private final boolean uriResource
private final MBeanExposer mBeanExposer
public ResourceMxBeanImpl(ResourceStatistics resourceStatistics, java.lang.String name, boolean uriResource, MBeanExposer mBeanExposer, java.lang.String parentName)
mBeanExposer.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.public void updateResourceStatistics(ResourceStatistics resourceStatistics)
resourceStatistics - New resource statistics.public java.lang.String getName()
ResourceMXBeangetName in interface ResourceMXBean