Class ResourceMethodMXBeanImpl

    • Field Detail

      • path

        private final java.lang.String path
      • name

        private final java.lang.String name
      • methodBeanName

        private final java.lang.String methodBeanName
    • Constructor Detail

      • ResourceMethodMXBeanImpl

        public 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.
        Parameters:
        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 resource
    • Method Detail

      • updateResourceMethodStatistics

        public void updateResourceMethodStatistics​(ResourceMethodStatistics resourceMethodStatisticsImpl)
        Update the statistics that are exposed by this MXBean.
        Parameters:
        resourceMethodStatisticsImpl - New statistics.
      • getPath

        public java.lang.String getPath()
        Description copied from interface: ResourceMethodMXBean
        Get the sub resource method path of the method. This field is non-null only for sub resource methods and contains path relative to resource in which the method is defined.
        Specified by:
        getPath in interface ResourceMethodMXBean
        Returns:
        Sub resource method path or null if the method is not a sub resource method.
      • getConsumesMediaType

        public java.lang.String getConsumesMediaType()
        Description copied from interface: ResourceMethodMXBean
        Get the string with media types consumed by this method, enclosed in double quotas and separated by a comma (e.g. "text/plain","text/html").
        Specified by:
        getConsumesMediaType in interface ResourceMethodMXBean
        Returns:
        Consumed media types.
      • getProducesMediaType

        public java.lang.String getProducesMediaType()
        Description copied from interface: ResourceMethodMXBean
        Get the string with media types produced by this method, enclosed in double quotas and separated by a comma (e.g. "text/plain","text/html").
        Specified by:
        getProducesMediaType in interface ResourceMethodMXBean
        Returns:
        Produced media types.