Class ManagedCamelContext
java.lang.Object
org.apache.camel.management.mbean.ManagedCounter
org.apache.camel.management.mbean.ManagedPerformanceCounter
org.apache.camel.management.mbean.ManagedCamelContext
- All Implemented Interfaces:
org.apache.camel.api.management.mbean.ManagedCamelContextMBean,org.apache.camel.api.management.mbean.ManagedCounterMBean,org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean,PerformanceCounter,org.apache.camel.TimerListener
@ManagedResource(description="Managed CamelContext")
public class ManagedCamelContext
extends ManagedPerformanceCounter
implements org.apache.camel.TimerListener, org.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
Field Summary
Fields inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
TIMESTAMP_FORMATFields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal, resetTimestamp, startTimestamp -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanSendToEndpoint(String endpointUri) voidcompletedExchange(org.apache.camel.Exchange exchange, long time) Executed when anExchangeis complete.booleancreateEndpoint(String uri) dumpRestsAsXml(boolean resolvePlaceholders) dumpRoutesAsXml(boolean resolvePlaceholders) dumpRoutesAsXml(boolean resolvePlaceholders, boolean generatedIds) dumpRoutesAsYaml(boolean resolvePlaceholders) dumpRoutesAsYaml(boolean resolvePlaceholders, boolean uriAsParameters) dumpRoutesAsYaml(boolean resolvePlaceholders, boolean uriAsParameters, boolean generatedIds) dumpRoutesStatsAsXml(boolean fullStats, boolean includeProcessors) dumpStepStatsAsXml(boolean fullStats) voidfailedExchange(org.apache.camel.Exchange exchange) Executed when anExchangefailed.org.apache.camel.CamelContextgetGlobalOption(String key) getState()longlongvoidinit(org.apache.camel.spi.ManagementStrategy strategy) booleanbooleanbooleanbooleanbooleanbooleanbooleanvoidonTimer()voidprocessExchange(org.apache.camel.Exchange exchange, String type) Executed when anExchangeis about to be processed.intremoveEndpoints(String pattern) requestBody(String endpointUri, Object body) requestStringBody(String endpointUri, String body) voidreset(boolean includeRoutes) voidrestart()voidresume()voidvoidvoidsendStringBody(String endpointUri, String body) voidsetGlobalOption(String key, String value) voidsetShutdownNowOnTimeout(boolean shutdownNowOnTimeout) voidsetTimeout(long timeout) voidsetTimeUnit(TimeUnit timeUnit) voidsetTracing(Boolean tracing) voidstart()voidvoidstop()voidsuspend()Methods inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getIdleSince, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeCreatedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, reset, setStatisticsEnabledMethods inherited from class org.apache.camel.management.mbean.ManagedCounter
getExchangesTotal, getResetTimestamp, getStartTimestamp, incrementMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.api.management.mbean.ManagedCounterMBean
getExchangesTotal, getResetTimestamp, getStartTimestamp, resetMethods inherited from interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getIdleSince, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeCreatedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabled
-
Constructor Details
-
ManagedCamelContext
-
-
Method Details
-
init
- Overrides:
initin classManagedPerformanceCounter
-
completedExchange
Description copied from interface:PerformanceCounterExecuted when anExchangeis complete.- Specified by:
completedExchangein interfacePerformanceCounter- Overrides:
completedExchangein classManagedPerformanceCounter- Parameters:
exchange- the exchangetime- the time it took in millis to complete
-
failedExchange
Description copied from interface:PerformanceCounterExecuted when anExchangefailed.- Specified by:
failedExchangein interfacePerformanceCounter- Overrides:
failedExchangein classManagedPerformanceCounter- Parameters:
exchange- the exchange
-
processExchange
Description copied from interface:PerformanceCounterExecuted when anExchangeis about to be processed.- Specified by:
processExchangein interfacePerformanceCounter- Overrides:
processExchangein classManagedPerformanceCounter- Parameters:
exchange- the exchangetype- the node type
-
getContext
-
getCamelId
- Specified by:
getCamelIdin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getCamelDescription
- Specified by:
getCamelDescriptionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getManagementName
- Specified by:
getManagementNamein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getCamelVersion
- Specified by:
getCamelVersionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getState
- Specified by:
getStatein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getUptime
- Specified by:
getUptimein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getUptimeMillis
- Specified by:
getUptimeMillisin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getManagementStatisticsLevel
- Specified by:
getManagementStatisticsLevelin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getClassResolver
- Specified by:
getClassResolverin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getPackageScanClassResolver
- Specified by:
getPackageScanClassResolverin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getApplicationContextClassName
- Specified by:
getApplicationContextClassNamein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getHeadersMapFactoryClassName
- Specified by:
getHeadersMapFactoryClassNamein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getGlobalOptions
- Specified by:
getGlobalOptionsin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getGlobalOption
- Specified by:
getGlobalOptionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
setGlobalOption
- Specified by:
setGlobalOptionin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
getTracing
- Specified by:
getTracingin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTracing
- Specified by:
setTracingin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getInflightExchanges
-
getTotalRoutes
- Specified by:
getTotalRoutesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getStartedRoutes
- Specified by:
getStartedRoutesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTimeout
- Specified by:
setTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getTimeout
- Specified by:
getTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTimeUnit
- Specified by:
setTimeUnitin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getTimeUnit
- Specified by:
getTimeUnitin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setShutdownNowOnTimeout
- Specified by:
setShutdownNowOnTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isShutdownNowOnTimeout
- Specified by:
isShutdownNowOnTimeoutin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad01
- Specified by:
getLoad01in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad05
- Specified by:
getLoad05in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad15
- Specified by:
getLoad15in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getThroughput
- Specified by:
getThroughputin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseBreadcrumb
- Specified by:
isUseBreadcrumbin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isAllowUseOriginalMessage
- Specified by:
isAllowUseOriginalMessagein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isMessageHistory
- Specified by:
isMessageHistoryin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isLogMask
- Specified by:
isLogMaskin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseMDCLogging
- Specified by:
isUseMDCLoggingin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseDataType
- Specified by:
isUseDataTypein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
onTimer
- Specified by:
onTimerin interfaceorg.apache.camel.TimerListener
-
start
- Specified by:
startin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
stop
- Specified by:
stopin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
restart
- Specified by:
restartin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
suspend
- Specified by:
suspendin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
resume
- Specified by:
resumein interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
startAllRoutes
- Specified by:
startAllRoutesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
canSendToEndpoint
- Specified by:
canSendToEndpointin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
sendBody
- Specified by:
sendBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
sendStringBody
- Specified by:
sendStringBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
sendBodyAndHeaders
public void sendBodyAndHeaders(String endpointUri, Object body, Map<String, Object> headers) throws Exception- Specified by:
sendBodyAndHeadersin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
requestBody
- Specified by:
requestBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
requestStringBody
- Specified by:
requestStringBodyin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
requestBodyAndHeaders
public Object requestBodyAndHeaders(String endpointUri, Object body, Map<String, Object> headers) throws Exception- Specified by:
requestBodyAndHeadersin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRestsAsXml
- Specified by:
dumpRestsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRestsAsXml
- Specified by:
dumpRestsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsXml
- Specified by:
dumpRoutesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsXml
- Specified by:
dumpRoutesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsXml
- Specified by:
dumpRoutesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsYaml
- Specified by:
dumpRoutesAsYamlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsYaml
- Specified by:
dumpRoutesAsYamlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsYaml
public String dumpRoutesAsYaml(boolean resolvePlaceholders, boolean uriAsParameters) throws Exception - Specified by:
dumpRoutesAsYamlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesAsYaml
public String dumpRoutesAsYaml(boolean resolvePlaceholders, boolean uriAsParameters, boolean generatedIds) throws Exception - Specified by:
dumpRoutesAsYamlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRouteTemplatesAsXml
- Specified by:
dumpRouteTemplatesAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesStatsAsXml
- Specified by:
dumpRoutesStatsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpStepStatsAsXml
- Specified by:
dumpStepStatsAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dumpRoutesCoverageAsXml
- Specified by:
dumpRoutesCoverageAsXmlin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
createEndpoint
- Specified by:
createEndpointin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
removeEndpoints
- Specified by:
removeEndpointsin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
reset
- Specified by:
resetin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
componentNames
- Specified by:
componentNamesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
languageNames
- Specified by:
languageNamesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-
dataFormatNames
- Specified by:
dataFormatNamesin interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean- Throws:
Exception
-