Fixes #855 - JMXify MBeanContainer.
This commit is contained in:
parent
fe038c5a87
commit
00a065b064
|
@ -30,6 +30,7 @@ import javax.management.MBeanRegistrationException;
|
|||
import javax.management.MBeanServer;
|
||||
import javax.management.ObjectName;
|
||||
|
||||
import org.eclipse.jetty.util.annotation.ManagedObject;
|
||||
import org.eclipse.jetty.util.component.Container;
|
||||
import org.eclipse.jetty.util.component.ContainerLifeCycle;
|
||||
import org.eclipse.jetty.util.component.Destroyable;
|
||||
|
@ -40,6 +41,7 @@ import org.eclipse.jetty.util.log.Logger;
|
|||
/**
|
||||
* Container class for the MBean instances
|
||||
*/
|
||||
@ManagedObject("The component that registers beans as MBeans")
|
||||
public class MBeanContainer implements Container.InheritedListener, Dumpable, Destroyable
|
||||
{
|
||||
private final static Logger LOG = Log.getLogger(MBeanContainer.class.getName());
|
||||
|
|
|
@ -18,6 +18,8 @@
|
|||
|
||||
package org.eclipse.jetty.util.component;
|
||||
|
||||
import org.eclipse.jetty.util.annotation.ManagedObject;
|
||||
import org.eclipse.jetty.util.annotation.ManagedOperation;
|
||||
|
||||
/**
|
||||
* <p>A Destroyable is an object which can be destroyed.</p>
|
||||
|
@ -25,7 +27,9 @@ package org.eclipse.jetty.util.component;
|
|||
* resources over multiple start/stop cycles. A call to destroy will release all
|
||||
* resources and will prevent any further start/stop cycles from being successful.</p>
|
||||
*/
|
||||
@ManagedObject
|
||||
public interface Destroyable
|
||||
{
|
||||
@ManagedOperation(value = "Destroys this component", impact = "ACTION")
|
||||
void destroy();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue