| |
|
| java.lang.Object org.springframework.jmx.support.MBeanRegistrationSupport org.springframework.jmx.support.ConnectorServerFactoryBean
ConnectorServerFactoryBean | public class ConnectorServerFactoryBean extends MBeanRegistrationSupport implements FactoryBean,InitializingBean,DisposableBean(Code) | | FactoryBean that creates a JSR-160 JMXConnectorServer ,
optionally registers it with the MBeanServer and then starts it.
The JMXConnectorServer can be started in a separate thread by setting the
threaded property to true . You can configure this thread to be a
daemon thread by setting the daemon property to true .
The JMXConnectorServer is correctly shutdown when an instance of this
class is destroyed on shutdown of the containing ApplicationContext .
author: Rob Harrop author: Juergen Hoeller since: 1.2 See Also: FactoryBean See Also: JMXConnectorServer See Also: MBeanServer |
Method Summary | |
public void | afterPropertiesSet() Start the connector server. | public void | destroy() Stop the JMXConnectorServer managed by an instance of this class. | public Object | getObject() | public Class | getObjectType() | public boolean | isSingleton() | public void | setDaemon(boolean daemon) Set whether any threads started for the JMXConnectorServer should be
started as daemon threads. | public void | setEnvironment(Properties environment) Set the environment properties used to construct the JMXConnectorServer
as java.util.Properties (String key/value pairs). | public void | setEnvironmentMap(Map environment) Set the environment properties used to construct the JMXConnector
as a Map of String keys and arbitrary Object values. | public void | setObjectName(Object objectName) Set the ObjectName used to register the JMXConnectorServer
itself with the MBeanServer , as ObjectName instance
or as String . | public void | setServiceUrl(String serviceUrl) Set the service URL for the JMXConnectorServer . | public void | setThreaded(boolean threaded) Set whether the JMXConnectorServer should be started in a separate thread. |
DEFAULT_SERVICE_URL | final public static String DEFAULT_SERVICE_URL(Code) | | The default service URL
|
afterPropertiesSet | public void afterPropertiesSet() throws JMException, IOException(Code) | | Start the connector server. If the threaded flag is set to true ,
the JMXConnectorServer will be started in a separate thread.
If the daemon flag is set to true , that thread will be
started as a daemon thread.
throws: JMException - if a problem occured when registering the connector serverwith the MBeanServer throws: IOException - if there is a problem starting the connector server |
destroy | public void destroy() throws IOException(Code) | | Stop the JMXConnectorServer managed by an instance of this class.
Automatically called on ApplicationContext shutdown.
throws: IOException - if there is an error stopping the connector server |
isSingleton | public boolean isSingleton()(Code) | | |
setDaemon | public void setDaemon(boolean daemon)(Code) | | Set whether any threads started for the JMXConnectorServer should be
started as daemon threads.
|
setEnvironment | public void setEnvironment(Properties environment)(Code) | | Set the environment properties used to construct the JMXConnectorServer
as java.util.Properties (String key/value pairs).
|
setEnvironmentMap | public void setEnvironmentMap(Map environment)(Code) | | Set the environment properties used to construct the JMXConnector
as a Map of String keys and arbitrary Object values.
|
setServiceUrl | public void setServiceUrl(String serviceUrl)(Code) | | Set the service URL for the JMXConnectorServer .
|
setThreaded | public void setThreaded(boolean threaded)(Code) | | Set whether the JMXConnectorServer should be started in a separate thread.
|
|
|
|