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