Interface ManagedCamelContextMBean
- All Superinterfaces:
ManagedCounterMBean
,ManagedPerformanceCounterMBean
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSendToEndpoint
(String endpointUri) The names of the components currently registeredboolean
createEndpoint
(String uri) Creates the endpoint by the given uriThe names of the data formats currently registereddumpRestsAsXml
(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) getGlobalOption
(String key) Gets the value of a CamelContext global optiongetState()
long
long
boolean
boolean
boolean
boolean
boolean
boolean
boolean
The names of the languages currently registeredint
removeEndpoints
(String pattern) Removes the endpoint by the given patternrequestBody
(String endpointUri, Object body) requestStringBody
(String endpointUri, String body) void
reset
(boolean includeRoutes) Resets all the performance counters.void
restart()
void
resume()
void
void
void
sendStringBody
(String endpointUri, String body) void
setGlobalOption
(String key, String value) Sets the value of a CamelContext property namevoid
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 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, getIdleSince, getLastExchangeCompletedExchangeId, getLastExchangeCompletedTimestamp, getLastExchangeCreatedTimestamp, getLastExchangeFailureExchangeId, getLastExchangeFailureTimestamp, getLastProcessingTime, getMaxProcessingTime, getMeanProcessingTime, getMinProcessingTime, getRedeliveries, getTotalProcessingTime, isStatisticsEnabled, setStatisticsEnabled
-
Method Details
-
getCamelId
-
getCamelDescription
-
getManagementName
-
getCamelVersion
-
getProfile
-
getState
-
getUptime
-
getUptimeMillis
-
getManagementStatisticsLevel
@ManagedAttribute(description="Camel Management StatisticsLevel") String getManagementStatisticsLevel() -
getGlobalOptions
-
getClassResolver
-
getPackageScanClassResolver
@ManagedAttribute(description="PackageScanClassResolver class name") String getPackageScanClassResolver() -
getApplicationContextClassName
@ManagedAttribute(description="ApplicationContext class name") String getApplicationContextClassName() -
getHeadersMapFactoryClassName
@ManagedAttribute(description="HeadersMapFactory class name") String getHeadersMapFactoryClassName() -
getGlobalOption
@ManagedOperation(description="Gets the value of a Camel global option") String getGlobalOption(String key) throws Exception Gets the value of a CamelContext global option- Parameters:
key
- the global option key- Returns:
- the global option value
- Throws:
Exception
- when an error occurred
-
setGlobalOption
@ManagedOperation(description="Sets the value of a Camel global option") void setGlobalOption(String key, String value) throws Exception Sets the value of a CamelContext property name- Parameters:
key
- the global option keyvalue
- the global option value- Throws:
Exception
- when an error occurred
-
getTracing
-
setTracing
-
getTotalRoutes
-
getStartedRoutes
-
setTimeout
-
getTimeout
-
setTimeUnit
-
getTimeUnit
-
setShutdownNowOnTimeout
@ManagedAttribute(description="Whether to force shutdown now when a timeout occurred") void setShutdownNowOnTimeout(boolean shutdownNowOnTimeout) -
isShutdownNowOnTimeout
@ManagedAttribute(description="Whether to force shutdown now when a timeout occurred") boolean isShutdownNowOnTimeout() -
getLoad01
-
getLoad05
-
getLoad15
-
getThroughput
-
isUseBreadcrumb
-
isAllowUseOriginalMessage
@ManagedAttribute(description="Whether allowing access to the original message during routing") boolean isAllowUseOriginalMessage() -
isMessageHistory
-
isLogMask
-
isUseMDCLogging
-
isUseDataType
-
start
- Throws:
Exception
-
stop
- Throws:
Exception
-
restart
@ManagedOperation(description="Restart Camel (stop and then start)") void restart() throws Exception- Throws:
Exception
-
suspend
- Throws:
Exception
-
resume
- Throws:
Exception
-
startAllRoutes
@ManagedOperation(description="Starts all the routes which currently is not started") void startAllRoutes() throws Exception- Throws:
Exception
-
canSendToEndpoint
@ManagedOperation(description="Whether its possible to send to the endpoint (eg the endpoint has a producer)") boolean canSendToEndpoint(String endpointUri) -
sendBody
@ManagedOperation(description="Send body (in only)") void sendBody(String endpointUri, Object body) throws Exception - Throws:
Exception
-
sendStringBody
@ManagedOperation(description="Send body (String type) (in only)") void sendStringBody(String endpointUri, String body) throws Exception - Throws:
Exception
-
sendBodyAndHeaders
@ManagedOperation(description="Send body and headers (in only)") void sendBodyAndHeaders(String endpointUri, Object body, Map<String, Object> headers) throws Exception- Throws:
Exception
-
requestBody
@ManagedOperation(description="Request body (in out)") Object requestBody(String endpointUri, Object body) throws Exception - Throws:
Exception
-
requestStringBody
@ManagedOperation(description="Request body (String type) (in out)") Object requestStringBody(String endpointUri, String body) throws Exception - Throws:
Exception
-
requestBodyAndHeaders
@ManagedOperation(description="Request body and headers (in out)") Object requestBodyAndHeaders(String endpointUri, Object body, Map<String, Object> headers) throws Exception- Throws:
Exception
-
dumpRestsAsXml
- Throws:
Exception
-
dumpRestsAsXml
@ManagedOperation(description="Dumps the rests as XML") String dumpRestsAsXml(boolean resolvePlaceholders) throws Exception - Throws:
Exception
-
dumpRoutesAsXml
- Throws:
Exception
-
dumpRoutesAsXml
@ManagedOperation(description="Dumps the routes as XML") String dumpRoutesAsXml(boolean resolvePlaceholders) throws Exception - Throws:
Exception
-
dumpRoutesAsXml
@ManagedOperation(description="Dumps the routes as XML") String dumpRoutesAsXml(boolean resolvePlaceholders, boolean generatedIds) throws Exception - Throws:
Exception
-
dumpRoutesStatsAsXml
@ManagedOperation(description="Dumps the CamelContext and routes stats as XML") String dumpRoutesStatsAsXml(boolean fullStats, boolean includeProcessors) throws Exception - Throws:
Exception
-
dumpStepStatsAsXml
@ManagedOperation(description="Dumps the CamelContext and routes and steps stats as XML") String dumpStepStatsAsXml(boolean fullStats) throws Exception - Throws:
Exception
-
dumpRoutesCoverageAsXml
@ManagedOperation(description="Dumps the routes coverage as XML") String dumpRoutesCoverageAsXml() throws Exception- Throws:
Exception
-
dumpRouteTemplatesAsXml
@ManagedOperation(description="Dumps the route templates as XML") String dumpRouteTemplatesAsXml() throws Exception- Throws:
Exception
-
dumpRoutesAsYaml
@ManagedOperation(description="Dumps the routes as YAML") String dumpRoutesAsYaml() throws Exception- Throws:
Exception
-
dumpRoutesAsYaml
@ManagedOperation(description="Dumps the routes as YAML") String dumpRoutesAsYaml(boolean resolvePlaceholders) throws Exception - Throws:
Exception
-
dumpRoutesAsYaml
@ManagedOperation(description="Dumps the routes as YAML") String dumpRoutesAsYaml(boolean resolvePlaceholders, boolean uriAsParameters) throws Exception - Throws:
Exception
-
dumpRoutesAsYaml
@ManagedOperation(description="Dumps the routes as YAML") String dumpRoutesAsYaml(boolean resolvePlaceholders, boolean uriAsParameters, boolean generatedIds) throws Exception - Throws:
Exception
-
createEndpoint
@ManagedOperation(description="Creates the endpoint by the given URI") boolean createEndpoint(String uri) throws Exception Creates the endpoint by the given uri- Parameters:
uri
- uri of endpoint to create- Returns:
- true if a new endpoint was created, false if the endpoint already existed
- Throws:
Exception
- is thrown if error occurred
-
removeEndpoints
@ManagedOperation(description="Removes endpoints by the given pattern") int removeEndpoints(String pattern) throws Exception Removes the endpoint by the given pattern- Parameters:
pattern
- the pattern- Returns:
- number of endpoints removed
- Throws:
Exception
- is thrown if error occurred- See Also:
-
reset
Resets all the performance counters.- Parameters:
includeRoutes
- whether to reset all routes as well.- Throws:
Exception
- is thrown if error occurred
-
componentNames
@ManagedOperation(description="The names of the components currently registered") Set<String> componentNames() throws ExceptionThe names of the components currently registered- Throws:
Exception
-
languageNames
@ManagedOperation(description="The names of the languages currently registered") Set<String> languageNames() throws ExceptionThe names of the languages currently registered- Throws:
Exception
-
dataFormatNames
@ManagedOperation(description="The names of the data formats currently registered") Set<String> dataFormatNames() throws ExceptionThe names of the data formats currently registered- Throws:
Exception
-