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 String |
DEFAULT_DOMAIN |
static String |
DEFAULT_HOST |
Constructor and Description |
---|
DefaultManagementAgent() |
DefaultManagementAgent(org.apache.camel.CamelContext camelContext) |
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public static final String DEFAULT_DOMAIN
public static final String DEFAULT_HOST
public DefaultManagementAgent()
public DefaultManagementAgent(org.apache.camel.CamelContext camelContext)
protected void finalizeSettings() throws Exception
Exception
public void setMBeanServerDefaultDomain(String domain)
setMBeanServerDefaultDomain
in interface org.apache.camel.spi.ManagementAgent
public String getMBeanServerDefaultDomain()
getMBeanServerDefaultDomain
in interface org.apache.camel.spi.ManagementAgent
public void setMBeanObjectDomainName(String domainName)
setMBeanObjectDomainName
in interface org.apache.camel.spi.ManagementAgent
public String getMBeanObjectDomainName()
getMBeanObjectDomainName
in interface org.apache.camel.spi.ManagementAgent
public void setUsePlatformMBeanServer(Boolean flag)
setUsePlatformMBeanServer
in interface org.apache.camel.spi.ManagementAgent
public Boolean getUsePlatformMBeanServer()
getUsePlatformMBeanServer
in interface org.apache.camel.spi.ManagementAgent
public Boolean getOnlyRegisterProcessorWithCustomId()
getOnlyRegisterProcessorWithCustomId
in interface org.apache.camel.spi.ManagementAgent
public void setOnlyRegisterProcessorWithCustomId(Boolean onlyRegisterProcessorWithCustomId)
setOnlyRegisterProcessorWithCustomId
in interface org.apache.camel.spi.ManagementAgent
public void setMBeanServer(MBeanServer mbeanServer)
setMBeanServer
in interface org.apache.camel.spi.ManagementAgent
public MBeanServer getMBeanServer()
getMBeanServer
in interface org.apache.camel.spi.ManagementAgent
public Boolean getRegisterAlways()
getRegisterAlways
in interface org.apache.camel.spi.ManagementAgent
public void setRegisterAlways(Boolean registerAlways)
setRegisterAlways
in interface org.apache.camel.spi.ManagementAgent
public Boolean getRegisterNewRoutes()
getRegisterNewRoutes
in interface org.apache.camel.spi.ManagementAgent
public void setRegisterNewRoutes(Boolean registerNewRoutes)
setRegisterNewRoutes
in interface org.apache.camel.spi.ManagementAgent
public Boolean getMask()
getMask
in interface org.apache.camel.spi.ManagementAgent
public void setMask(Boolean mask)
setMask
in interface org.apache.camel.spi.ManagementAgent
public Boolean getIncludeHostName()
getIncludeHostName
in interface org.apache.camel.spi.ManagementAgent
public void setIncludeHostName(Boolean includeHostName)
setIncludeHostName
in interface org.apache.camel.spi.ManagementAgent
public Boolean getUseHostIPAddress()
getUseHostIPAddress
in interface org.apache.camel.spi.ManagementAgent
public void setUseHostIPAddress(Boolean useHostIPAddress)
setUseHostIPAddress
in interface org.apache.camel.spi.ManagementAgent
public String getManagementNamePattern()
getManagementNamePattern
in interface org.apache.camel.spi.ManagementAgent
public void setManagementNamePattern(String managementNamePattern)
setManagementNamePattern
in interface org.apache.camel.spi.ManagementAgent
public Boolean getLoadStatisticsEnabled()
getLoadStatisticsEnabled
in interface org.apache.camel.spi.ManagementAgent
public void setLoadStatisticsEnabled(Boolean loadStatisticsEnabled)
setLoadStatisticsEnabled
in interface org.apache.camel.spi.ManagementAgent
public Boolean getEndpointRuntimeStatisticsEnabled()
getEndpointRuntimeStatisticsEnabled
in interface org.apache.camel.spi.ManagementAgent
public void setEndpointRuntimeStatisticsEnabled(Boolean endpointRuntimeStatisticsEnabled)
setEndpointRuntimeStatisticsEnabled
in interface org.apache.camel.spi.ManagementAgent
public org.apache.camel.ManagementStatisticsLevel getStatisticsLevel()
getStatisticsLevel
in interface org.apache.camel.spi.ManagementAgent
public void setStatisticsLevel(org.apache.camel.ManagementStatisticsLevel statisticsLevel)
setStatisticsLevel
in interface org.apache.camel.spi.ManagementAgent
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public void register(Object obj, ObjectName name) throws JMException
register
in interface org.apache.camel.spi.ManagementAgent
JMException
public void register(Object obj, ObjectName name, boolean forceRegistration) throws JMException
register
in interface org.apache.camel.spi.ManagementAgent
JMException
public void unregister(ObjectName name) throws JMException
unregister
in interface org.apache.camel.spi.ManagementAgent
JMException
public boolean isRegistered(ObjectName name)
isRegistered
in interface org.apache.camel.spi.ManagementAgent
public <T> T newProxyClient(ObjectName name, Class<T> mbean)
newProxyClient
in interface org.apache.camel.spi.ManagementAgent
protected void doInit() throws Exception
doInit
in class org.apache.camel.support.service.BaseService
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.BaseService
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.BaseService
Exception
protected void createMBeanServer()
protected MBeanServer findOrCreateMBeanServer()
Apache Camel