public abstract class AbstractCamelContext extends org.apache.camel.support.service.ServiceSupport implements ModelCamelContext, org.apache.camel.CatalogCamelContext, org.apache.camel.Suspendable
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractCamelContext.Initialization |
| Constructor and Description |
|---|
AbstractCamelContext()
Creates the
CamelContext using DefaultRegistry as registry. |
AbstractCamelContext(boolean init) |
AbstractCamelContext(org.apache.camel.spi.Registry registry)
Creates the
CamelContext using the given registry |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.apache.camel.CamelContext> |
adapt(Class<T> type) |
void |
addComponent(String componentName,
org.apache.camel.Component component) |
org.apache.camel.Endpoint |
addEndpoint(String uri,
org.apache.camel.Endpoint endpoint) |
protected org.apache.camel.Endpoint |
addEndpointToRegistry(String uri,
org.apache.camel.Endpoint endpoint)
Strategy to add the given endpoint to the internal endpoint registry
|
void |
addHystrixConfiguration(String id,
HystrixConfigurationDefinition configuration)
Adds the Hystrix configuration
|
void |
addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy) |
void |
addLifecycleStrategy(org.apache.camel.spi.LifecycleStrategy lifecycleStrategy) |
void |
addLogListener(org.apache.camel.spi.LogListener listener) |
void |
addRegisterEndpointCallback(org.apache.camel.spi.EndpointStrategy strategy) |
void |
addRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration) |
void |
addRestDefinitions(Collection<RestDefinition> restDefinitions,
boolean addToRoutes)
Adds a collection of rest definitions to the context
|
void |
addRestDefinitions(InputStream is,
boolean addToRoutes)
Adds a collection of rest definitions to the context
|
void |
addRouteDefinition(RouteDefinition routeDefinition)
Add a route definition to the context
Important: Each route in the same
CamelContext must have an unique route id. |
void |
addRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Adds a collection of route definitions to the context
Important: Each route in the same
CamelContext must have an unique route id. |
void |
addRouteDefinitions(InputStream is)
Adds a collection of route definitions to the context
Important: Each route in the same
CamelContext must have an unique route id. |
void |
addRoutePolicyFactory(org.apache.camel.spi.RoutePolicyFactory routePolicyFactory) |
void |
addRoutes(org.apache.camel.RoutesBuilder builder) |
void |
addService(Object object) |
void |
addService(Object object,
boolean stopOnShutdown) |
void |
addService(Object object,
boolean stopOnShutdown,
boolean forceStart) |
void |
addServiceCallConfiguration(String serviceName,
ServiceCallConfigurationDefinition configuration)
Adds the service call configuration
|
void |
addStartupListener(org.apache.camel.StartupListener listener) |
protected org.apache.camel.Endpoint |
convertBeanToEndpoint(String uri,
Object bean)
Strategy method for attempting to convert the bean from a
Registry to an endpoint using
some kind of transformation or wrapper |
protected abstract org.apache.camel.spi.AsyncProcessorAwaitManager |
createAsyncProcessorAwaitManager() |
protected abstract org.apache.camel.spi.CamelBeanPostProcessor |
createBeanPostProcessor() |
protected abstract org.apache.camel.spi.CamelContextNameStrategy |
createCamelContextNameStrategy() |
protected abstract org.apache.camel.spi.ClassResolver |
createClassResolver() |
protected abstract org.apache.camel.spi.ComponentResolver |
createComponentResolver() |
org.apache.camel.ConsumerTemplate |
createConsumerTemplate() |
org.apache.camel.ConsumerTemplate |
createConsumerTemplate(int maximumCacheSize) |
org.apache.camel.spi.DataFormat |
createDataFormat(String name) |
protected abstract org.apache.camel.spi.DataFormatResolver |
createDataFormatResolver() |
protected org.apache.camel.Endpoint |
createEndpoint(String uri)
A pluggable strategy to allow an endpoint to be created without requiring
a component to be its factory, such as for looking up the URI inside some
Registry |
protected abstract org.apache.camel.spi.EndpointRegistry<EndpointKey> |
createEndpointRegistry(Map<EndpointKey,org.apache.camel.Endpoint> endpoints) |
protected ScheduledExecutorService |
createErrorHandlerExecutorService() |
protected abstract org.apache.camel.spi.ExecutorServiceManager |
createExecutorServiceManager() |
protected org.apache.camel.spi.FactoryFinder |
createFactoryFinder(String path) |
protected abstract org.apache.camel.spi.FactoryFinderResolver |
createFactoryFinderResolver() |
org.apache.camel.FluentProducerTemplate |
createFluentProducerTemplate() |
org.apache.camel.FluentProducerTemplate |
createFluentProducerTemplate(int maximumCacheSize) |
protected abstract org.apache.camel.spi.HeadersMapFactory |
createHeadersMapFactory() |
protected abstract org.apache.camel.health.HealthCheckRegistry |
createHealthCheckRegistry() |
protected abstract org.apache.camel.spi.InflightRepository |
createInflightRepository() |
protected abstract org.apache.camel.spi.Injector |
createInjector() |
protected abstract org.apache.camel.spi.LanguageResolver |
createLanguageResolver() |
protected abstract org.apache.camel.spi.ManagementNameStrategy |
createManagementNameStrategy() |
protected abstract org.apache.camel.spi.MessageHistoryFactory |
createMessageHistoryFactory() |
protected abstract org.apache.camel.spi.ModelJAXBContextFactory |
createModelJAXBContextFactory() |
org.apache.camel.AsyncProcessor |
createMulticast(Collection<org.apache.camel.Processor> processors,
ExecutorService executor,
boolean shutdownExecutorService) |
protected abstract org.apache.camel.spi.NodeIdFactory |
createNodeIdFactory() |
protected abstract org.apache.camel.spi.PackageScanClassResolver |
createPackageScanClassResolver() |
protected abstract ServicePool<org.apache.camel.PollingConsumer> |
createPollingConsumerServicePool() |
protected abstract org.apache.camel.spi.ProcessorFactory |
createProcessorFactory() |
protected abstract ServicePool<org.apache.camel.Producer> |
createProducerServicePool() |
org.apache.camel.ProducerTemplate |
createProducerTemplate() |
org.apache.camel.ProducerTemplate |
createProducerTemplate(int maximumCacheSize) |
protected abstract org.apache.camel.spi.Registry |
createRegistry() |
protected abstract org.apache.camel.spi.RestRegistry |
createRestRegistry() |
protected abstract org.apache.camel.spi.RouteController |
createRouteController() |
String |
createRouteStaticEndpointJson(String routeId) |
String |
createRouteStaticEndpointJson(String routeId,
boolean includeDynamic) |
protected abstract org.apache.camel.runtimecatalog.RuntimeCamelCatalog |
createRuntimeCamelCatalog() |
protected abstract org.apache.camel.spi.ShutdownStrategy |
createShutdownStrategy() |
protected abstract org.apache.camel.spi.StreamCachingStrategy |
createStreamCachingStrategy() |
protected abstract org.apache.camel.spi.TransformerRegistry<TransformerKey> |
createTransformerRegistry(List<TransformerDefinition> transformers) |
protected abstract org.apache.camel.TypeConverter |
createTypeConverter() |
protected abstract org.apache.camel.spi.TypeConverterRegistry |
createTypeConverterRegistry() |
protected abstract org.apache.camel.spi.UnitOfWorkFactory |
createUnitOfWorkFactory() |
protected abstract org.apache.camel.spi.UuidGenerator |
createUuidGenerator() |
protected abstract org.apache.camel.spi.ValidatorRegistry<org.apache.camel.impl.validator.ValidatorKey> |
createValidatorRegistry(List<ValidatorDefinition> validators) |
void |
deferStartService(Object object,
boolean stopOnShutdown) |
void |
disableJMX() |
protected <T> T |
doAddService(T object) |
protected <T> T |
doAddService(T object,
boolean stopOnShutdown) |
protected <T> T |
doAddService(T object,
boolean stopOnShutdown,
boolean forceStart) |
void |
doInit() |
protected void |
doResume() |
protected void |
doShutdownRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean removingRoutes) |
protected void |
doStart() |
protected void |
doStartCamel() |
protected void |
doStartOrResumeRoutes(Map<String,RouteService> routeServices,
boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes)
Starts or resumes the routes
|
protected void |
doStop() |
protected void |
doSuspend() |
String |
explainComponentJson(String componentName,
boolean includeAllOptions) |
String |
explainDataFormatJson(String dataFormatName,
org.apache.camel.spi.DataFormat dataFormat,
boolean includeAllOptions) |
String |
explainEipJson(String nameOrId,
boolean includeAllOptions) |
String |
explainEndpointJson(String uri,
boolean includeAllOptions) |
Map<String,Properties> |
findComponents() |
Map<String,Properties> |
findEips() |
protected void |
forceLazyInitialization()
Force some lazy initialization to occur upfront before we start any
components and create routes
|
protected void |
forceStopLazyInitialization()
Force clear lazy initialization so they can be re-created on restart
|
ClassLoader |
getApplicationContextClassLoader() |
org.apache.camel.spi.AsyncProcessorAwaitManager |
getAsyncProcessorAwaitManager() |
org.apache.camel.spi.CamelBeanPostProcessor |
getBeanPostProcessor() |
org.apache.camel.spi.ClassResolver |
getClassResolver() |
org.apache.camel.Component |
getComponent(String name) |
org.apache.camel.Component |
getComponent(String name,
boolean autoCreateComponents) |
org.apache.camel.Component |
getComponent(String name,
boolean autoCreateComponents,
boolean autoStart) |
<T extends org.apache.camel.Component> |
getComponent(String name,
Class<T> componentType) |
List<String> |
getComponentNames() |
String |
getComponentParameterJsonSchema(String componentName) |
org.apache.camel.spi.ComponentResolver |
getComponentResolver() |
String |
getDataFormatParameterJsonSchema(String dataFormatName) |
org.apache.camel.spi.DataFormatResolver |
getDataFormatResolver() |
Map<String,DataFormatDefinition> |
getDataFormats()
Gets the data formats that can be referenced in the routes.
|
org.apache.camel.spi.Debugger |
getDebugger() |
org.apache.camel.spi.FactoryFinder |
getDefaultFactoryFinder() |
Long |
getDelayer() |
String |
getEipParameterJsonSchema(String eipName) |
org.apache.camel.Endpoint |
getEndpoint(String uri) |
<T extends org.apache.camel.Endpoint> |
getEndpoint(String name,
Class<T> endpointType) |
protected EndpointKey |
getEndpointKey(String uri)
Gets the endpoint key to use for lookup or whe adding endpoints to the
DefaultEndpointRegistry |
protected EndpointKey |
getEndpointKey(String uri,
org.apache.camel.Endpoint endpoint)
Gets the endpoint key to use for lookup or whe adding endpoints to the
DefaultEndpointRegistry |
protected EndpointKey |
getEndpointKeyPreNormalized(String uri)
Gets the endpoint key to use for lookup or whe adding endpoints to the
DefaultEndpointRegistry |
Map<String,org.apache.camel.Endpoint> |
getEndpointMap() |
org.apache.camel.spi.EndpointRegistry<EndpointKey> |
getEndpointRegistry() |
Collection<org.apache.camel.Endpoint> |
getEndpoints() |
ScheduledExecutorService |
getErrorHandlerExecutorService() |
ErrorHandlerBuilder |
getErrorHandlerFactory() |
org.apache.camel.spi.ExecutorServiceManager |
getExecutorServiceManager() |
<T> T |
getExtension(Class<T> type) |
org.apache.camel.spi.FactoryFinder |
getFactoryFinder(String path) |
org.apache.camel.spi.FactoryFinderResolver |
getFactoryFinderResolver() |
String |
getGlobalOption(String key) |
Map<String,String> |
getGlobalOptions() |
org.apache.camel.spi.HeadersMapFactory |
getHeadersMapFactory() |
HystrixConfigurationDefinition |
getHystrixConfiguration(String id)
Gets the Hystrix configuration by the given name.
|
org.apache.camel.spi.InflightRepository |
getInflightRepository() |
AbstractCamelContext.Initialization |
getInitialization() |
org.apache.camel.spi.Injector |
getInjector() |
List<org.apache.camel.spi.InterceptStrategy> |
getInterceptStrategies() |
List<String> |
getLanguageNames() |
String |
getLanguageParameterJsonSchema(String languageName) |
org.apache.camel.spi.LanguageResolver |
getLanguageResolver() |
List<org.apache.camel.spi.LifecycleStrategy> |
getLifecycleStrategies() |
Set<org.apache.camel.spi.LogListener> |
getLogListeners() |
org.apache.camel.spi.ManagementMBeanAssembler |
getManagementMBeanAssembler() |
String |
getManagementName() |
org.apache.camel.spi.ManagementNameStrategy |
getManagementNameStrategy() |
org.apache.camel.spi.ManagementStrategy |
getManagementStrategy() |
org.apache.camel.spi.MessageHistoryFactory |
getMessageHistoryFactory() |
org.apache.camel.spi.ModelJAXBContextFactory |
getModelJAXBContextFactory() |
String |
getName() |
org.apache.camel.spi.CamelContextNameStrategy |
getNameStrategy() |
org.apache.camel.spi.NodeIdFactory |
getNodeIdFactory() |
org.apache.camel.spi.PackageScanClassResolver |
getPackageScanClassResolver() |
ServicePool<org.apache.camel.PollingConsumer> |
getPollingConsumerServicePool() |
org.apache.camel.Processor |
getProcessor(String id) |
<T extends org.apache.camel.Processor> |
getProcessor(String id,
Class<T> type) |
ProcessorDefinition |
getProcessorDefinition(String id)
Gets the processor definition from any of the routes which with the given id
|
<T extends ProcessorDefinition> |
getProcessorDefinition(String id,
Class<T> type)
Gets the processor definition from any of the routes which with the given id
|
org.apache.camel.spi.ProcessorFactory |
getProcessorFactory() |
ServicePool<org.apache.camel.Producer> |
getProducerServicePool() |
org.apache.camel.spi.PropertiesComponent |
getPropertiesComponent()
Gets the properties component in use, eventually creating it.
|
org.apache.camel.spi.PropertiesComponent |
getPropertiesComponent(boolean autoCreate) |
String |
getPropertyPrefixToken() |
String |
getPropertySuffixToken() |
org.apache.camel.spi.Registry |
getRegistry() |
<T> T |
getRegistry(Class<T> type) |
org.apache.camel.spi.ReloadStrategy |
getReloadStrategy() |
org.apache.camel.spi.RestConfiguration |
getRestConfiguration() |
org.apache.camel.spi.RestConfiguration |
getRestConfiguration(String component,
boolean defaultIfNotExist) |
Collection<org.apache.camel.spi.RestConfiguration> |
getRestConfigurations() |
List<RestDefinition> |
getRestDefinitions()
Returns a list of the current REST definitions
|
org.apache.camel.spi.RestRegistry |
getRestRegistry() |
org.apache.camel.Route |
getRoute(String id) |
org.apache.camel.spi.RouteController |
getRouteController() |
RouteDefinition |
getRouteDefinition(String id)
Gets the route definition with the given id
|
List<RouteDefinition> |
getRouteDefinitions()
Returns a list of the current route definitions
|
List<org.apache.camel.spi.RoutePolicyFactory> |
getRoutePolicyFactories() |
List<org.apache.camel.Route> |
getRoutes() |
protected Map<String,RouteService> |
getRouteServices() |
List<org.apache.camel.spi.RouteStartupOrder> |
getRouteStartupOrder() |
org.apache.camel.ServiceStatus |
getRouteStatus(String key) |
org.apache.camel.spi.RuntimeEndpointRegistry |
getRuntimeEndpointRegistry() |
ServiceCallConfigurationDefinition |
getServiceCallConfiguration(String serviceName)
Gets the service call configuration by the given name.
|
org.apache.camel.ShutdownRoute |
getShutdownRoute() |
org.apache.camel.ShutdownRunningTask |
getShutdownRunningTask() |
org.apache.camel.spi.ShutdownStrategy |
getShutdownStrategy() |
org.apache.camel.support.jsse.SSLContextParameters |
getSSLContextParameters() |
org.apache.camel.spi.StreamCachingStrategy |
getStreamCachingStrategy() |
org.apache.camel.spi.TransformerRegistry<TransformerKey> |
getTransformerRegistry() |
List<TransformerDefinition> |
getTransformers()
Gets the transformers that can be referenced in the routes.
|
org.apache.camel.TypeConverter |
getTypeConverter() |
org.apache.camel.spi.TypeConverterRegistry |
getTypeConverterRegistry() |
org.apache.camel.spi.UnitOfWorkFactory |
getUnitOfWorkFactory() |
String |
getUptime() |
long |
getUptimeMillis() |
org.apache.camel.spi.UuidGenerator |
getUuidGenerator() |
org.apache.camel.spi.ValidatorRegistry<org.apache.camel.impl.validator.ValidatorKey> |
getValidatorRegistry() |
List<ValidatorDefinition> |
getValidators()
Gets the validators that can be referenced in the routes.
|
String |
getVersion() |
org.apache.camel.Component |
hasComponent(String componentName) |
org.apache.camel.Endpoint |
hasEndpoint(String uri) |
<T> T |
hasService(Class<T> type) |
boolean |
hasService(Object object) |
<T> Set<T> |
hasServices(Class<T> type) |
Boolean |
isAllowUseOriginalMessage() |
boolean |
isAutoCreateComponents() |
Boolean |
isAutoStartup() |
Boolean |
isHandleFault() |
boolean |
isJMXDisabled() |
Boolean |
isLoadTypeConverters() |
Boolean |
isLogExhaustedMessageBody() |
Boolean |
isLogMask() |
Boolean |
isMessageHistory() |
boolean |
isSetupRoutes() |
boolean |
isStartingRoutes() |
Boolean |
isStreamCaching() |
Boolean |
isTracing() |
Boolean |
isTypeConverterStatisticsEnabled() |
Boolean |
isUseBreadcrumb() |
Boolean |
isUseDataType() |
Boolean |
isUseMDCLogging() |
boolean |
isVetoStarted() |
protected void |
logRouteState(org.apache.camel.Route route,
String state) |
protected static String |
normalizeEndpointUri(String uri)
Normalize uri so we can do endpoint hits with minor mistakes and parameters is not in the same order.
|
org.apache.camel.Component |
removeComponent(String componentName) |
void |
removeEndpoint(org.apache.camel.Endpoint endpoint) |
Collection<org.apache.camel.Endpoint> |
removeEndpoints(String uri) |
boolean |
removeRoute(String routeId) |
void |
removeRouteDefinition(RouteDefinition routeDefinition)
Removes a route definition from the context - stopping any previously running
routes if any of them are actively running
|
protected boolean |
removeRouteDefinition(String key)
Removes the route definition with the given key.
|
void |
removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions)
Removes a collection of route definitions from the context - stopping any previously running
routes if any of them are actively running
|
boolean |
removeService(Object object) |
org.apache.camel.Component |
resolveComponent(String name) |
String |
resolveComponentDefaultName(String javaType) |
org.apache.camel.spi.DataFormat |
resolveDataFormat(String name) |
DataFormatDefinition |
resolveDataFormatDefinition(String name)
Resolve a data format definition given its name
|
org.apache.camel.spi.Language |
resolveLanguage(String language) |
String |
resolvePropertyPlaceholders(String text) |
org.apache.camel.spi.Transformer |
resolveTransformer(org.apache.camel.spi.DataType from,
org.apache.camel.spi.DataType to) |
org.apache.camel.spi.Transformer |
resolveTransformer(String scheme) |
org.apache.camel.spi.Validator |
resolveValidator(org.apache.camel.spi.DataType type) |
void |
resume() |
void |
resumeRoute(String routeId) |
protected void |
resumeRouteService(RouteService routeService)
Resumes the given route service
|
protected boolean |
routeSupportsSuspension(String routeId) |
protected void |
safelyStartRouteServices(boolean forceAutoStart,
boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes,
RouteService... routeServices) |
protected void |
safelyStartRouteServices(boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes,
Collection<RouteService> routeServices)
Starts the routes services in a proper manner which ensures the routes will be started in correct order,
check for clash and that the routes will also be shutdown in correct order as well.
|
void |
setAllowUseOriginalMessage(Boolean allowUseOriginalMessage) |
void |
setApplicationContextClassLoader(ClassLoader classLoader) |
void |
setAsyncProcessorAwaitManager(org.apache.camel.spi.AsyncProcessorAwaitManager asyncProcessorAwaitManager) |
void |
setAutoCreateComponents(boolean autoCreateComponents) |
void |
setAutoStartup(Boolean autoStartup) |
void |
setBeanPostProcessor(org.apache.camel.spi.CamelBeanPostProcessor beanPostProcessor) |
void |
setClassResolver(org.apache.camel.spi.ClassResolver classResolver) |
void |
setComponentResolver(org.apache.camel.spi.ComponentResolver componentResolver) |
static void |
setContextCounter(int value)
Reset context counter to a preset value.
|
void |
setDataFormatResolver(org.apache.camel.spi.DataFormatResolver dataFormatResolver) |
void |
setDataFormats(Map<String,DataFormatDefinition> dataFormats)
Sets the data formats that can be referenced in the routes.
|
void |
setDebugger(org.apache.camel.spi.Debugger debugger) |
<T> void |
setDefaultExtension(Class<T> type,
Supplier<T> module) |
void |
setDelayer(Long delay) |
void |
setErrorHandlerExecutorService(ScheduledExecutorService errorHandlerExecutorService) |
void |
setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory) |
void |
setExecutorServiceManager(org.apache.camel.spi.ExecutorServiceManager executorServiceManager) |
<T> void |
setExtension(Class<T> type,
T module) |
void |
setFactoryFinderResolver(org.apache.camel.spi.FactoryFinderResolver factoryFinderResolver) |
void |
setGlobalOptions(Map<String,String> globalOptions) |
void |
setHandleFault(Boolean handleFault) |
void |
setHeadersMapFactory(org.apache.camel.spi.HeadersMapFactory headersMapFactory) |
void |
setHystrixConfiguration(HystrixConfigurationDefinition configuration)
Sets the default Hystrix configuration
|
void |
setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations)
Sets the Hystrix configurations
|
void |
setInflightRepository(org.apache.camel.spi.InflightRepository repository) |
void |
setInitialization(AbstractCamelContext.Initialization initialization) |
void |
setInjector(org.apache.camel.spi.Injector injector) |
void |
setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies) |
void |
setLanguageResolver(org.apache.camel.spi.LanguageResolver languageResolver) |
void |
setLoadTypeConverters(Boolean loadTypeConverters) |
void |
setLogExhaustedMessageBody(Boolean logExhaustedMessageBody) |
void |
setLogMask(Boolean logMask) |
void |
setManagementMBeanAssembler(org.apache.camel.spi.ManagementMBeanAssembler managementMBeanAssembler) |
void |
setManagementName(String managementName) |
void |
setManagementNameStrategy(org.apache.camel.spi.ManagementNameStrategy managementNameStrategy) |
void |
setManagementStrategy(org.apache.camel.spi.ManagementStrategy managementStrategy) |
void |
setMessageHistory(Boolean messageHistory) |
void |
setMessageHistoryFactory(org.apache.camel.spi.MessageHistoryFactory messageHistoryFactory) |
void |
setModelJAXBContextFactory(org.apache.camel.spi.ModelJAXBContextFactory modelJAXBContextFactory) |
void |
setName(String name)
Sets the name of the this context.
|
void |
setNameStrategy(org.apache.camel.spi.CamelContextNameStrategy nameStrategy) |
void |
setNodeIdFactory(org.apache.camel.spi.NodeIdFactory idFactory) |
void |
setPackageScanClassResolver(org.apache.camel.spi.PackageScanClassResolver packageScanClassResolver) |
void |
setPollingConsumerServicePool(ServicePool<org.apache.camel.PollingConsumer> pollingConsumerServicePool) |
void |
setProcessorFactory(org.apache.camel.spi.ProcessorFactory processorFactory) |
void |
setProducerServicePool(ServicePool<org.apache.camel.Producer> producerServicePool) |
void |
setRegistry(org.apache.camel.spi.Registry registry) |
void |
setReloadStrategy(org.apache.camel.spi.ReloadStrategy reloadStrategy) |
void |
setRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration) |
void |
setRestRegistry(org.apache.camel.spi.RestRegistry restRegistry) |
void |
setRouteController(org.apache.camel.spi.RouteController routeController) |
void |
setRoutePolicyFactories(List<org.apache.camel.spi.RoutePolicyFactory> routePolicyFactories) |
void |
setRuntimeEndpointRegistry(org.apache.camel.spi.RuntimeEndpointRegistry runtimeEndpointRegistry) |
void |
setServiceCallConfiguration(ServiceCallConfigurationDefinition configuration)
Sets the default service call configuration
|
void |
setServiceCallConfigurations(List<ServiceCallConfigurationDefinition> configurations)
Sets the service call configurations
|
void |
setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute) |
void |
setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask) |
void |
setShutdownStrategy(org.apache.camel.spi.ShutdownStrategy shutdownStrategy) |
void |
setSSLContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters) |
void |
setStreamCaching(Boolean cache) |
void |
setStreamCachingStrategy(org.apache.camel.spi.StreamCachingStrategy streamCachingStrategy) |
void |
setTracing(Boolean tracing) |
void |
setTransformers(List<TransformerDefinition> transformers)
Sets the transformers that can be referenced in the routes.
|
void |
setTypeConverter(org.apache.camel.TypeConverter typeConverter) |
void |
setTypeConverterRegistry(org.apache.camel.spi.TypeConverterRegistry typeConverterRegistry) |
void |
setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled) |
void |
setUnitOfWorkFactory(org.apache.camel.spi.UnitOfWorkFactory unitOfWorkFactory) |
void |
setupManagement(Map<String,Object> options) |
void |
setupRoutes(boolean done) |
void |
setUseBreadcrumb(Boolean useBreadcrumb) |
void |
setUseDataType(Boolean useDataType) |
void |
setUseMDCLogging(Boolean useMDCLogging) |
void |
setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator) |
void |
setValidators(List<ValidatorDefinition> validators)
Sets the validators that can be referenced in the routes.
|
protected boolean |
shouldStartRoutes()
Should we start newly added routes?
|
void |
shutdown() |
protected void |
shutdownRouteService(RouteService routeService) |
void |
start() |
void |
startAllRoutes() |
void |
startRoute(RouteDefinition route) |
void |
startRoute(String routeId) |
protected void |
startRouteDefinitions(Collection<RouteDefinition> list) |
protected void |
startRouteService(RouteService routeService,
boolean addingRoutes)
Starts the given route service
|
void |
stop() |
void |
stopRoute(String routeId) |
void |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
boolean |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean abortAfterTimeout) |
protected void |
stopRouteService(RouteService routeService) |
protected void |
stopRouteService(RouteService routeService,
boolean removingRoutes) |
void |
suspend() |
void |
suspendRoute(String routeId) |
void |
suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
protected void |
suspendRouteService(RouteService routeService) |
String |
toString() |
doShutdown, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspendedpublic AbstractCamelContext()
CamelContext using DefaultRegistry as registry.
Use one of the other constructors to force use an explicit registry.public AbstractCamelContext(org.apache.camel.spi.Registry registry)
CamelContext using the given registryregistry - the registrypublic AbstractCamelContext(boolean init)
public void doInit()
doInit in class org.apache.camel.support.service.ServiceSupportpublic <T extends org.apache.camel.CamelContext> T adapt(Class<T> type)
adapt in interface org.apache.camel.CamelContextpublic <T> T getExtension(Class<T> type)
getExtension in interface org.apache.camel.CamelContextpublic <T> void setExtension(Class<T> type, T module)
setExtension in interface org.apache.camel.CamelContextpublic <T> void setDefaultExtension(Class<T> type, Supplier<T> module)
public boolean isVetoStarted()
isVetoStarted in interface org.apache.camel.CamelContextpublic AbstractCamelContext.Initialization getInitialization()
public void setInitialization(AbstractCamelContext.Initialization initialization)
public void setName(String name)
name - the namepublic org.apache.camel.spi.CamelContextNameStrategy getNameStrategy()
getNameStrategy in interface org.apache.camel.CamelContextpublic void setNameStrategy(org.apache.camel.spi.CamelContextNameStrategy nameStrategy)
setNameStrategy in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ManagementNameStrategy getManagementNameStrategy()
getManagementNameStrategy in interface org.apache.camel.CamelContextpublic void setManagementNameStrategy(org.apache.camel.spi.ManagementNameStrategy managementNameStrategy)
setManagementNameStrategy in interface org.apache.camel.CamelContextpublic String getManagementName()
getManagementName in interface org.apache.camel.CamelContextpublic void setManagementName(String managementName)
setManagementName in interface org.apache.camel.CamelContextpublic org.apache.camel.Component hasComponent(String componentName)
hasComponent in interface org.apache.camel.CamelContextpublic void addComponent(String componentName, org.apache.camel.Component component)
addComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component getComponent(String name)
getComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component getComponent(String name, boolean autoCreateComponents)
getComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component getComponent(String name, boolean autoCreateComponents, boolean autoStart)
getComponent in interface org.apache.camel.CamelContextpublic <T extends org.apache.camel.Component> T getComponent(String name, Class<T> componentType)
getComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.Component resolveComponent(String name)
public org.apache.camel.Component removeComponent(String componentName)
removeComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.EndpointRegistry<EndpointKey> getEndpointRegistry()
getEndpointRegistry in interface org.apache.camel.CamelContextpublic Collection<org.apache.camel.Endpoint> getEndpoints()
getEndpoints in interface org.apache.camel.CamelContextpublic Map<String,org.apache.camel.Endpoint> getEndpointMap()
getEndpointMap in interface org.apache.camel.CamelContextpublic org.apache.camel.Endpoint hasEndpoint(String uri)
hasEndpoint in interface org.apache.camel.CamelContextpublic org.apache.camel.Endpoint addEndpoint(String uri, org.apache.camel.Endpoint endpoint) throws Exception
addEndpoint in interface org.apache.camel.CamelContextExceptionpublic void removeEndpoint(org.apache.camel.Endpoint endpoint) throws Exception
removeEndpoint in interface org.apache.camel.CamelContextExceptionpublic Collection<org.apache.camel.Endpoint> removeEndpoints(String uri) throws Exception
removeEndpoints in interface org.apache.camel.CamelContextExceptionpublic org.apache.camel.Endpoint getEndpoint(String uri)
getEndpoint in interface org.apache.camel.CamelContextpublic <T extends org.apache.camel.Endpoint> T getEndpoint(String name, Class<T> endpointType)
getEndpoint in interface org.apache.camel.CamelContextpublic void addRegisterEndpointCallback(org.apache.camel.spi.EndpointStrategy strategy)
addRegisterEndpointCallback in interface org.apache.camel.CamelContextprotected org.apache.camel.Endpoint addEndpointToRegistry(String uri, org.apache.camel.Endpoint endpoint)
uri - uri of the endpointendpoint - the endpoint to addprotected static String normalizeEndpointUri(String uri)
uri - the uriorg.apache.camel.ResolveEndpointFailedException - if uri cannot be normalizedprotected EndpointKey getEndpointKey(String uri)
DefaultEndpointRegistryuri - the endpoint uriprotected EndpointKey getEndpointKeyPreNormalized(String uri)
DefaultEndpointRegistryuri - the endpoint uri which is pre normalizedprotected EndpointKey getEndpointKey(String uri, org.apache.camel.Endpoint endpoint)
DefaultEndpointRegistryuri - the endpoint uriendpoint - the endpointpublic void setRouteController(org.apache.camel.spi.RouteController routeController)
setRouteController in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RouteController getRouteController()
getRouteController in interface org.apache.camel.CamelContextpublic List<org.apache.camel.spi.RouteStartupOrder> getRouteStartupOrder()
getRouteStartupOrder in interface org.apache.camel.CamelContextpublic List<org.apache.camel.Route> getRoutes()
getRoutes in interface org.apache.camel.CamelContextpublic org.apache.camel.Route getRoute(String id)
getRoute in interface org.apache.camel.CamelContextpublic org.apache.camel.Processor getProcessor(String id)
getProcessor in interface org.apache.camel.CamelContextpublic <T extends org.apache.camel.Processor> T getProcessor(String id, Class<T> type)
getProcessor in interface org.apache.camel.CamelContextpublic ProcessorDefinition getProcessorDefinition(String id)
ModelCamelContextgetProcessorDefinition in interface ModelCamelContextid - id of the processor definitionpublic <T extends ProcessorDefinition> T getProcessorDefinition(String id, Class<T> type)
ModelCamelContextgetProcessorDefinition in interface ModelCamelContextid - id of the processor definitiontype - the processor definition typepublic void addRoutes(org.apache.camel.RoutesBuilder builder) throws Exception
addRoutes in interface org.apache.camel.CamelContextExceptionpublic void addRouteDefinitions(InputStream is) throws Exception
ModelCamelContextCamelContext must have an unique route id.
If you use the API from CamelContext or ModelCamelContext to add routes, then any
new routes which has a route id that matches an old route, then the old route is replaced by the new route.addRouteDefinitions in interface ModelCamelContextis - input stream with the route(s) definition to addException - if the route definitions could not be created for whatever reasonpublic void addRouteDefinitions(Collection<RouteDefinition> routeDefinitions) throws Exception
ModelCamelContextCamelContext must have an unique route id.
If you use the API from CamelContext or ModelCamelContext to add routes, then any
new routes which has a route id that matches an old route, then the old route is replaced by the new route.addRouteDefinitions in interface ModelCamelContextrouteDefinitions - the route(s) definition to addException - if the route definitions could not be created for whatever reasonpublic void addRouteDefinition(RouteDefinition routeDefinition) throws Exception
ModelCamelContextCamelContext must have an unique route id.
If you use the API from CamelContext or ModelCamelContext to add routes, then any
new routes which has a route id that matches an old route, then the old route is replaced by the new route.addRouteDefinition in interface ModelCamelContextrouteDefinition - the route definition to addException - if the route definition could not be created for whatever reasonprotected boolean removeRouteDefinition(String key)
public void removeRouteDefinitions(Collection<RouteDefinition> routeDefinitions) throws Exception
ModelCamelContextremoveRouteDefinitions in interface ModelCamelContextrouteDefinitions - route(s) definitions to removeException - if the route definitions could not be removed for whatever reasonpublic void removeRouteDefinition(RouteDefinition routeDefinition) throws Exception
ModelCamelContextremoveRouteDefinition in interface ModelCamelContextrouteDefinition - route definition to removeException - if the route definition could not be removed for whatever reasonpublic org.apache.camel.ServiceStatus getRouteStatus(String key)
public void startRoute(RouteDefinition route) throws Exception
Exceptionpublic boolean isStartingRoutes()
public boolean isSetupRoutes()
isSetupRoutes in interface org.apache.camel.CamelContextpublic void startAllRoutes() throws Exception
Exceptionpublic void startRoute(String routeId) throws Exception
Exceptionpublic void resumeRoute(String routeId) throws Exception
Exceptionpublic boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
Exceptionpublic void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exceptionprotected void doShutdownRoute(String routeId, long timeout, TimeUnit timeUnit, boolean removingRoutes) throws Exception
Exceptionpublic boolean removeRoute(String routeId) throws Exception
removeRoute in interface org.apache.camel.CamelContextExceptionpublic void suspendRoute(String routeId) throws Exception
Exceptionpublic void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exceptionpublic void addService(Object object) throws Exception
addService in interface org.apache.camel.CamelContextExceptionpublic void addService(Object object, boolean stopOnShutdown) throws Exception
addService in interface org.apache.camel.CamelContextExceptionpublic void addService(Object object, boolean stopOnShutdown, boolean forceStart) throws Exception
addService in interface org.apache.camel.CamelContextExceptionprotected <T> T doAddService(T object)
protected <T> T doAddService(T object, boolean stopOnShutdown)
protected <T> T doAddService(T object, boolean stopOnShutdown, boolean forceStart)
public boolean removeService(Object object) throws Exception
removeService in interface org.apache.camel.CamelContextExceptionpublic boolean hasService(Object object)
hasService in interface org.apache.camel.CamelContextpublic <T> T hasService(Class<T> type)
hasService in interface org.apache.camel.CamelContextpublic <T> Set<T> hasServices(Class<T> type)
hasServices in interface org.apache.camel.CamelContextpublic void deferStartService(Object object, boolean stopOnShutdown) throws Exception
deferStartService in interface org.apache.camel.CamelContextExceptionpublic void addStartupListener(org.apache.camel.StartupListener listener) throws Exception
addStartupListener in interface org.apache.camel.CamelContextExceptionpublic String resolveComponentDefaultName(String javaType)
resolveComponentDefaultName in interface org.apache.camel.CatalogCamelContextpublic Map<String,Properties> findComponents() throws org.apache.camel.LoadPropertiesException, IOException
findComponents in interface org.apache.camel.CatalogCamelContextorg.apache.camel.LoadPropertiesExceptionIOExceptionpublic Map<String,Properties> findEips() throws org.apache.camel.LoadPropertiesException, IOException
findEips in interface org.apache.camel.CatalogCamelContextorg.apache.camel.LoadPropertiesExceptionIOExceptionpublic String getComponentParameterJsonSchema(String componentName) throws IOException
getComponentParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionpublic String getDataFormatParameterJsonSchema(String dataFormatName) throws IOException
getDataFormatParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionpublic String getLanguageParameterJsonSchema(String languageName) throws IOException
getLanguageParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionpublic String getEipParameterJsonSchema(String eipName) throws IOException
getEipParameterJsonSchema in interface org.apache.camel.CatalogCamelContextIOExceptionpublic String explainEipJson(String nameOrId, boolean includeAllOptions)
explainEipJson in interface org.apache.camel.CatalogCamelContextpublic String explainDataFormatJson(String dataFormatName, org.apache.camel.spi.DataFormat dataFormat, boolean includeAllOptions)
explainDataFormatJson in interface org.apache.camel.CatalogCamelContextpublic String explainComponentJson(String componentName, boolean includeAllOptions)
explainComponentJson in interface org.apache.camel.CatalogCamelContextpublic String explainEndpointJson(String uri, boolean includeAllOptions)
explainEndpointJson in interface org.apache.camel.CatalogCamelContextpublic String createRouteStaticEndpointJson(String routeId)
createRouteStaticEndpointJson in interface org.apache.camel.CatalogCamelContextpublic String createRouteStaticEndpointJson(String routeId, boolean includeDynamic)
createRouteStaticEndpointJson in interface org.apache.camel.CatalogCamelContextpublic org.apache.camel.spi.Language resolveLanguage(String language)
resolveLanguage in interface org.apache.camel.CamelContextpublic String getPropertyPrefixToken()
getPropertyPrefixToken in interface org.apache.camel.CamelContextpublic String getPropertySuffixToken()
getPropertySuffixToken in interface org.apache.camel.CamelContextpublic String resolvePropertyPlaceholders(String text) throws Exception
resolvePropertyPlaceholders in interface org.apache.camel.CamelContextExceptionpublic org.apache.camel.TypeConverter getTypeConverter()
getTypeConverter in interface org.apache.camel.CamelContextpublic void setTypeConverter(org.apache.camel.TypeConverter typeConverter)
public org.apache.camel.spi.TypeConverterRegistry getTypeConverterRegistry()
getTypeConverterRegistry in interface org.apache.camel.CamelContextpublic void setTypeConverterRegistry(org.apache.camel.spi.TypeConverterRegistry typeConverterRegistry)
setTypeConverterRegistry in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Injector getInjector()
getInjector in interface org.apache.camel.CamelContextpublic void setInjector(org.apache.camel.spi.Injector injector)
public org.apache.camel.spi.CamelBeanPostProcessor getBeanPostProcessor()
getBeanPostProcessor in interface org.apache.camel.CamelContextpublic void setBeanPostProcessor(org.apache.camel.spi.CamelBeanPostProcessor beanPostProcessor)
public org.apache.camel.spi.ManagementMBeanAssembler getManagementMBeanAssembler()
getManagementMBeanAssembler in interface org.apache.camel.CamelContextpublic void setManagementMBeanAssembler(org.apache.camel.spi.ManagementMBeanAssembler managementMBeanAssembler)
public org.apache.camel.spi.ComponentResolver getComponentResolver()
public void setComponentResolver(org.apache.camel.spi.ComponentResolver componentResolver)
public org.apache.camel.spi.LanguageResolver getLanguageResolver()
public void setLanguageResolver(org.apache.camel.spi.LanguageResolver languageResolver)
public boolean isAutoCreateComponents()
public void setAutoCreateComponents(boolean autoCreateComponents)
public org.apache.camel.spi.Registry getRegistry()
getRegistry in interface org.apache.camel.CamelContextpublic <T> T getRegistry(Class<T> type)
getRegistry in interface org.apache.camel.CamelContextpublic void setRegistry(org.apache.camel.spi.Registry registry)
public List<org.apache.camel.spi.LifecycleStrategy> getLifecycleStrategies()
getLifecycleStrategies in interface org.apache.camel.CamelContextpublic void addLifecycleStrategy(org.apache.camel.spi.LifecycleStrategy lifecycleStrategy)
addLifecycleStrategy in interface org.apache.camel.CamelContextpublic void setupRoutes(boolean done)
setupRoutes in interface org.apache.camel.CamelContextpublic List<RouteDefinition> getRouteDefinitions()
ModelCamelContextgetRouteDefinitions in interface ModelCamelContextpublic RouteDefinition getRouteDefinition(String id)
ModelCamelContextgetRouteDefinition in interface ModelCamelContextid - id of the routepublic List<RestDefinition> getRestDefinitions()
ModelCamelContextgetRestDefinitions in interface ModelCamelContextpublic void addRestDefinitions(InputStream is, boolean addToRoutes) throws Exception
ModelCamelContextaddRestDefinitions in interface ModelCamelContextis - input stream with the rest(s) definition to addaddToRoutes - whether the rests should also automatically be added as routesException - if the rest definitions could not be created for whatever reasonpublic void addRestDefinitions(Collection<RestDefinition> restDefinitions, boolean addToRoutes) throws Exception
ModelCamelContextaddRestDefinitions in interface ModelCamelContextrestDefinitions - the rest(s) definition to addaddToRoutes - whether the rests should also automatically be added as routesException - if the rest definitions could not be created for whatever reasonpublic org.apache.camel.spi.RestConfiguration getRestConfiguration()
getRestConfiguration in interface org.apache.camel.CamelContextpublic void setRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration)
setRestConfiguration in interface org.apache.camel.CamelContextpublic Collection<org.apache.camel.spi.RestConfiguration> getRestConfigurations()
getRestConfigurations in interface org.apache.camel.CamelContextpublic void addRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration)
addRestConfiguration in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RestConfiguration getRestConfiguration(String component, boolean defaultIfNotExist)
getRestConfiguration in interface org.apache.camel.CamelContextpublic ServiceCallConfigurationDefinition getServiceCallConfiguration(String serviceName)
ModelCamelContextgetServiceCallConfiguration in interface ModelCamelContextserviceName - name of service, or null to return the default configurationpublic void setServiceCallConfiguration(ServiceCallConfigurationDefinition configuration)
ModelCamelContextsetServiceCallConfiguration in interface ModelCamelContextconfiguration - the configurationpublic void setServiceCallConfigurations(List<ServiceCallConfigurationDefinition> configurations)
ModelCamelContextsetServiceCallConfigurations in interface ModelCamelContextconfigurations - the configuration listpublic void addServiceCallConfiguration(String serviceName, ServiceCallConfigurationDefinition configuration)
ModelCamelContextaddServiceCallConfiguration in interface ModelCamelContextserviceName - name of the serviceconfiguration - the configurationpublic HystrixConfigurationDefinition getHystrixConfiguration(String id)
ModelCamelContextgetHystrixConfiguration in interface ModelCamelContextid - id of the configuration, or null to return the default configurationpublic void setHystrixConfiguration(HystrixConfigurationDefinition configuration)
ModelCamelContextsetHystrixConfiguration in interface ModelCamelContextconfiguration - the configurationpublic void setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations)
ModelCamelContextsetHystrixConfigurations in interface ModelCamelContextconfigurations - the configuration listpublic void addHystrixConfiguration(String id, HystrixConfigurationDefinition configuration)
ModelCamelContextaddHystrixConfiguration in interface ModelCamelContextid - name of the configurationconfiguration - the configurationpublic List<org.apache.camel.spi.InterceptStrategy> getInterceptStrategies()
getInterceptStrategies in interface org.apache.camel.CamelContextpublic void setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies)
public void addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy)
addInterceptStrategy in interface org.apache.camel.CamelContextpublic List<org.apache.camel.spi.RoutePolicyFactory> getRoutePolicyFactories()
getRoutePolicyFactories in interface org.apache.camel.CamelContextpublic void setRoutePolicyFactories(List<org.apache.camel.spi.RoutePolicyFactory> routePolicyFactories)
public void addRoutePolicyFactory(org.apache.camel.spi.RoutePolicyFactory routePolicyFactory)
addRoutePolicyFactory in interface org.apache.camel.CamelContextpublic Set<org.apache.camel.spi.LogListener> getLogListeners()
getLogListeners in interface org.apache.camel.CamelContextpublic void addLogListener(org.apache.camel.spi.LogListener listener)
addLogListener in interface org.apache.camel.CamelContextpublic void setStreamCaching(Boolean cache)
setStreamCaching in interface org.apache.camel.RuntimeConfigurationpublic Boolean isStreamCaching()
isStreamCaching in interface org.apache.camel.RuntimeConfigurationpublic void setTracing(Boolean tracing)
setTracing in interface org.apache.camel.RuntimeConfigurationpublic Boolean isTracing()
isTracing in interface org.apache.camel.RuntimeConfigurationpublic Boolean isMessageHistory()
isMessageHistory in interface org.apache.camel.RuntimeConfigurationpublic void setMessageHistory(Boolean messageHistory)
setMessageHistory in interface org.apache.camel.RuntimeConfigurationpublic void setLogMask(Boolean logMask)
setLogMask in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLogMask()
isLogMask in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLogExhaustedMessageBody()
isLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic void setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
setLogExhaustedMessageBody in interface org.apache.camel.RuntimeConfigurationpublic Boolean isHandleFault()
isHandleFault in interface org.apache.camel.RuntimeConfigurationpublic void setHandleFault(Boolean handleFault)
setHandleFault in interface org.apache.camel.RuntimeConfigurationpublic Long getDelayer()
getDelayer in interface org.apache.camel.RuntimeConfigurationpublic void setDelayer(Long delay)
setDelayer in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ProducerTemplate createProducerTemplate()
createProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.ProducerTemplate createProducerTemplate(int maximumCacheSize)
createProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.FluentProducerTemplate createFluentProducerTemplate()
createFluentProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.FluentProducerTemplate createFluentProducerTemplate(int maximumCacheSize)
createFluentProducerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.ConsumerTemplate createConsumerTemplate()
createConsumerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.ConsumerTemplate createConsumerTemplate(int maximumCacheSize)
createConsumerTemplate in interface org.apache.camel.CamelContextpublic org.apache.camel.AsyncProcessor createMulticast(Collection<org.apache.camel.Processor> processors, ExecutorService executor, boolean shutdownExecutorService)
createMulticast in interface org.apache.camel.CamelContextpublic ErrorHandlerBuilder getErrorHandlerFactory()
getErrorHandlerFactory in interface org.apache.camel.CamelContextpublic void setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory)
setErrorHandlerFactory in interface org.apache.camel.CamelContextpublic ScheduledExecutorService getErrorHandlerExecutorService()
getErrorHandlerExecutorService in interface org.apache.camel.CamelContextprotected ScheduledExecutorService createErrorHandlerExecutorService()
public void setErrorHandlerExecutorService(ScheduledExecutorService errorHandlerExecutorService)
public void setProducerServicePool(ServicePool<org.apache.camel.Producer> producerServicePool)
public ServicePool<org.apache.camel.Producer> getProducerServicePool()
public ServicePool<org.apache.camel.PollingConsumer> getPollingConsumerServicePool()
public void setPollingConsumerServicePool(ServicePool<org.apache.camel.PollingConsumer> pollingConsumerServicePool)
public org.apache.camel.spi.UnitOfWorkFactory getUnitOfWorkFactory()
getUnitOfWorkFactory in interface org.apache.camel.CamelContextpublic void setUnitOfWorkFactory(org.apache.camel.spi.UnitOfWorkFactory unitOfWorkFactory)
setUnitOfWorkFactory in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RuntimeEndpointRegistry getRuntimeEndpointRegistry()
getRuntimeEndpointRegistry in interface org.apache.camel.CamelContextpublic void setRuntimeEndpointRegistry(org.apache.camel.spi.RuntimeEndpointRegistry runtimeEndpointRegistry)
setRuntimeEndpointRegistry in interface org.apache.camel.CamelContextpublic String getUptime()
getUptime in interface org.apache.camel.CamelContextpublic long getUptimeMillis()
getUptimeMillis in interface org.apache.camel.CamelContextpublic String getVersion()
getVersion in interface org.apache.camel.CamelContextprotected void doSuspend() throws Exception
doSuspend in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doResume() throws Exception
doResume in class org.apache.camel.support.service.ServiceSupportExceptionpublic void start() throws Exception
start in interface org.apache.camel.CamelContextstart in interface org.apache.camel.Servicestart in class org.apache.camel.support.service.ServiceSupportExceptionpublic void stop() throws Exception
stop in interface org.apache.camel.CamelContextstop in interface org.apache.camel.Servicestop in class org.apache.camel.support.service.ServiceSupportExceptionpublic void suspend() throws Exception
suspend in interface org.apache.camel.SuspendableServicesuspend in class org.apache.camel.support.service.ServiceSupportExceptionpublic void resume() throws Exception
resume in interface org.apache.camel.SuspendableServiceresume in class org.apache.camel.support.service.ServiceSupportExceptionpublic void shutdown() throws Exception
shutdown in interface org.apache.camel.ShutdownableServiceshutdown in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStart() throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStartCamel() throws Exception
Exceptionprotected void doStop() throws Exception
doStop in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStartOrResumeRoutes(Map<String,RouteService> routeServices, boolean checkClash, boolean startConsumer, boolean resumeConsumer, boolean addingRoutes) throws Exception
routeServices - the routes to start (will only start a route if its not already started)checkClash - whether to check for startup ordering clashstartConsumer - whether the route consumer should be started. Can be used to warmup the route without starting the consumer.resumeConsumer - whether the route consumer should be resumed.addingRoutes - whether we are adding new routesException - is thrown if error starting routesprotected boolean routeSupportsSuspension(String routeId)
protected void startRouteDefinitions(Collection<RouteDefinition> list) throws Exception
Exceptionprotected void startRouteService(RouteService routeService, boolean addingRoutes) throws Exception
Exceptionprotected void resumeRouteService(RouteService routeService) throws Exception
Exceptionprotected void stopRouteService(RouteService routeService, boolean removingRoutes) throws Exception
Exceptionprotected void logRouteState(org.apache.camel.Route route, String state)
protected void stopRouteService(RouteService routeService) throws Exception
Exceptionprotected void shutdownRouteService(RouteService routeService) throws Exception
Exceptionprotected void suspendRouteService(RouteService routeService) throws Exception
Exceptionprotected void safelyStartRouteServices(boolean checkClash, boolean startConsumer, boolean resumeConsumer, boolean addingRoutes, Collection<RouteService> routeServices) throws Exception
checkClash - whether to check for startup order clashstartConsumer - whether the route consumer should be started. Can be used to warmup the route without starting the consumer.resumeConsumer - whether the route consumer should be resumed.addingRoutes - whether we are adding new routesrouteServices - the routesException - is thrown if error starting the routesprotected void safelyStartRouteServices(boolean forceAutoStart, boolean checkClash, boolean startConsumer, boolean resumeConsumer, boolean addingRoutes, RouteService... routeServices) throws Exception
protected void forceLazyInitialization()
protected void forceStopLazyInitialization()
protected org.apache.camel.Endpoint createEndpoint(String uri)
Registryuri - the uri for the endpoint to be createdprotected org.apache.camel.Endpoint convertBeanToEndpoint(String uri, Object bean)
Registry to an endpoint using
some kind of transformation or wrapperuri - the uri for the endpoint (and name in the registry)bean - the bean to be converted to an endpoint, which will be not nullprotected boolean shouldStartRoutes()
public org.apache.camel.spi.PropertiesComponent getPropertiesComponent()
getPropertiesComponent in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.PropertiesComponent getPropertiesComponent(boolean autoCreate)
getPropertiesComponent in interface org.apache.camel.CamelContextpublic void setDataFormats(Map<String,DataFormatDefinition> dataFormats)
ModelCamelContextsetDataFormats in interface ModelCamelContextdataFormats - the data formatspublic Map<String,DataFormatDefinition> getDataFormats()
ModelCamelContextgetDataFormats in interface ModelCamelContextpublic Map<String,String> getGlobalOptions()
getGlobalOptions in interface org.apache.camel.CamelContextpublic void setGlobalOptions(Map<String,String> globalOptions)
setGlobalOptions in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.FactoryFinder getDefaultFactoryFinder()
getDefaultFactoryFinder in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.FactoryFinderResolver getFactoryFinderResolver()
public void setFactoryFinderResolver(org.apache.camel.spi.FactoryFinderResolver factoryFinderResolver)
setFactoryFinderResolver in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.FactoryFinder getFactoryFinder(String path) throws org.apache.camel.NoFactoryAvailableException
getFactoryFinder in interface org.apache.camel.CamelContextorg.apache.camel.NoFactoryAvailableExceptionprotected org.apache.camel.spi.FactoryFinder createFactoryFinder(String path)
public org.apache.camel.spi.ClassResolver getClassResolver()
getClassResolver in interface org.apache.camel.CamelContextpublic void setClassResolver(org.apache.camel.spi.ClassResolver classResolver)
setClassResolver in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.PackageScanClassResolver getPackageScanClassResolver()
getPackageScanClassResolver in interface org.apache.camel.CamelContextpublic void setPackageScanClassResolver(org.apache.camel.spi.PackageScanClassResolver packageScanClassResolver)
setPackageScanClassResolver in interface org.apache.camel.CamelContextpublic List<String> getComponentNames()
getComponentNames in interface org.apache.camel.CamelContextpublic List<String> getLanguageNames()
getLanguageNames in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ModelJAXBContextFactory getModelJAXBContextFactory()
getModelJAXBContextFactory in interface org.apache.camel.CamelContextpublic void setModelJAXBContextFactory(org.apache.camel.spi.ModelJAXBContextFactory modelJAXBContextFactory)
setModelJAXBContextFactory in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.NodeIdFactory getNodeIdFactory()
getNodeIdFactory in interface org.apache.camel.CamelContextpublic void setNodeIdFactory(org.apache.camel.spi.NodeIdFactory idFactory)
setNodeIdFactory in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ManagementStrategy getManagementStrategy()
getManagementStrategy in interface org.apache.camel.CamelContextpublic void setManagementStrategy(org.apache.camel.spi.ManagementStrategy managementStrategy)
setManagementStrategy in interface org.apache.camel.CamelContextpublic void disableJMX()
disableJMX in interface org.apache.camel.CamelContextpublic boolean isJMXDisabled()
public void setupManagement(Map<String,Object> options)
setupManagement in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.InflightRepository getInflightRepository()
getInflightRepository in interface org.apache.camel.CamelContextpublic void setInflightRepository(org.apache.camel.spi.InflightRepository repository)
setInflightRepository in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.AsyncProcessorAwaitManager getAsyncProcessorAwaitManager()
getAsyncProcessorAwaitManager in interface org.apache.camel.CamelContextpublic void setAsyncProcessorAwaitManager(org.apache.camel.spi.AsyncProcessorAwaitManager asyncProcessorAwaitManager)
setAsyncProcessorAwaitManager in interface org.apache.camel.CamelContextpublic void setAutoStartup(Boolean autoStartup)
setAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic Boolean isAutoStartup()
isAutoStartup in interface org.apache.camel.RuntimeConfigurationpublic Boolean isLoadTypeConverters()
isLoadTypeConverters in interface org.apache.camel.CamelContextpublic void setLoadTypeConverters(Boolean loadTypeConverters)
setLoadTypeConverters in interface org.apache.camel.CamelContextpublic Boolean isTypeConverterStatisticsEnabled()
isTypeConverterStatisticsEnabled in interface org.apache.camel.CamelContextpublic void setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled)
setTypeConverterStatisticsEnabled in interface org.apache.camel.CamelContextpublic Boolean isUseMDCLogging()
isUseMDCLogging in interface org.apache.camel.CamelContextpublic void setUseMDCLogging(Boolean useMDCLogging)
setUseMDCLogging in interface org.apache.camel.CamelContextpublic Boolean isUseDataType()
isUseDataType in interface org.apache.camel.CamelContextpublic void setUseDataType(Boolean useDataType)
setUseDataType in interface org.apache.camel.CamelContextpublic Boolean isUseBreadcrumb()
isUseBreadcrumb in interface org.apache.camel.CamelContextpublic void setUseBreadcrumb(Boolean useBreadcrumb)
setUseBreadcrumb in interface org.apache.camel.CamelContextpublic ClassLoader getApplicationContextClassLoader()
getApplicationContextClassLoader in interface org.apache.camel.CamelContextpublic void setApplicationContextClassLoader(ClassLoader classLoader)
setApplicationContextClassLoader in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.DataFormatResolver getDataFormatResolver()
getDataFormatResolver in interface org.apache.camel.CamelContextpublic void setDataFormatResolver(org.apache.camel.spi.DataFormatResolver dataFormatResolver)
setDataFormatResolver in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.DataFormat resolveDataFormat(String name)
resolveDataFormat in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.DataFormat createDataFormat(String name)
createDataFormat in interface org.apache.camel.CamelContextpublic DataFormatDefinition resolveDataFormatDefinition(String name)
ModelCamelContextresolveDataFormatDefinition in interface ModelCamelContextname - the data format definition name or a reference to it in the Registrypublic org.apache.camel.spi.ShutdownStrategy getShutdownStrategy()
getShutdownStrategy in interface org.apache.camel.CamelContextpublic void setShutdownStrategy(org.apache.camel.spi.ShutdownStrategy shutdownStrategy)
setShutdownStrategy in interface org.apache.camel.CamelContextpublic org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
setShutdownRoute in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask in interface org.apache.camel.RuntimeConfigurationpublic void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
setShutdownRunningTask in interface org.apache.camel.RuntimeConfigurationpublic void setAllowUseOriginalMessage(Boolean allowUseOriginalMessage)
setAllowUseOriginalMessage in interface org.apache.camel.RuntimeConfigurationpublic Boolean isAllowUseOriginalMessage()
isAllowUseOriginalMessage in interface org.apache.camel.RuntimeConfigurationpublic org.apache.camel.spi.ExecutorServiceManager getExecutorServiceManager()
getExecutorServiceManager in interface org.apache.camel.CamelContextpublic void setExecutorServiceManager(org.apache.camel.spi.ExecutorServiceManager executorServiceManager)
setExecutorServiceManager in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ProcessorFactory getProcessorFactory()
getProcessorFactory in interface org.apache.camel.CamelContextpublic void setProcessorFactory(org.apache.camel.spi.ProcessorFactory processorFactory)
setProcessorFactory in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.MessageHistoryFactory getMessageHistoryFactory()
getMessageHistoryFactory in interface org.apache.camel.CamelContextpublic void setMessageHistoryFactory(org.apache.camel.spi.MessageHistoryFactory messageHistoryFactory)
setMessageHistoryFactory in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Debugger getDebugger()
getDebugger in interface org.apache.camel.CamelContextpublic void setDebugger(org.apache.camel.spi.Debugger debugger)
setDebugger in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.UuidGenerator getUuidGenerator()
getUuidGenerator in interface org.apache.camel.CamelContextpublic void setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator)
setUuidGenerator in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.StreamCachingStrategy getStreamCachingStrategy()
getStreamCachingStrategy in interface org.apache.camel.CamelContextpublic void setStreamCachingStrategy(org.apache.camel.spi.StreamCachingStrategy streamCachingStrategy)
setStreamCachingStrategy in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.RestRegistry getRestRegistry()
getRestRegistry in interface org.apache.camel.CamelContextpublic void setRestRegistry(org.apache.camel.spi.RestRegistry restRegistry)
setRestRegistry in interface org.apache.camel.CamelContextpublic String getGlobalOption(String key)
getGlobalOption in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ReloadStrategy getReloadStrategy()
getReloadStrategy in interface org.apache.camel.CamelContextpublic void setReloadStrategy(org.apache.camel.spi.ReloadStrategy reloadStrategy)
setReloadStrategy in interface org.apache.camel.CamelContextpublic void setTransformers(List<TransformerDefinition> transformers)
ModelCamelContextsetTransformers in interface ModelCamelContexttransformers - the transformerspublic List<TransformerDefinition> getTransformers()
ModelCamelContextgetTransformers in interface ModelCamelContextpublic org.apache.camel.spi.Transformer resolveTransformer(String scheme)
resolveTransformer in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.Transformer resolveTransformer(org.apache.camel.spi.DataType from, org.apache.camel.spi.DataType to)
resolveTransformer in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.TransformerRegistry<TransformerKey> getTransformerRegistry()
getTransformerRegistry in interface org.apache.camel.CamelContextpublic void setValidators(List<ValidatorDefinition> validators)
ModelCamelContextsetValidators in interface ModelCamelContextvalidators - the validatorspublic List<ValidatorDefinition> getValidators()
ModelCamelContextgetValidators in interface ModelCamelContextpublic org.apache.camel.spi.Validator resolveValidator(org.apache.camel.spi.DataType type)
resolveValidator in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.ValidatorRegistry<org.apache.camel.impl.validator.ValidatorKey> getValidatorRegistry()
getValidatorRegistry in interface org.apache.camel.CamelContextpublic void setSSLContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
setSSLContextParameters in interface org.apache.camel.CamelContextpublic org.apache.camel.support.jsse.SSLContextParameters getSSLContextParameters()
getSSLContextParameters in interface org.apache.camel.CamelContextpublic org.apache.camel.spi.HeadersMapFactory getHeadersMapFactory()
getHeadersMapFactory in interface org.apache.camel.CamelContextpublic void setHeadersMapFactory(org.apache.camel.spi.HeadersMapFactory headersMapFactory)
setHeadersMapFactory in interface org.apache.camel.CamelContextprotected Map<String,RouteService> getRouteServices()
public static void setContextCounter(int value)
value - new value for the context counterprotected abstract org.apache.camel.spi.StreamCachingStrategy createStreamCachingStrategy()
protected abstract org.apache.camel.TypeConverter createTypeConverter()
protected abstract org.apache.camel.spi.TypeConverterRegistry createTypeConverterRegistry()
protected abstract org.apache.camel.spi.Injector createInjector()
protected abstract org.apache.camel.spi.CamelBeanPostProcessor createBeanPostProcessor()
protected abstract org.apache.camel.spi.ComponentResolver createComponentResolver()
protected abstract org.apache.camel.spi.Registry createRegistry()
protected abstract org.apache.camel.spi.UuidGenerator createUuidGenerator()
protected abstract org.apache.camel.spi.ModelJAXBContextFactory createModelJAXBContextFactory()
protected abstract org.apache.camel.spi.NodeIdFactory createNodeIdFactory()
protected abstract org.apache.camel.spi.FactoryFinderResolver createFactoryFinderResolver()
protected abstract org.apache.camel.spi.ClassResolver createClassResolver()
protected abstract org.apache.camel.spi.ProcessorFactory createProcessorFactory()
protected abstract org.apache.camel.spi.DataFormatResolver createDataFormatResolver()
protected abstract org.apache.camel.spi.MessageHistoryFactory createMessageHistoryFactory()
protected abstract org.apache.camel.spi.InflightRepository createInflightRepository()
protected abstract org.apache.camel.spi.AsyncProcessorAwaitManager createAsyncProcessorAwaitManager()
protected abstract org.apache.camel.spi.RouteController createRouteController()
protected abstract org.apache.camel.health.HealthCheckRegistry createHealthCheckRegistry()
protected abstract org.apache.camel.spi.ShutdownStrategy createShutdownStrategy()
protected abstract org.apache.camel.spi.PackageScanClassResolver createPackageScanClassResolver()
protected abstract org.apache.camel.spi.ExecutorServiceManager createExecutorServiceManager()
protected abstract ServicePool<org.apache.camel.Producer> createProducerServicePool()
protected abstract ServicePool<org.apache.camel.PollingConsumer> createPollingConsumerServicePool()
protected abstract org.apache.camel.spi.UnitOfWorkFactory createUnitOfWorkFactory()
protected abstract org.apache.camel.runtimecatalog.RuntimeCamelCatalog createRuntimeCamelCatalog()
protected abstract org.apache.camel.spi.CamelContextNameStrategy createCamelContextNameStrategy()
protected abstract org.apache.camel.spi.ManagementNameStrategy createManagementNameStrategy()
protected abstract org.apache.camel.spi.HeadersMapFactory createHeadersMapFactory()
protected abstract org.apache.camel.spi.LanguageResolver createLanguageResolver()
protected abstract org.apache.camel.spi.RestRegistry createRestRegistry()
protected abstract org.apache.camel.spi.EndpointRegistry<EndpointKey> createEndpointRegistry(Map<EndpointKey,org.apache.camel.Endpoint> endpoints)
protected abstract org.apache.camel.spi.ValidatorRegistry<org.apache.camel.impl.validator.ValidatorKey> createValidatorRegistry(List<ValidatorDefinition> validators) throws Exception
Exceptionprotected abstract org.apache.camel.spi.TransformerRegistry<TransformerKey> createTransformerRegistry(List<TransformerDefinition> transformers) throws Exception
ExceptionApache Camel