org.eclipse.jetty.jmx
类 MBeanContainer

java.lang.Object
  继承者 org.eclipse.jetty.util.component.AbstractLifeCycle
      继承者 org.eclipse.jetty.jmx.MBeanContainer
所有已实现的接口:
EventListener, Container.Listener, Dumpable, LifeCycle

public class MBeanContainer
extends AbstractLifeCycle
implements Container.Listener, Dumpable

Container class for the MBean instances


嵌套类摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的嵌套类/接口
AbstractLifeCycle.AbstractLifeCycleListener
 
从接口 org.eclipse.jetty.util.component.LifeCycle 继承的嵌套类/接口
LifeCycle.Listener
 
字段摘要
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的字段
_listeners, FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
 
构造方法摘要
MBeanContainer(MBeanServer server)
          Constructs MBeanContainer
 
方法摘要
 void add(Container.Relationship relationship)
          Implementation of Container.Listener interface
 void addBean(Object obj)
          Implementation of Container.Listener interface
 void doStart()
          Perform actions needed to start lifecycle
 void doStop()
          Perform actions needed to stop lifecycle
 String dump()
           
 void dump(Appendable out, String indent)
           
 Object findBean(ObjectName oname)
          Lookup an instance by object name
 ObjectName findMBean(Object object)
          Lookup an object name by instance
 String getDomain()
          Retrieve domain name used to add MBeans
 MBeanServer getMBeanServer()
          Retrieve instance of MBeanServer used by container
 String makeName(String basis)
           
 void remove(Container.Relationship relationship)
          Implementation of Container.Listener interface
 void removeBean(Object obj)
          Implementation of Container.Listener interface
 void setDomain(String domain)
          Set domain to be used to add MBeans
 
从类 org.eclipse.jetty.util.component.AbstractLifeCycle 继承的方法
addLifeCycleListener, getState, getState, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

MBeanContainer

public MBeanContainer(MBeanServer server)
Constructs MBeanContainer

参数:
server - instance of MBeanServer for use by container
方法详细信息

findMBean

public ObjectName findMBean(Object object)
Lookup an object name by instance

参数:
object - instance for which object name is looked up
返回:
object name associated with specified instance, or null if not found

findBean

public Object findBean(ObjectName oname)
Lookup an instance by object name

参数:
oname - object name of instance
返回:
instance associated with specified object name, or null if not found

getMBeanServer

public MBeanServer getMBeanServer()
Retrieve instance of MBeanServer used by container

返回:
instance of MBeanServer

setDomain

public void setDomain(String domain)
Set domain to be used to add MBeans

参数:
domain - domain name

getDomain

public String getDomain()
Retrieve domain name used to add MBeans

返回:
domain name

add

public void add(Container.Relationship relationship)
Implementation of Container.Listener interface

指定者:
接口 Container.Listener 中的 add
另请参见:
Container.Listener.add(org.eclipse.jetty.util.component.Container.Relationship)

remove

public void remove(Container.Relationship relationship)
Implementation of Container.Listener interface

指定者:
接口 Container.Listener 中的 remove
另请参见:
Container.Listener.remove(org.eclipse.jetty.util.component.Container.Relationship)

removeBean

public void removeBean(Object obj)
Implementation of Container.Listener interface

指定者:
接口 Container.Listener 中的 removeBean
另请参见:
Container.Listener.removeBean(java.lang.Object)

addBean

public void addBean(Object obj)
Implementation of Container.Listener interface

指定者:
接口 Container.Listener 中的 addBean
另请参见:
Container.Listener.addBean(java.lang.Object)

makeName

public String makeName(String basis)
参数:
basis - name to strip of special characters.
返回:
normalized name

doStart

public void doStart()
Perform actions needed to start lifecycle

覆盖:
AbstractLifeCycle 中的 doStart
另请参见:
AbstractLifeCycle.doStart()

doStop

public void doStop()
Perform actions needed to stop lifecycle

覆盖:
AbstractLifeCycle 中的 doStop
另请参见:
AbstractLifeCycle.doStop()

dump

public void dump(Appendable out,
                 String indent)
          throws IOException
指定者:
接口 Dumpable 中的 dump
抛出:
IOException

dump

public String dump()
指定者:
接口 Dumpable 中的 dump


Copyright © 2013. All Rights Reserved.