类 MBeanServerConnectionFactoryBean
java.lang.Object
cn.taketoday.jmx.support.MBeanServerConnectionFactoryBean
- 所有已实现的接口:
Aware,BeanClassLoaderAware,DisposableBean,FactoryBean<MBeanServerConnection>,InitializingBean
public class MBeanServerConnectionFactoryBean
extends Object
implements FactoryBean<MBeanServerConnection>, BeanClassLoaderAware, InitializingBean, DisposableBean
FactoryBean that creates a JMX 1.2 MBeanServerConnection
to a remote MBeanServer exposed via a JMXServerConnector.
Exposes the MBeanServer for bean references.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Juergen Hoeller
- 另请参阅:
-
字段概要
从接口继承的字段 cn.taketoday.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidCreates aJMXConnectorfor the given settings and exposes the associatedMBeanServerConnection.voiddestroy()Closes the underlyingJMXConnector.Class<? extends MBeanServerConnection>booleanvoidsetBeanClassLoader(ClassLoader classLoader) voidsetConnectOnStartup(boolean connectOnStartup) Set whether to connect to the server on startup.voidsetEnvironment(Properties environment) Set the environment properties used to construct theJMXConnectorasjava.util.Properties(String key/value pairs).voidsetEnvironmentMap(Map<String, ?> environment) Set the environment properties used to construct theJMXConnectoras aMapof String keys and arbitrary Object values.voidsetServiceUrl(String url) Set the service URL of the remoteMBeanServer.
-
构造器详细资料
-
MBeanServerConnectionFactoryBean
public MBeanServerConnectionFactoryBean()
-
-
方法详细资料
-
setServiceUrl
Set the service URL of the remoteMBeanServer. -
setEnvironment
Set the environment properties used to construct theJMXConnectorasjava.util.Properties(String key/value pairs). -
setEnvironmentMap
Set the environment properties used to construct theJMXConnectoras aMapof String keys and arbitrary Object values. -
setConnectOnStartup
public void setConnectOnStartup(boolean connectOnStartup) Set whether to connect to the server on startup.Default is
true.Can be turned off to allow for late start of the JMX server. In this case, the JMX connector will be fetched on first access.
-
setBeanClassLoader
- 指定者:
setBeanClassLoader在接口中BeanClassLoaderAware
-
afterPropertiesSet
Creates aJMXConnectorfor the given settings and exposes the associatedMBeanServerConnection.- 指定者:
afterPropertiesSet在接口中InitializingBean- 抛出:
IOException
-
getObject
- 指定者:
getObject在接口中FactoryBean<MBeanServerConnection>
-
getObjectType
- 指定者:
getObjectType在接口中FactoryBean<MBeanServerConnection>
-
isSingleton
public boolean isSingleton()- 指定者:
isSingleton在接口中FactoryBean<MBeanServerConnection>
-
destroy
Closes the underlyingJMXConnector.- 指定者:
destroy在接口中DisposableBean- 抛出:
IOException
-