public class ResourceMxBeanImpl extends Object implements ResourceMXBean
ResourceMethodMXBean MXBean interface.| Constructor and Description |
|---|
ResourceMxBeanImpl(ResourceStatistics resourceStatistics,
String name,
boolean uriResource,
MBeanExposer mBeanExposer,
String parentName)
Create and register new MXBean into the mbean server using the
mBeanExposer. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Get the name of the resource.
|
void |
updateResourceStatistics(ResourceStatistics resourceStatistics)
Update the statistics of this MXBean and of nested MXBeans.
|
public ResourceMxBeanImpl(ResourceStatistics resourceStatistics, String name, boolean uriResource, MBeanExposer mBeanExposer, 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 String getName()
ResourceMXBeangetName in interface ResourceMXBeanCopyright © 2007-2024,Oracleand/or its affiliates.All Rights Reserved. Use is subject to license terms.