|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.web.monitor.jmx.JMXBean<T>
public class JMXBean<T>
This class encapsulates a reference to a JMX bean. It can be used to register and unregister JMX beans.
This class is thread-safe.
Constructor Summary | |
---|---|
JMXBean(T bean,
String beanName)
Creates a new JMXBean. |
Method Summary | |
---|---|
T |
getBean()
Returns the bean that this JMXBean refers to. |
JMXBean<T> |
register()
Registers this JMXBeanRef's bean the platform MBean server. |
JMXBean<T> |
unregister()
Unregsiters this JMXBeanRef's bean in the platform MBean server. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMXBean(T bean, String beanName)
bean
- the bean to registerbeanName
- the bean name to useMethod Detail |
---|
public JMXBean<T> register() throws JMXException
JMXException
- if there is a problem registering in JMXpublic JMXBean<T> unregister() throws JMXException
JMXException
- if there is a problem unregistering in JMXpublic T getBean()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |