@ManagedResource(description="Managed CamelContext") public class ManagedCamelContext extends ManagedPerformanceCounter implements org.apache.camel.TimerListener, org.apache.camel.api.management.mbean.ManagedCamelContextMBean
TIMESTAMP_FORMAT
exchangesTotal, resetTimestamp, startTimestamp
Constructor and Description |
---|
ManagedCamelContext(org.apache.camel.CamelContext context) |
completedExchange, dumpStatsAsXml, failedExchange, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, processExchange, reset, setStatisticsEnabled
getExchangesTotal, getResetTimestamp, getStartTimestamp, increment
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabled
public ManagedCamelContext(org.apache.camel.CamelContext context)
public void init(org.apache.camel.spi.ManagementStrategy strategy)
init
in class ManagedPerformanceCounter
public org.apache.camel.CamelContext getContext()
public String getCamelId()
getCamelId
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getManagementName()
getManagementName
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getCamelVersion()
getCamelVersion
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getState()
getState
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getUptime()
getUptime
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public long getUptimeMillis()
getUptimeMillis
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getManagementStatisticsLevel()
getManagementStatisticsLevel
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getClassResolver()
getClassResolver
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getPackageScanClassResolver()
getPackageScanClassResolver
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getApplicationContextClassName()
getApplicationContextClassName
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getHeadersMapFactoryClassName()
getHeadersMapFactoryClassName
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public Map<String,String> getGlobalOptions()
getGlobalOptions
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getGlobalOption(String key) throws Exception
getGlobalOption
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void setGlobalOption(String key, String value) throws Exception
setGlobalOption
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public Boolean getTracing()
getTracing
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public void setTracing(Boolean tracing)
setTracing
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public Integer getInflightExchanges()
public Integer getTotalRoutes()
getTotalRoutes
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public Integer getStartedRoutes()
getStartedRoutes
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public void setTimeout(long timeout)
setTimeout
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public long getTimeout()
getTimeout
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public void setTimeUnit(TimeUnit timeUnit)
setTimeUnit
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public TimeUnit getTimeUnit()
getTimeUnit
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout)
setShutdownNowOnTimeout
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public boolean isShutdownNowOnTimeout()
isShutdownNowOnTimeout
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getLoad01()
getLoad01
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getLoad05()
getLoad05
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public String getLoad15()
getLoad15
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public boolean isUseBreadcrumb()
isUseBreadcrumb
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public boolean isAllowUseOriginalMessage()
isAllowUseOriginalMessage
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public boolean isMessageHistory()
isMessageHistory
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public boolean isLogMask()
isLogMask
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public boolean isUseMDCLogging()
isUseMDCLogging
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public boolean isUseDataType()
isUseDataType
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public void onTimer()
onTimer
in interface org.apache.camel.TimerListener
public void start() throws Exception
start
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void stop() throws Exception
stop
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void restart() throws Exception
restart
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void suspend() throws Exception
suspend
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void resume() throws Exception
resume
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void startAllRoutes() throws Exception
startAllRoutes
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public boolean canSendToEndpoint(String endpointUri)
canSendToEndpoint
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
public void sendBody(String endpointUri, Object body) throws Exception
sendBody
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void sendStringBody(String endpointUri, String body) throws Exception
sendStringBody
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void sendBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers) throws Exception
sendBodyAndHeaders
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public Object requestBody(String endpointUri, Object body) throws Exception
requestBody
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public Object requestStringBody(String endpointUri, String body) throws Exception
requestStringBody
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public Object requestBodyAndHeaders(String endpointUri, Object body, Map<String,Object> headers) throws Exception
requestBodyAndHeaders
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRestsAsXml() throws Exception
dumpRestsAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRestsAsXml(boolean resolvePlaceholders) throws Exception
dumpRestsAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRoutesAsXml() throws Exception
dumpRoutesAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRoutesAsXml(boolean resolvePlaceholders) throws Exception
dumpRoutesAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRoutesAsXml(boolean resolvePlaceholders, boolean resolveDelegateEndpoints) throws Exception
dumpRoutesAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRouteTemplatesAsXml() throws Exception
dumpRouteTemplatesAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void addOrUpdateRoutesFromXml(String xml) throws Exception
addOrUpdateRoutesFromXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public void addOrUpdateRoutesFromXml(String xml, boolean urlDecode) throws Exception
addOrUpdateRoutesFromXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRoutesStatsAsXml(boolean fullStats, boolean includeProcessors) throws Exception
dumpRoutesStatsAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpStepStatsAsXml(boolean fullStats) throws Exception
dumpStepStatsAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dumpRoutesCoverageAsXml() throws Exception
dumpRoutesCoverageAsXml
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public boolean createEndpoint(String uri) throws Exception
createEndpoint
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public int removeEndpoints(String pattern) throws Exception
removeEndpoints
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String componentParameterJsonSchema(String componentName) throws Exception
componentParameterJsonSchema
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String dataFormatParameterJsonSchema(String dataFormatName) throws Exception
dataFormatParameterJsonSchema
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String languageParameterJsonSchema(String languageName) throws Exception
languageParameterJsonSchema
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
public String eipParameterJsonSchema(String eipName) throws Exception
eipParameterJsonSchema
in interface org.apache.camel.api.management.mbean.ManagedCamelContextMBean
Exception
Apache Camel