Interface HK2JmxSpecifier


@Contract public interface HK2JmxSpecifier
This service must be implemented in order to specify those descriptors that might be reflected into JMX
  • Method Details

    • getJmxServerName

      String getJmxServerName()
      Gets the string for connecting to the JmxServer
      Returns:
      The name of the JmxServer to connect to, or null for the platform server
    • getJmxDescriptorFilter

      Filter getJmxDescriptorFilter()
      Returns true for descriptors that should possibly have instances put into JMX. May be an implementation of IndexedFilter
      Returns:
      The non-null filter to determine what descriptors should be considered for adding to Jmx
    • getJmxObject

      Object getJmxObject(ActiveDescriptor<?> descriptor, Object instance)
      Gets the Object that should be used either directly or to be modelled.
      Parameters:
      descriptor - The descriptor from which this instance was created
      instance - The instance created
      Returns:
      The object to either be placed directly into JMX or to be modelled. If this returns null then this instance will not be put into Jmx
    • getAnalysisPolicy

      String getAnalysisPolicy()
      Returns the policy to use for adding the next JmxObject
      Returns:
    • getObjectName

      ObjectName getObjectName(Object instance)
    • getObjectNamePolicy

      String getObjectNamePolicy()
    • getDomainName

      String getDomainName()