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, isSuspendingOrSuspended
public 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.ServiceSupport
public <T extends org.apache.camel.CamelContext> T adapt(Class<T> type)
adapt
in interface org.apache.camel.CamelContext
public <T> T getExtension(Class<T> type)
getExtension
in interface org.apache.camel.CamelContext
public <T> void setExtension(Class<T> type, T module)
setExtension
in interface org.apache.camel.CamelContext
public <T> void setDefaultExtension(Class<T> type, Supplier<T> module)
public boolean isVetoStarted()
isVetoStarted
in interface org.apache.camel.CamelContext
public 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.CamelContext
public void setNameStrategy(org.apache.camel.spi.CamelContextNameStrategy nameStrategy)
setNameStrategy
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.ManagementNameStrategy getManagementNameStrategy()
getManagementNameStrategy
in interface org.apache.camel.CamelContext
public void setManagementNameStrategy(org.apache.camel.spi.ManagementNameStrategy managementNameStrategy)
setManagementNameStrategy
in interface org.apache.camel.CamelContext
public String getManagementName()
getManagementName
in interface org.apache.camel.CamelContext
public void setManagementName(String managementName)
setManagementName
in interface org.apache.camel.CamelContext
public org.apache.camel.Component hasComponent(String componentName)
hasComponent
in interface org.apache.camel.CamelContext
public void addComponent(String componentName, org.apache.camel.Component component)
addComponent
in interface org.apache.camel.CamelContext
public org.apache.camel.Component getComponent(String name)
getComponent
in interface org.apache.camel.CamelContext
public org.apache.camel.Component getComponent(String name, boolean autoCreateComponents)
getComponent
in interface org.apache.camel.CamelContext
public org.apache.camel.Component getComponent(String name, boolean autoCreateComponents, boolean autoStart)
getComponent
in interface org.apache.camel.CamelContext
public <T extends org.apache.camel.Component> T getComponent(String name, Class<T> componentType)
getComponent
in interface org.apache.camel.CamelContext
public org.apache.camel.Component resolveComponent(String name)
public org.apache.camel.Component removeComponent(String componentName)
removeComponent
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.EndpointRegistry<EndpointKey> getEndpointRegistry()
getEndpointRegistry
in interface org.apache.camel.CamelContext
public Collection<org.apache.camel.Endpoint> getEndpoints()
getEndpoints
in interface org.apache.camel.CamelContext
public Map<String,org.apache.camel.Endpoint> getEndpointMap()
getEndpointMap
in interface org.apache.camel.CamelContext
public org.apache.camel.Endpoint hasEndpoint(String uri)
hasEndpoint
in interface org.apache.camel.CamelContext
public org.apache.camel.Endpoint addEndpoint(String uri, org.apache.camel.Endpoint endpoint) throws Exception
addEndpoint
in interface org.apache.camel.CamelContext
Exception
public void removeEndpoint(org.apache.camel.Endpoint endpoint) throws Exception
removeEndpoint
in interface org.apache.camel.CamelContext
Exception
public Collection<org.apache.camel.Endpoint> removeEndpoints(String uri) throws Exception
removeEndpoints
in interface org.apache.camel.CamelContext
Exception
public org.apache.camel.Endpoint getEndpoint(String uri)
getEndpoint
in interface org.apache.camel.CamelContext
public <T extends org.apache.camel.Endpoint> T getEndpoint(String name, Class<T> endpointType)
getEndpoint
in interface org.apache.camel.CamelContext
public void addRegisterEndpointCallback(org.apache.camel.spi.EndpointStrategy strategy)
addRegisterEndpointCallback
in interface org.apache.camel.CamelContext
protected 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)
DefaultEndpointRegistry
uri
- the endpoint uriprotected EndpointKey getEndpointKeyPreNormalized(String uri)
DefaultEndpointRegistry
uri
- the endpoint uri which is pre normalizedprotected EndpointKey getEndpointKey(String uri, org.apache.camel.Endpoint endpoint)
DefaultEndpointRegistry
uri
- the endpoint uriendpoint
- the endpointpublic void setRouteController(org.apache.camel.spi.RouteController routeController)
setRouteController
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.RouteController getRouteController()
getRouteController
in interface org.apache.camel.CamelContext
public List<org.apache.camel.spi.RouteStartupOrder> getRouteStartupOrder()
getRouteStartupOrder
in interface org.apache.camel.CamelContext
public List<org.apache.camel.Route> getRoutes()
getRoutes
in interface org.apache.camel.CamelContext
public org.apache.camel.Route getRoute(String id)
getRoute
in interface org.apache.camel.CamelContext
public org.apache.camel.Processor getProcessor(String id)
getProcessor
in interface org.apache.camel.CamelContext
public <T extends org.apache.camel.Processor> T getProcessor(String id, Class<T> type)
getProcessor
in interface org.apache.camel.CamelContext
public ProcessorDefinition getProcessorDefinition(String id)
ModelCamelContext
getProcessorDefinition
in interface ModelCamelContext
id
- id of the processor definitionpublic <T extends ProcessorDefinition> T getProcessorDefinition(String id, Class<T> type)
ModelCamelContext
getProcessorDefinition
in interface ModelCamelContext
id
- id of the processor definitiontype
- the processor definition typepublic void addRoutes(org.apache.camel.RoutesBuilder builder) throws Exception
addRoutes
in interface org.apache.camel.CamelContext
Exception
public void addRouteDefinitions(InputStream is) throws Exception
ModelCamelContext
CamelContext
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 ModelCamelContext
is
- 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
ModelCamelContext
CamelContext
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 ModelCamelContext
routeDefinitions
- the route(s) definition to addException
- if the route definitions could not be created for whatever reasonpublic void addRouteDefinition(RouteDefinition routeDefinition) throws Exception
ModelCamelContext
CamelContext
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 ModelCamelContext
routeDefinition
- 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
ModelCamelContext
removeRouteDefinitions
in interface ModelCamelContext
routeDefinitions
- route(s) definitions to removeException
- if the route definitions could not be removed for whatever reasonpublic void removeRouteDefinition(RouteDefinition routeDefinition) throws Exception
ModelCamelContext
removeRouteDefinition
in interface ModelCamelContext
routeDefinition
- 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
Exception
public boolean isStartingRoutes()
public boolean isSetupRoutes()
isSetupRoutes
in interface org.apache.camel.CamelContext
public void startAllRoutes() throws Exception
Exception
public void startRoute(String routeId) throws Exception
Exception
public void resumeRoute(String routeId) throws Exception
Exception
public boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
Exception
public void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exception
protected void doShutdownRoute(String routeId, long timeout, TimeUnit timeUnit, boolean removingRoutes) throws Exception
Exception
public boolean removeRoute(String routeId) throws Exception
removeRoute
in interface org.apache.camel.CamelContext
Exception
public void suspendRoute(String routeId) throws Exception
Exception
public void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
Exception
public void addService(Object object) throws Exception
addService
in interface org.apache.camel.CamelContext
Exception
public void addService(Object object, boolean stopOnShutdown) throws Exception
addService
in interface org.apache.camel.CamelContext
Exception
public void addService(Object object, boolean stopOnShutdown, boolean forceStart) throws Exception
addService
in interface org.apache.camel.CamelContext
Exception
protected <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.CamelContext
Exception
public boolean hasService(Object object)
hasService
in interface org.apache.camel.CamelContext
public <T> T hasService(Class<T> type)
hasService
in interface org.apache.camel.CamelContext
public <T> Set<T> hasServices(Class<T> type)
hasServices
in interface org.apache.camel.CamelContext
public void deferStartService(Object object, boolean stopOnShutdown) throws Exception
deferStartService
in interface org.apache.camel.CamelContext
Exception
public void addStartupListener(org.apache.camel.StartupListener listener) throws Exception
addStartupListener
in interface org.apache.camel.CamelContext
Exception
public String resolveComponentDefaultName(String javaType)
resolveComponentDefaultName
in interface org.apache.camel.CatalogCamelContext
public Map<String,Properties> findComponents() throws org.apache.camel.LoadPropertiesException, IOException
findComponents
in interface org.apache.camel.CatalogCamelContext
org.apache.camel.LoadPropertiesException
IOException
public Map<String,Properties> findEips() throws org.apache.camel.LoadPropertiesException, IOException
findEips
in interface org.apache.camel.CatalogCamelContext
org.apache.camel.LoadPropertiesException
IOException
public String getComponentParameterJsonSchema(String componentName) throws IOException
getComponentParameterJsonSchema
in interface org.apache.camel.CatalogCamelContext
IOException
public String getDataFormatParameterJsonSchema(String dataFormatName) throws IOException
getDataFormatParameterJsonSchema
in interface org.apache.camel.CatalogCamelContext
IOException
public String getLanguageParameterJsonSchema(String languageName) throws IOException
getLanguageParameterJsonSchema
in interface org.apache.camel.CatalogCamelContext
IOException
public String getEipParameterJsonSchema(String eipName) throws IOException
getEipParameterJsonSchema
in interface org.apache.camel.CatalogCamelContext
IOException
public String explainEipJson(String nameOrId, boolean includeAllOptions)
explainEipJson
in interface org.apache.camel.CatalogCamelContext
public String explainDataFormatJson(String dataFormatName, org.apache.camel.spi.DataFormat dataFormat, boolean includeAllOptions)
explainDataFormatJson
in interface org.apache.camel.CatalogCamelContext
public String explainComponentJson(String componentName, boolean includeAllOptions)
explainComponentJson
in interface org.apache.camel.CatalogCamelContext
public String explainEndpointJson(String uri, boolean includeAllOptions)
explainEndpointJson
in interface org.apache.camel.CatalogCamelContext
public String createRouteStaticEndpointJson(String routeId)
createRouteStaticEndpointJson
in interface org.apache.camel.CatalogCamelContext
public String createRouteStaticEndpointJson(String routeId, boolean includeDynamic)
createRouteStaticEndpointJson
in interface org.apache.camel.CatalogCamelContext
public org.apache.camel.spi.Language resolveLanguage(String language)
resolveLanguage
in interface org.apache.camel.CamelContext
public String getPropertyPrefixToken()
getPropertyPrefixToken
in interface org.apache.camel.CamelContext
public String getPropertySuffixToken()
getPropertySuffixToken
in interface org.apache.camel.CamelContext
public String resolvePropertyPlaceholders(String text) throws Exception
resolvePropertyPlaceholders
in interface org.apache.camel.CamelContext
Exception
public org.apache.camel.TypeConverter getTypeConverter()
getTypeConverter
in interface org.apache.camel.CamelContext
public void setTypeConverter(org.apache.camel.TypeConverter typeConverter)
public org.apache.camel.spi.TypeConverterRegistry getTypeConverterRegistry()
getTypeConverterRegistry
in interface org.apache.camel.CamelContext
public void setTypeConverterRegistry(org.apache.camel.spi.TypeConverterRegistry typeConverterRegistry)
setTypeConverterRegistry
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.Injector getInjector()
getInjector
in interface org.apache.camel.CamelContext
public void setInjector(org.apache.camel.spi.Injector injector)
public org.apache.camel.spi.CamelBeanPostProcessor getBeanPostProcessor()
getBeanPostProcessor
in interface org.apache.camel.CamelContext
public void setBeanPostProcessor(org.apache.camel.spi.CamelBeanPostProcessor beanPostProcessor)
public org.apache.camel.spi.ManagementMBeanAssembler getManagementMBeanAssembler()
getManagementMBeanAssembler
in interface org.apache.camel.CamelContext
public 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.CamelContext
public <T> T getRegistry(Class<T> type)
getRegistry
in interface org.apache.camel.CamelContext
public void setRegistry(org.apache.camel.spi.Registry registry)
public List<org.apache.camel.spi.LifecycleStrategy> getLifecycleStrategies()
getLifecycleStrategies
in interface org.apache.camel.CamelContext
public void addLifecycleStrategy(org.apache.camel.spi.LifecycleStrategy lifecycleStrategy)
addLifecycleStrategy
in interface org.apache.camel.CamelContext
public void setupRoutes(boolean done)
setupRoutes
in interface org.apache.camel.CamelContext
public List<RouteDefinition> getRouteDefinitions()
ModelCamelContext
getRouteDefinitions
in interface ModelCamelContext
public RouteDefinition getRouteDefinition(String id)
ModelCamelContext
getRouteDefinition
in interface ModelCamelContext
id
- id of the routepublic List<RestDefinition> getRestDefinitions()
ModelCamelContext
getRestDefinitions
in interface ModelCamelContext
public void addRestDefinitions(InputStream is, boolean addToRoutes) throws Exception
ModelCamelContext
addRestDefinitions
in interface ModelCamelContext
is
- 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
ModelCamelContext
addRestDefinitions
in interface ModelCamelContext
restDefinitions
- 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.CamelContext
public void setRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration)
setRestConfiguration
in interface org.apache.camel.CamelContext
public Collection<org.apache.camel.spi.RestConfiguration> getRestConfigurations()
getRestConfigurations
in interface org.apache.camel.CamelContext
public void addRestConfiguration(org.apache.camel.spi.RestConfiguration restConfiguration)
addRestConfiguration
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.RestConfiguration getRestConfiguration(String component, boolean defaultIfNotExist)
getRestConfiguration
in interface org.apache.camel.CamelContext
public ServiceCallConfigurationDefinition getServiceCallConfiguration(String serviceName)
ModelCamelContext
getServiceCallConfiguration
in interface ModelCamelContext
serviceName
- name of service, or null to return the default configurationpublic void setServiceCallConfiguration(ServiceCallConfigurationDefinition configuration)
ModelCamelContext
setServiceCallConfiguration
in interface ModelCamelContext
configuration
- the configurationpublic void setServiceCallConfigurations(List<ServiceCallConfigurationDefinition> configurations)
ModelCamelContext
setServiceCallConfigurations
in interface ModelCamelContext
configurations
- the configuration listpublic void addServiceCallConfiguration(String serviceName, ServiceCallConfigurationDefinition configuration)
ModelCamelContext
addServiceCallConfiguration
in interface ModelCamelContext
serviceName
- name of the serviceconfiguration
- the configurationpublic HystrixConfigurationDefinition getHystrixConfiguration(String id)
ModelCamelContext
getHystrixConfiguration
in interface ModelCamelContext
id
- id of the configuration, or null to return the default configurationpublic void setHystrixConfiguration(HystrixConfigurationDefinition configuration)
ModelCamelContext
setHystrixConfiguration
in interface ModelCamelContext
configuration
- the configurationpublic void setHystrixConfigurations(List<HystrixConfigurationDefinition> configurations)
ModelCamelContext
setHystrixConfigurations
in interface ModelCamelContext
configurations
- the configuration listpublic void addHystrixConfiguration(String id, HystrixConfigurationDefinition configuration)
ModelCamelContext
addHystrixConfiguration
in interface ModelCamelContext
id
- name of the configurationconfiguration
- the configurationpublic List<org.apache.camel.spi.InterceptStrategy> getInterceptStrategies()
getInterceptStrategies
in interface org.apache.camel.CamelContext
public void setInterceptStrategies(List<org.apache.camel.spi.InterceptStrategy> interceptStrategies)
public void addInterceptStrategy(org.apache.camel.spi.InterceptStrategy interceptStrategy)
addInterceptStrategy
in interface org.apache.camel.CamelContext
public List<org.apache.camel.spi.RoutePolicyFactory> getRoutePolicyFactories()
getRoutePolicyFactories
in interface org.apache.camel.CamelContext
public void setRoutePolicyFactories(List<org.apache.camel.spi.RoutePolicyFactory> routePolicyFactories)
public void addRoutePolicyFactory(org.apache.camel.spi.RoutePolicyFactory routePolicyFactory)
addRoutePolicyFactory
in interface org.apache.camel.CamelContext
public Set<org.apache.camel.spi.LogListener> getLogListeners()
getLogListeners
in interface org.apache.camel.CamelContext
public void addLogListener(org.apache.camel.spi.LogListener listener)
addLogListener
in interface org.apache.camel.CamelContext
public void setStreamCaching(Boolean cache)
setStreamCaching
in interface org.apache.camel.RuntimeConfiguration
public Boolean isStreamCaching()
isStreamCaching
in interface org.apache.camel.RuntimeConfiguration
public void setTracing(Boolean tracing)
setTracing
in interface org.apache.camel.RuntimeConfiguration
public Boolean isTracing()
isTracing
in interface org.apache.camel.RuntimeConfiguration
public Boolean isMessageHistory()
isMessageHistory
in interface org.apache.camel.RuntimeConfiguration
public void setMessageHistory(Boolean messageHistory)
setMessageHistory
in interface org.apache.camel.RuntimeConfiguration
public void setLogMask(Boolean logMask)
setLogMask
in interface org.apache.camel.RuntimeConfiguration
public Boolean isLogMask()
isLogMask
in interface org.apache.camel.RuntimeConfiguration
public Boolean isLogExhaustedMessageBody()
isLogExhaustedMessageBody
in interface org.apache.camel.RuntimeConfiguration
public void setLogExhaustedMessageBody(Boolean logExhaustedMessageBody)
setLogExhaustedMessageBody
in interface org.apache.camel.RuntimeConfiguration
public Boolean isHandleFault()
isHandleFault
in interface org.apache.camel.RuntimeConfiguration
public void setHandleFault(Boolean handleFault)
setHandleFault
in interface org.apache.camel.RuntimeConfiguration
public Long getDelayer()
getDelayer
in interface org.apache.camel.RuntimeConfiguration
public void setDelayer(Long delay)
setDelayer
in interface org.apache.camel.RuntimeConfiguration
public org.apache.camel.ProducerTemplate createProducerTemplate()
createProducerTemplate
in interface org.apache.camel.CamelContext
public org.apache.camel.ProducerTemplate createProducerTemplate(int maximumCacheSize)
createProducerTemplate
in interface org.apache.camel.CamelContext
public org.apache.camel.FluentProducerTemplate createFluentProducerTemplate()
createFluentProducerTemplate
in interface org.apache.camel.CamelContext
public org.apache.camel.FluentProducerTemplate createFluentProducerTemplate(int maximumCacheSize)
createFluentProducerTemplate
in interface org.apache.camel.CamelContext
public org.apache.camel.ConsumerTemplate createConsumerTemplate()
createConsumerTemplate
in interface org.apache.camel.CamelContext
public org.apache.camel.ConsumerTemplate createConsumerTemplate(int maximumCacheSize)
createConsumerTemplate
in interface org.apache.camel.CamelContext
public org.apache.camel.AsyncProcessor createMulticast(Collection<org.apache.camel.Processor> processors, ExecutorService executor, boolean shutdownExecutorService)
createMulticast
in interface org.apache.camel.CamelContext
public ErrorHandlerBuilder getErrorHandlerFactory()
getErrorHandlerFactory
in interface org.apache.camel.CamelContext
public void setErrorHandlerFactory(org.apache.camel.ErrorHandlerFactory errorHandlerFactory)
setErrorHandlerFactory
in interface org.apache.camel.CamelContext
public ScheduledExecutorService getErrorHandlerExecutorService()
getErrorHandlerExecutorService
in interface org.apache.camel.CamelContext
protected 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.CamelContext
public void setUnitOfWorkFactory(org.apache.camel.spi.UnitOfWorkFactory unitOfWorkFactory)
setUnitOfWorkFactory
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.RuntimeEndpointRegistry getRuntimeEndpointRegistry()
getRuntimeEndpointRegistry
in interface org.apache.camel.CamelContext
public void setRuntimeEndpointRegistry(org.apache.camel.spi.RuntimeEndpointRegistry runtimeEndpointRegistry)
setRuntimeEndpointRegistry
in interface org.apache.camel.CamelContext
public String getUptime()
getUptime
in interface org.apache.camel.CamelContext
public long getUptimeMillis()
getUptimeMillis
in interface org.apache.camel.CamelContext
public String getVersion()
getVersion
in interface org.apache.camel.CamelContext
protected void doSuspend() throws Exception
doSuspend
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doResume() throws Exception
doResume
in class org.apache.camel.support.service.ServiceSupport
Exception
public void start() throws Exception
start
in interface org.apache.camel.CamelContext
start
in interface org.apache.camel.Service
start
in class org.apache.camel.support.service.ServiceSupport
Exception
public void stop() throws Exception
stop
in interface org.apache.camel.CamelContext
stop
in interface org.apache.camel.Service
stop
in class org.apache.camel.support.service.ServiceSupport
Exception
public void suspend() throws Exception
suspend
in interface org.apache.camel.SuspendableService
suspend
in class org.apache.camel.support.service.ServiceSupport
Exception
public void resume() throws Exception
resume
in interface org.apache.camel.SuspendableService
resume
in class org.apache.camel.support.service.ServiceSupport
Exception
public void shutdown() throws Exception
shutdown
in interface org.apache.camel.ShutdownableService
shutdown
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStartCamel() throws Exception
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.ServiceSupport
Exception
protected 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
Exception
protected void startRouteService(RouteService routeService, boolean addingRoutes) throws Exception
Exception
protected void resumeRouteService(RouteService routeService) throws Exception
Exception
protected void stopRouteService(RouteService routeService, boolean removingRoutes) throws Exception
Exception
protected void logRouteState(org.apache.camel.Route route, String state)
protected void stopRouteService(RouteService routeService) throws Exception
Exception
protected void shutdownRouteService(RouteService routeService) throws Exception
Exception
protected void suspendRouteService(RouteService routeService) throws Exception
Exception
protected 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)
Registry
uri
- 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.CamelContext
public org.apache.camel.spi.PropertiesComponent getPropertiesComponent(boolean autoCreate)
getPropertiesComponent
in interface org.apache.camel.CamelContext
public void setDataFormats(Map<String,DataFormatDefinition> dataFormats)
ModelCamelContext
setDataFormats
in interface ModelCamelContext
dataFormats
- the data formatspublic Map<String,DataFormatDefinition> getDataFormats()
ModelCamelContext
getDataFormats
in interface ModelCamelContext
public Map<String,String> getGlobalOptions()
getGlobalOptions
in interface org.apache.camel.CamelContext
public void setGlobalOptions(Map<String,String> globalOptions)
setGlobalOptions
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.FactoryFinder getDefaultFactoryFinder()
getDefaultFactoryFinder
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.FactoryFinderResolver getFactoryFinderResolver()
public void setFactoryFinderResolver(org.apache.camel.spi.FactoryFinderResolver factoryFinderResolver)
setFactoryFinderResolver
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.FactoryFinder getFactoryFinder(String path) throws org.apache.camel.NoFactoryAvailableException
getFactoryFinder
in interface org.apache.camel.CamelContext
org.apache.camel.NoFactoryAvailableException
protected org.apache.camel.spi.FactoryFinder createFactoryFinder(String path)
public org.apache.camel.spi.ClassResolver getClassResolver()
getClassResolver
in interface org.apache.camel.CamelContext
public void setClassResolver(org.apache.camel.spi.ClassResolver classResolver)
setClassResolver
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.PackageScanClassResolver getPackageScanClassResolver()
getPackageScanClassResolver
in interface org.apache.camel.CamelContext
public void setPackageScanClassResolver(org.apache.camel.spi.PackageScanClassResolver packageScanClassResolver)
setPackageScanClassResolver
in interface org.apache.camel.CamelContext
public List<String> getComponentNames()
getComponentNames
in interface org.apache.camel.CamelContext
public List<String> getLanguageNames()
getLanguageNames
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.ModelJAXBContextFactory getModelJAXBContextFactory()
getModelJAXBContextFactory
in interface org.apache.camel.CamelContext
public void setModelJAXBContextFactory(org.apache.camel.spi.ModelJAXBContextFactory modelJAXBContextFactory)
setModelJAXBContextFactory
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.NodeIdFactory getNodeIdFactory()
getNodeIdFactory
in interface org.apache.camel.CamelContext
public void setNodeIdFactory(org.apache.camel.spi.NodeIdFactory idFactory)
setNodeIdFactory
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.ManagementStrategy getManagementStrategy()
getManagementStrategy
in interface org.apache.camel.CamelContext
public void setManagementStrategy(org.apache.camel.spi.ManagementStrategy managementStrategy)
setManagementStrategy
in interface org.apache.camel.CamelContext
public void disableJMX()
disableJMX
in interface org.apache.camel.CamelContext
public boolean isJMXDisabled()
public void setupManagement(Map<String,Object> options)
setupManagement
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.InflightRepository getInflightRepository()
getInflightRepository
in interface org.apache.camel.CamelContext
public void setInflightRepository(org.apache.camel.spi.InflightRepository repository)
setInflightRepository
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.AsyncProcessorAwaitManager getAsyncProcessorAwaitManager()
getAsyncProcessorAwaitManager
in interface org.apache.camel.CamelContext
public void setAsyncProcessorAwaitManager(org.apache.camel.spi.AsyncProcessorAwaitManager asyncProcessorAwaitManager)
setAsyncProcessorAwaitManager
in interface org.apache.camel.CamelContext
public void setAutoStartup(Boolean autoStartup)
setAutoStartup
in interface org.apache.camel.RuntimeConfiguration
public Boolean isAutoStartup()
isAutoStartup
in interface org.apache.camel.RuntimeConfiguration
public Boolean isLoadTypeConverters()
isLoadTypeConverters
in interface org.apache.camel.CamelContext
public void setLoadTypeConverters(Boolean loadTypeConverters)
setLoadTypeConverters
in interface org.apache.camel.CamelContext
public Boolean isTypeConverterStatisticsEnabled()
isTypeConverterStatisticsEnabled
in interface org.apache.camel.CamelContext
public void setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled)
setTypeConverterStatisticsEnabled
in interface org.apache.camel.CamelContext
public Boolean isUseMDCLogging()
isUseMDCLogging
in interface org.apache.camel.CamelContext
public void setUseMDCLogging(Boolean useMDCLogging)
setUseMDCLogging
in interface org.apache.camel.CamelContext
public Boolean isUseDataType()
isUseDataType
in interface org.apache.camel.CamelContext
public void setUseDataType(Boolean useDataType)
setUseDataType
in interface org.apache.camel.CamelContext
public Boolean isUseBreadcrumb()
isUseBreadcrumb
in interface org.apache.camel.CamelContext
public void setUseBreadcrumb(Boolean useBreadcrumb)
setUseBreadcrumb
in interface org.apache.camel.CamelContext
public ClassLoader getApplicationContextClassLoader()
getApplicationContextClassLoader
in interface org.apache.camel.CamelContext
public void setApplicationContextClassLoader(ClassLoader classLoader)
setApplicationContextClassLoader
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.DataFormatResolver getDataFormatResolver()
getDataFormatResolver
in interface org.apache.camel.CamelContext
public void setDataFormatResolver(org.apache.camel.spi.DataFormatResolver dataFormatResolver)
setDataFormatResolver
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.DataFormat resolveDataFormat(String name)
resolveDataFormat
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.DataFormat createDataFormat(String name)
createDataFormat
in interface org.apache.camel.CamelContext
public DataFormatDefinition resolveDataFormatDefinition(String name)
ModelCamelContext
resolveDataFormatDefinition
in interface ModelCamelContext
name
- the data format definition name or a reference to it in the Registry
public org.apache.camel.spi.ShutdownStrategy getShutdownStrategy()
getShutdownStrategy
in interface org.apache.camel.CamelContext
public void setShutdownStrategy(org.apache.camel.spi.ShutdownStrategy shutdownStrategy)
setShutdownStrategy
in interface org.apache.camel.CamelContext
public org.apache.camel.ShutdownRoute getShutdownRoute()
getShutdownRoute
in interface org.apache.camel.RuntimeConfiguration
public void setShutdownRoute(org.apache.camel.ShutdownRoute shutdownRoute)
setShutdownRoute
in interface org.apache.camel.RuntimeConfiguration
public org.apache.camel.ShutdownRunningTask getShutdownRunningTask()
getShutdownRunningTask
in interface org.apache.camel.RuntimeConfiguration
public void setShutdownRunningTask(org.apache.camel.ShutdownRunningTask shutdownRunningTask)
setShutdownRunningTask
in interface org.apache.camel.RuntimeConfiguration
public void setAllowUseOriginalMessage(Boolean allowUseOriginalMessage)
setAllowUseOriginalMessage
in interface org.apache.camel.RuntimeConfiguration
public Boolean isAllowUseOriginalMessage()
isAllowUseOriginalMessage
in interface org.apache.camel.RuntimeConfiguration
public org.apache.camel.spi.ExecutorServiceManager getExecutorServiceManager()
getExecutorServiceManager
in interface org.apache.camel.CamelContext
public void setExecutorServiceManager(org.apache.camel.spi.ExecutorServiceManager executorServiceManager)
setExecutorServiceManager
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.ProcessorFactory getProcessorFactory()
getProcessorFactory
in interface org.apache.camel.CamelContext
public void setProcessorFactory(org.apache.camel.spi.ProcessorFactory processorFactory)
setProcessorFactory
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.MessageHistoryFactory getMessageHistoryFactory()
getMessageHistoryFactory
in interface org.apache.camel.CamelContext
public void setMessageHistoryFactory(org.apache.camel.spi.MessageHistoryFactory messageHistoryFactory)
setMessageHistoryFactory
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.Debugger getDebugger()
getDebugger
in interface org.apache.camel.CamelContext
public void setDebugger(org.apache.camel.spi.Debugger debugger)
setDebugger
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.UuidGenerator getUuidGenerator()
getUuidGenerator
in interface org.apache.camel.CamelContext
public void setUuidGenerator(org.apache.camel.spi.UuidGenerator uuidGenerator)
setUuidGenerator
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.StreamCachingStrategy getStreamCachingStrategy()
getStreamCachingStrategy
in interface org.apache.camel.CamelContext
public void setStreamCachingStrategy(org.apache.camel.spi.StreamCachingStrategy streamCachingStrategy)
setStreamCachingStrategy
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.RestRegistry getRestRegistry()
getRestRegistry
in interface org.apache.camel.CamelContext
public void setRestRegistry(org.apache.camel.spi.RestRegistry restRegistry)
setRestRegistry
in interface org.apache.camel.CamelContext
public String getGlobalOption(String key)
getGlobalOption
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.ReloadStrategy getReloadStrategy()
getReloadStrategy
in interface org.apache.camel.CamelContext
public void setReloadStrategy(org.apache.camel.spi.ReloadStrategy reloadStrategy)
setReloadStrategy
in interface org.apache.camel.CamelContext
public void setTransformers(List<TransformerDefinition> transformers)
ModelCamelContext
setTransformers
in interface ModelCamelContext
transformers
- the transformerspublic List<TransformerDefinition> getTransformers()
ModelCamelContext
getTransformers
in interface ModelCamelContext
public org.apache.camel.spi.Transformer resolveTransformer(String scheme)
resolveTransformer
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.Transformer resolveTransformer(org.apache.camel.spi.DataType from, org.apache.camel.spi.DataType to)
resolveTransformer
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.TransformerRegistry<TransformerKey> getTransformerRegistry()
getTransformerRegistry
in interface org.apache.camel.CamelContext
public void setValidators(List<ValidatorDefinition> validators)
ModelCamelContext
setValidators
in interface ModelCamelContext
validators
- the validatorspublic List<ValidatorDefinition> getValidators()
ModelCamelContext
getValidators
in interface ModelCamelContext
public org.apache.camel.spi.Validator resolveValidator(org.apache.camel.spi.DataType type)
resolveValidator
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.ValidatorRegistry<org.apache.camel.impl.validator.ValidatorKey> getValidatorRegistry()
getValidatorRegistry
in interface org.apache.camel.CamelContext
public void setSSLContextParameters(org.apache.camel.support.jsse.SSLContextParameters sslContextParameters)
setSSLContextParameters
in interface org.apache.camel.CamelContext
public org.apache.camel.support.jsse.SSLContextParameters getSSLContextParameters()
getSSLContextParameters
in interface org.apache.camel.CamelContext
public org.apache.camel.spi.HeadersMapFactory getHeadersMapFactory()
getHeadersMapFactory
in interface org.apache.camel.CamelContext
public void setHeadersMapFactory(org.apache.camel.spi.HeadersMapFactory headersMapFactory)
setHeadersMapFactory
in interface org.apache.camel.CamelContext
protected 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
Exception
protected abstract org.apache.camel.spi.TransformerRegistry<TransformerKey> createTransformerRegistry(List<TransformerDefinition> transformers) throws Exception
Exception
Apache Camel