Package org.jvnet.hk2.jmx.api
Interface HK2JmxSpecifier
-
@Contract public interface HK2JmxSpecifier
This service must be implemented in order to specify those descriptors that might be reflected into JMX- Author:
- jwells
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getAnalysisPolicy()
Returns the policy to use for adding the next JmxObjectString
getDomainName()
Filter
getJmxDescriptorFilter()
Returns true for descriptors that should possibly have instances put into JMX.Object
getJmxObject(ActiveDescriptor<?> descriptor, Object instance)
Gets the Object that should be used either directly or to be modelled.String
getJmxServerName()
Gets the string for connecting to the JmxServerObjectName
getObjectName(Object instance)
String
getObjectNamePolicy()
-
-
-
Method Detail
-
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 createdinstance
- 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()
-
-