org.mule.module.management.agent
Class JmxAgentConfigurer

java.lang.Object
  extended by org.mule.module.management.agent.JmxAgentConfigurer
All Implemented Interfaces:
MuleContextAware

public class JmxAgentConfigurer
extends Object
implements MuleContextAware

Mule now binds to a platform mbeanserver by default and jmx agent is always registered via a bootstrap process. Thus a namespace handler creates this configurer class instead which propagates user settings to a jmx agent in the registry (instead of trying to register a duplicate jmx agent).


Field Summary
static Map<String,Object> DEFAULT_CONNECTOR_SERVER_PROPERTIES
           
protected  boolean locateServer
          Should MBeanServer be discovered.
protected static Log logger
          Logger used by this class
protected  MuleContext muleContext
           
 
Constructor Summary
JmxAgentConfigurer()
           
 
Method Summary
 Map<String,Object> getConnectorServerProperties()
           
 String getConnectorServerUrl()
           
 MBeanServer getMBeanServer()
           
 boolean isCreateRmiRegistry()
           
 boolean isCreateServer()
           
 boolean isEnableStatistics()
           
 boolean isLocateServer()
           
 void setConnectorServerProperties(Map<String,Object> connectorServerProperties)
          Setter for property 'connectorServerProperties'.
 void setConnectorServerUrl(String connectorServerUrl)
           
 void setCreateRmiRegistry(boolean createRmiRegistry)
           
 void setCreateServer(boolean createServer)
           
 void setCredentials(Map<String,String> newCredentials)
           
 void setEnableStatistics(boolean enableStatistics)
           
 void setLocateServer(boolean locateServer)
           
 void setMBeanServer(MBeanServer mBeanServer)
           
 void setMuleContext(MuleContext context)
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONNECTOR_SERVER_PROPERTIES

public static final Map<String,Object> DEFAULT_CONNECTOR_SERVER_PROPERTIES

logger

protected static final Log logger
Logger used by this class


muleContext

protected MuleContext muleContext

locateServer

protected boolean locateServer
Should MBeanServer be discovered.

Constructor Detail

JmxAgentConfigurer

public JmxAgentConfigurer()
Method Detail

isCreateServer

public boolean isCreateServer()

setCreateServer

public void setCreateServer(boolean createServer)

isLocateServer

public boolean isLocateServer()

setLocateServer

public void setLocateServer(boolean locateServer)

getConnectorServerUrl

public String getConnectorServerUrl()

setConnectorServerUrl

public void setConnectorServerUrl(String connectorServerUrl)

isEnableStatistics

public boolean isEnableStatistics()

setEnableStatistics

public void setEnableStatistics(boolean enableStatistics)

getMBeanServer

public MBeanServer getMBeanServer()

setMBeanServer

public void setMBeanServer(MBeanServer mBeanServer)

getConnectorServerProperties

public Map<String,Object> getConnectorServerProperties()

setConnectorServerProperties

public void setConnectorServerProperties(Map<String,Object> connectorServerProperties)
Setter for property 'connectorServerProperties'. Set to null to use defaults (DEFAULT_CONNECTOR_SERVER_PROPERTIES). Pass in an empty map to use no parameters. Passing a non-empty map will replace defaults.

Parameters:
connectorServerProperties - Value to set for property 'connectorServerProperties'.

setCredentials

public void setCredentials(Map<String,String> newCredentials)

isCreateRmiRegistry

public boolean isCreateRmiRegistry()

setCreateRmiRegistry

public void setCreateRmiRegistry(boolean createRmiRegistry)

setMuleContext

public void setMuleContext(MuleContext context)
Specified by:
setMuleContext in interface MuleContextAware

setName

public void setName(String name)


Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.