public class ResourceMethodMXBeanImpl extends java.lang.Object implements ResourceMethodMXBean
ResourceMethodMXBean MXBean interface.| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
methodBeanName |
private ExecutionStatisticsDynamicBean |
methodExecutionStatisticsMxBean |
private java.lang.String |
name |
private java.lang.String |
path |
private ExecutionStatisticsDynamicBean |
requestExecutionStatisticsMxBean |
private ResourceMethod |
resourceMethod |
| Constructor and Description |
|---|
ResourceMethodMXBeanImpl(ResourceMethodStatistics methodStatistics,
boolean uriResource,
MBeanExposer mBeanExposer,
java.lang.String parentName,
java.lang.String methodUniqueId)
Create a new MXBean and expose it into mbean server using
mBeanExposer. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getConsumesMediaType()
Get the string with media types consumed by this method, enclosed in double quotas and
separated by a comma (e.g.
|
java.lang.String |
getDeclaringClassName()
Get the full class name of the class that declares the handling method.
|
java.lang.String |
getHttpMethod()
Get the HTTP method of the method.
|
java.lang.String |
getMethodName()
Get the name of the Java method.
|
java.lang.String |
getPath()
Get the sub resource method path of the method.
|
java.lang.String |
getProducesMediaType()
Get the string with media types produced by this method, enclosed in double quotas and
separated by a comma (e.g.
|
void |
updateResourceMethodStatistics(ResourceMethodStatistics resourceMethodStatisticsImpl)
Update the statistics that are exposed by this MXBean.
|
private volatile ExecutionStatisticsDynamicBean methodExecutionStatisticsMxBean
private volatile ExecutionStatisticsDynamicBean requestExecutionStatisticsMxBean
private final java.lang.String path
private final java.lang.String name
private final ResourceMethod resourceMethod
private final java.lang.String methodBeanName
public ResourceMethodMXBeanImpl(ResourceMethodStatistics methodStatistics, boolean uriResource, MBeanExposer mBeanExposer, java.lang.String parentName, java.lang.String methodUniqueId)
mBeanExposer.methodStatistics - Statistics to be exposed by the MXBean.uriResource - true if the enclosing resource is identified by URI (and not by java
class name for example).mBeanExposer - MBean exposer.parentName - Name of the parent bean.methodUniqueId - method unique identifier in the enclosing resourcepublic void updateResourceMethodStatistics(ResourceMethodStatistics resourceMethodStatisticsImpl)
resourceMethodStatisticsImpl - New statistics.public java.lang.String getPath()
ResourceMethodMXBeangetPath in interface ResourceMethodMXBeanpublic java.lang.String getHttpMethod()
ResourceMethodMXBeangetHttpMethod in interface ResourceMethodMXBeanpublic java.lang.String getDeclaringClassName()
ResourceMethodMXBeangetDeclaringClassName in interface ResourceMethodMXBeanpublic java.lang.String getConsumesMediaType()
ResourceMethodMXBeangetConsumesMediaType in interface ResourceMethodMXBeanpublic java.lang.String getProducesMediaType()
ResourceMethodMXBeangetProducesMediaType in interface ResourceMethodMXBeanpublic java.lang.String getMethodName()
ResourceMethodMXBeangetMethodName in interface ResourceMethodMXBean