@Retention(value=RUNTIME) @Target(value=TYPE) public @interface JmxResource
JmxServer.register(Object)
must either have this annotation, must implement JmxSelfNaming
, or must be
defined programmatically with JmxResourceInfo
. This class is similar to Spring's @ManagedResource.Modifier and Type | Optional Element and Description |
---|---|
String |
beanName
Name of the JMX bean in the jconsole folder it is in.
|
String |
description
Description of the class for jconsole.
|
String |
domainName
Domain name of the object which turns into the top-level folder inside of jconsole.
|
String[] |
folderNames
Optional array of strings which translate into sub-folders below the domain-name that was specified above.
|
public abstract String domainName
If the object implements JmxSelfNaming
then this would be replaced by
JmxSelfNaming.getJmxDomainName()
. If the object doesn't implement JmxSelfNaming
and this is not
specified then an exception is thrown.
public abstract String beanName
If the object implements JmxSelfNaming
then this would be replaced by
JmxSelfNaming.getJmxBeanName()
. If the object doesn't implement JmxSelfNaming
and this is not
specified then the object class name is used.
public abstract String[] folderNames
name=value
format in which case they should be in alphabetic order by name. They can also just be in
value
format in which case a ## prefix (ex. 00=...) will be added by the code.
The following are basically synonymous:
fieldValues = { "Database", "Connections" }) fieldValues = { "00=Database", "01=Connections" })
If the object implements JmxSelfNaming
then this would be replaced by
JmxSelfNaming.getJmxFolderNames()
. If the object doesn't implement JmxSelfNaming
and this is not
specified then this bean will be at the top without any sub-folders.
public abstract String description
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.