Class JmxResourceInfo
java.lang.Object
com.j256.simplejmx.common.JmxResourceInfo
- All Implemented Interfaces:
JmxSelfNaming
This is used programmatically to register another class for JMX exposure. This is used when you are wiring using code
or Spring another object that does not use the
JmxResource annotation or JmxSelfNaming.- Author:
- graywatson
-
Constructor Summary
ConstructorsConstructorDescriptionJmxResourceInfo(String jmxDomainName, String jmxBeanName, JmxFolderName[] jmxFolderNames, String jmxDescription) JmxResourceInfo(String jmxDomainName, String jmxBeanName, String jmxDescription) JmxResourceInfo(String jmxDomainName, String jmxBeanName, String[] jmxFolderNameStrings, String jmxDescription) -
Method Summary
Modifier and TypeMethodDescriptionReturn the name of the object that will be the "name=..." part of the associatedObjectName.Return the domain name of the object that is used to built the associatedObjectName.Return the appropriate array of folder names used to built the associatedObjectName.voidsetJmxBeanName(String jmxBeanName) NotRequired name of the object.voidsetJmxDescription(String jmxDescription) Description of the class for jconsole.voidsetJmxDomainName(String jmxDomainName) Required domain name which is the top-level folder in jconsole.voidsetJmxFolderNames(JmxFolderName[] jmxFolderNames) NotRequired array of folders where the bean will live.voidsetJmxFolderNameStrings(String[] jmxFolderNameStrings) NotRequired array of folders where the bean will live.
-
Constructor Details
-
JmxResourceInfo
public JmxResourceInfo() -
JmxResourceInfo
public JmxResourceInfo(String jmxDomainName, String jmxBeanName, JmxFolderName[] jmxFolderNames, String jmxDescription) -
JmxResourceInfo
-
JmxResourceInfo
-
-
Method Details
-
getJmxDomainName
Description copied from interface:JmxSelfNamingReturn the domain name of the object that is used to built the associatedObjectName. Return null to use the one from theJmxResource.domainName()annotation instead.- Specified by:
getJmxDomainNamein interfaceJmxSelfNaming
-
setJmxDomainName
Required domain name which is the top-level folder in jconsole.- See Also:
-
getJmxBeanName
Description copied from interface:JmxSelfNamingReturn the name of the object that will be the "name=..." part of the associatedObjectName. Return null to use the one from theJmxResource.beanName()annotation instead.- Specified by:
getJmxBeanNamein interfaceJmxSelfNaming
-
setJmxBeanName
NotRequired name of the object. The- default is the Spring bean name or object name.- See Also:
-
getJmxFolderNames
Description copied from interface:JmxSelfNamingReturn the appropriate array of folder names used to built the associatedObjectName. Return null to use the folder names specified in theJmxResource.folderNames()annotation instead.- Specified by:
getJmxFolderNamesin interfaceJmxSelfNaming
-
setJmxFolderNames
NotRequired array of folders where the bean will live. Default is no folders. Either this orsetJmxFolderNameStrings(String[])should be used.- See Also:
-
setJmxFolderNameStrings
NotRequired array of folders where the bean will live. Default is no folders. Either this orsetJmxFolderNames(JmxFolderName[])should be used. Can be used to specify an array of folder-names instead of having to construct a JmxFolderName array.- See Also:
-
getJmxDescription
-
setJmxDescription
Description of the class for jconsole. Not required. Default is something like: "Information about class-name".- See Also:
-