public class DefaultManagementAgent extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.ManagementAgent, org.apache.camel.CamelContextAware
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_PORT |
static String |
DEFAULT_DOMAIN |
static String |
DEFAULT_HOST |
static int |
DEFAULT_REGISTRY_PORT |
static String |
DEFAULT_SERVICE_URL_PATH |
| Constructor and Description |
|---|
DefaultManagementAgent() |
DefaultManagementAgent(org.apache.camel.CamelContext camelContext) |
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic static final String DEFAULT_DOMAIN
public static final String DEFAULT_HOST
public static final int DEFAULT_REGISTRY_PORT
public static final int DEFAULT_CONNECTION_PORT
public static final String DEFAULT_SERVICE_URL_PATH
public DefaultManagementAgent()
public DefaultManagementAgent(org.apache.camel.CamelContext camelContext)
protected void finalizeSettings() throws Exception
Exceptionpublic void setRegistryPort(Integer port)
setRegistryPort in interface org.apache.camel.spi.ManagementAgentpublic Integer getRegistryPort()
getRegistryPort in interface org.apache.camel.spi.ManagementAgentpublic void setConnectorPort(Integer port)
setConnectorPort in interface org.apache.camel.spi.ManagementAgentpublic Integer getConnectorPort()
getConnectorPort in interface org.apache.camel.spi.ManagementAgentpublic void setMBeanServerDefaultDomain(String domain)
setMBeanServerDefaultDomain in interface org.apache.camel.spi.ManagementAgentpublic String getMBeanServerDefaultDomain()
getMBeanServerDefaultDomain in interface org.apache.camel.spi.ManagementAgentpublic void setMBeanObjectDomainName(String domainName)
setMBeanObjectDomainName in interface org.apache.camel.spi.ManagementAgentpublic String getMBeanObjectDomainName()
getMBeanObjectDomainName in interface org.apache.camel.spi.ManagementAgentpublic void setServiceUrlPath(String url)
setServiceUrlPath in interface org.apache.camel.spi.ManagementAgentpublic String getServiceUrlPath()
getServiceUrlPath in interface org.apache.camel.spi.ManagementAgentpublic void setCreateConnector(Boolean flag)
setCreateConnector in interface org.apache.camel.spi.ManagementAgentpublic Boolean getCreateConnector()
getCreateConnector in interface org.apache.camel.spi.ManagementAgentpublic void setUsePlatformMBeanServer(Boolean flag)
setUsePlatformMBeanServer in interface org.apache.camel.spi.ManagementAgentpublic Boolean getUsePlatformMBeanServer()
getUsePlatformMBeanServer in interface org.apache.camel.spi.ManagementAgentpublic Boolean getOnlyRegisterProcessorWithCustomId()
getOnlyRegisterProcessorWithCustomId in interface org.apache.camel.spi.ManagementAgentpublic void setOnlyRegisterProcessorWithCustomId(Boolean onlyRegisterProcessorWithCustomId)
setOnlyRegisterProcessorWithCustomId in interface org.apache.camel.spi.ManagementAgentpublic void setMBeanServer(MBeanServer mbeanServer)
setMBeanServer in interface org.apache.camel.spi.ManagementAgentpublic MBeanServer getMBeanServer()
getMBeanServer in interface org.apache.camel.spi.ManagementAgentpublic Boolean getRegisterAlways()
getRegisterAlways in interface org.apache.camel.spi.ManagementAgentpublic void setRegisterAlways(Boolean registerAlways)
setRegisterAlways in interface org.apache.camel.spi.ManagementAgentpublic Boolean getRegisterNewRoutes()
getRegisterNewRoutes in interface org.apache.camel.spi.ManagementAgentpublic void setRegisterNewRoutes(Boolean registerNewRoutes)
setRegisterNewRoutes in interface org.apache.camel.spi.ManagementAgentpublic Boolean getMask()
getMask in interface org.apache.camel.spi.ManagementAgentpublic void setMask(Boolean mask)
setMask in interface org.apache.camel.spi.ManagementAgentpublic Boolean getIncludeHostName()
getIncludeHostName in interface org.apache.camel.spi.ManagementAgentpublic void setIncludeHostName(Boolean includeHostName)
setIncludeHostName in interface org.apache.camel.spi.ManagementAgentpublic Boolean getUseHostIPAddress()
getUseHostIPAddress in interface org.apache.camel.spi.ManagementAgentpublic void setUseHostIPAddress(Boolean useHostIPAddress)
setUseHostIPAddress in interface org.apache.camel.spi.ManagementAgentpublic String getManagementNamePattern()
getManagementNamePattern in interface org.apache.camel.spi.ManagementAgentpublic void setManagementNamePattern(String managementNamePattern)
setManagementNamePattern in interface org.apache.camel.spi.ManagementAgentpublic Boolean getLoadStatisticsEnabled()
getLoadStatisticsEnabled in interface org.apache.camel.spi.ManagementAgentpublic void setLoadStatisticsEnabled(Boolean loadStatisticsEnabled)
setLoadStatisticsEnabled in interface org.apache.camel.spi.ManagementAgentpublic Boolean getEndpointRuntimeStatisticsEnabled()
getEndpointRuntimeStatisticsEnabled in interface org.apache.camel.spi.ManagementAgentpublic void setEndpointRuntimeStatisticsEnabled(Boolean endpointRuntimeStatisticsEnabled)
setEndpointRuntimeStatisticsEnabled in interface org.apache.camel.spi.ManagementAgentpublic org.apache.camel.ManagementStatisticsLevel getStatisticsLevel()
getStatisticsLevel in interface org.apache.camel.spi.ManagementAgentpublic void setStatisticsLevel(org.apache.camel.ManagementStatisticsLevel statisticsLevel)
setStatisticsLevel in interface org.apache.camel.spi.ManagementAgentpublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic void register(Object obj, ObjectName name) throws JMException
register in interface org.apache.camel.spi.ManagementAgentJMExceptionpublic void register(Object obj, ObjectName name, boolean forceRegistration) throws JMException
register in interface org.apache.camel.spi.ManagementAgentJMExceptionpublic void unregister(ObjectName name) throws JMException
unregister in interface org.apache.camel.spi.ManagementAgentJMExceptionpublic boolean isRegistered(ObjectName name)
isRegistered in interface org.apache.camel.spi.ManagementAgentpublic <T> T newProxyClient(ObjectName name, Class<T> mbean)
newProxyClient in interface org.apache.camel.spi.ManagementAgentprotected void doStart() throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStop() throws Exception
doStop in class org.apache.camel.support.service.ServiceSupportExceptionprotected void createMBeanServer()
protected MBeanServer findOrCreateMBeanServer()
protected void createJmxConnector(String host) throws IOException
IOExceptionApache Camel