|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=TYPE) public @interface JmxResource
This is used to identify an object which is going to be exported using JMX. Objects that are passed to
JmxServer.register(Object)
must either have this annotation or must implement JmxSelfNaming
. This
class is similar to Spring's @ManagedResource.
Optional Element Summary | |
---|---|
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. |
String |
objectName
Deprecated. Should use beanName() |
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.
@Deprecated public abstract String objectName
beanName()
public abstract String beanName
If the object implements JmxSelfNaming
then this would be replaced by
JmxSelfNaming.getJmxNameOfObject()
. If the object doesn't implement JmxSelfNaming
and this is not
specified then the object class name is used.
public abstract String[] folderNames
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |