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_FORMAT
Fields inherited from class org.apache.camel.management.mbean.ManagedCounter
exchangesTotal, resetTimestamp, startTimestamp
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSendToEndpoint
(String endpointUri) void
completedExchange
(org.apache.camel.Exchange exchange, long time) Executed when anExchange
is complete.boolean
createEndpoint
(String uri) dumpRestsAsXml
(boolean resolvePlaceholders) dumpRoutesAsXml
(boolean resolvePlaceholders) dumpRoutesAsXml
(boolean resolvePlaceholders, boolean resolveDelegateEndpoints) dumpRoutesStatsAsXml
(boolean fullStats, boolean includeProcessors) dumpStepStatsAsXml
(boolean fullStats) void
failedExchange
(org.apache.camel.Exchange exchange) Executed when anExchange
failed.org.apache.camel.CamelContext
getGlobalOption
(String key) getState()
long
long
void
init
(org.apache.camel.spi.ManagementStrategy strategy) boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
onTimer()
void
processExchange
(org.apache.camel.Exchange exchange, String type) Executed when anExchange
is about to be processed.int
removeEndpoints
(String pattern) requestBody
(String endpointUri, Object body) requestStringBody
(String endpointUri, String body) void
reset
(boolean includeRoutes) void
restart()
void
resume()
void
void
void
sendStringBody
(String endpointUri, String body) void
setGlobalOption
(String key, String value) void
setShutdownNowOnTimeout
(boolean shutdownNowOnTimeout) void
setTimeout
(long timeout) void
setTimeUnit
(TimeUnit timeUnit) void
setTracing
(Boolean tracing) void
start()
void
void
stop()
void
suspend()
Methods inherited from class org.apache.camel.management.mbean.ManagedPerformanceCounter
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeCreatedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, reset, setStatisticsEnabled
Methods inherited from class org.apache.camel.management.mbean.ManagedCounter
getExchangesTotal, getResetTimestamp, getStartTimestamp, increment
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.camel.api.management.mbean.ManagedCounterMBean
getExchangesTotal, getResetTimestamp, getStartTimestamp, reset
Methods inherited from interface org.apache.camel.api.management.mbean.ManagedPerformanceCounterMBean
dumpStatsAsXml, getDeltaProcessingTime, getExchangesCompleted, getExchangesFailed, getExchangesInflight, getExternalRedeliveries, getFailuresHandled, getFirstExchangeCompletedExchangeId, getFirstExchangeCompletedTimestamp, getFirstExchangeFailureExchangeId, getFirstExchangeFailureTimestamp, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeCreatedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabled
-
Constructor Details
-
ManagedCamelContext
-
-
Method Details
-
init
- Overrides:
init
in classManagedPerformanceCounter
-
completedExchange
Description copied from interface:PerformanceCounter
Executed when anExchange
is complete.- Specified by:
completedExchange
in interfacePerformanceCounter
- Overrides:
completedExchange
in classManagedPerformanceCounter
- Parameters:
exchange
- the exchangetime
- the time it took in millis to complete
-
failedExchange
Description copied from interface:PerformanceCounter
Executed when anExchange
failed.- Specified by:
failedExchange
in interfacePerformanceCounter
- Overrides:
failedExchange
in classManagedPerformanceCounter
- Parameters:
exchange
- the exchange
-
processExchange
Description copied from interface:PerformanceCounter
Executed when anExchange
is about to be processed.- Specified by:
processExchange
in interfacePerformanceCounter
- Overrides:
processExchange
in classManagedPerformanceCounter
- Parameters:
exchange
- the exchangetype
- the node type
-
getContext
-
getCamelId
- Specified by:
getCamelId
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getCamelDescription
- Specified by:
getCamelDescription
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getManagementName
- Specified by:
getManagementName
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getCamelVersion
- Specified by:
getCamelVersion
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getState
- Specified by:
getState
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getUptime
- Specified by:
getUptime
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getUptimeMillis
- Specified by:
getUptimeMillis
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getManagementStatisticsLevel
- Specified by:
getManagementStatisticsLevel
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getClassResolver
- Specified by:
getClassResolver
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getPackageScanClassResolver
- Specified by:
getPackageScanClassResolver
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getApplicationContextClassName
- Specified by:
getApplicationContextClassName
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getHeadersMapFactoryClassName
- Specified by:
getHeadersMapFactoryClassName
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getGlobalOptions
- Specified by:
getGlobalOptions
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getGlobalOption
- Specified by:
getGlobalOption
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
setGlobalOption
- Specified by:
setGlobalOption
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
getTracing
- Specified by:
getTracing
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTracing
- Specified by:
setTracing
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getInflightExchanges
-
getTotalRoutes
- Specified by:
getTotalRoutes
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getStartedRoutes
- Specified by:
getStartedRoutes
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTimeout
- Specified by:
setTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getTimeout
- Specified by:
getTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setTimeUnit
- Specified by:
setTimeUnit
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getTimeUnit
- Specified by:
getTimeUnit
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
setShutdownNowOnTimeout
- Specified by:
setShutdownNowOnTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isShutdownNowOnTimeout
- Specified by:
isShutdownNowOnTimeout
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad01
- Specified by:
getLoad01
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad05
- Specified by:
getLoad05
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getLoad15
- Specified by:
getLoad15
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
getThroughput
- Specified by:
getThroughput
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseBreadcrumb
- Specified by:
isUseBreadcrumb
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isAllowUseOriginalMessage
- Specified by:
isAllowUseOriginalMessage
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isMessageHistory
- Specified by:
isMessageHistory
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isLogMask
- Specified by:
isLogMask
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseMDCLogging
- Specified by:
isUseMDCLogging
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
isUseDataType
- Specified by:
isUseDataType
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
onTimer
- Specified by:
onTimer
in interfaceorg.apache.camel.TimerListener
-
start
- Specified by:
start
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
stop
- Specified by:
stop
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
restart
- Specified by:
restart
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
suspend
- Specified by:
suspend
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
resume
- Specified by:
resume
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
startAllRoutes
- Specified by:
startAllRoutes
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
canSendToEndpoint
- Specified by:
canSendToEndpoint
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
-
sendBody
- Specified by:
sendBody
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
sendStringBody
- Specified by:
sendStringBody
in 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:
sendBodyAndHeaders
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
requestBody
- Specified by:
requestBody
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
requestStringBody
- Specified by:
requestStringBody
in 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:
requestBodyAndHeaders
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRestsAsXml
- Specified by:
dumpRestsAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRestsAsXml
- Specified by:
dumpRestsAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRoutesAsXml
- Specified by:
dumpRoutesAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRoutesAsXml
- Specified by:
dumpRoutesAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRoutesAsXml
public String dumpRoutesAsXml(boolean resolvePlaceholders, boolean resolveDelegateEndpoints) throws Exception - Specified by:
dumpRoutesAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRouteTemplatesAsXml
- Specified by:
dumpRouteTemplatesAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRoutesStatsAsXml
- Specified by:
dumpRoutesStatsAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpStepStatsAsXml
- Specified by:
dumpStepStatsAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dumpRoutesCoverageAsXml
- Specified by:
dumpRoutesCoverageAsXml
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
createEndpoint
- Specified by:
createEndpoint
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
removeEndpoints
- Specified by:
removeEndpoints
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
reset
- Specified by:
reset
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
componentNames
- Specified by:
componentNames
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
languageNames
- Specified by:
languageNames
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-
dataFormatNames
- Specified by:
dataFormatNames
in interfaceorg.apache.camel.api.management.mbean.ManagedCamelContextMBean
- Throws:
Exception
-