|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultCamelContext
public class DefaultCamelContext
Represents the context used to configure routes and the policies to use.
| Field Summary |
|---|
| Fields inherited from class org.apache.camel.support.ServiceSupport |
|---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
| Constructor Summary | |
|---|---|
DefaultCamelContext()
|
|
DefaultCamelContext(Context jndiContext)
Creates the CamelContext using the given JNDI context as the registry |
|
DefaultCamelContext(Registry registry)
Creates the CamelContext using the given registry |
|
| Method Summary | ||
|---|---|---|
void |
addComponent(String componentName,
Component component)
Adds a component to the context. |
|
Endpoint |
addEndpoint(String uri,
Endpoint endpoint)
Adds the endpoint to the context using the given URI. |
|
protected Endpoint |
addEndpointToRegistry(String uri,
Endpoint endpoint)
Strategy to add the given endpoint to the internal endpoint registry |
|
void |
addInterceptStrategy(InterceptStrategy interceptStrategy)
Adds the given interceptor strategy |
|
void |
addLifecycleStrategy(LifecycleStrategy lifecycleStrategy)
Adds the given lifecycle strategy to be used. |
|
void |
addRegisterEndpointCallback(EndpointStrategy strategy)
Registers a callback to allow you to do custom
logic when an Endpoint is about to be registered to the CamelContext endpoint registry. |
|
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 |
addRoutes(RoutesBuilder builder)
Adds a collection of routes to this context using the given builder to build them. |
|
void |
addService(Object object)
Adds a service to this context, which allows this context to control the lifecycle, ensuring the service is stopped when the context stops. |
|
void |
addStartupListener(StartupListener listener)
Adds the given listener to be invoked when CamelContext have just been started. |
|
protected 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 ComponentResolver |
createComponentResolver()
Lazily create a default implementation |
|
ConsumerTemplate |
createConsumerTemplate()
Creates a new ConsumerTemplate which is started and therefore ready to use right away. |
|
ConsumerTemplate |
createConsumerTemplate(int maximumCacheSize)
Creates a new ConsumerTemplate which is started and therefore ready to use right away. |
|
protected 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 Injector |
createInjector()
Lazily create a default implementation |
|
protected ManagementMBeanAssembler |
createManagementMBeanAssembler()
Lazily create a default implementation |
|
protected ManagementStrategy |
createManagementStrategy()
|
|
ProducerTemplate |
createProducerTemplate()
Creates a new ProducerTemplate which is started and therefore ready to use right away. |
|
ProducerTemplate |
createProducerTemplate(int maximumCacheSize)
Creates a new ProducerTemplate which is started and therefore ready to use right away. |
|
protected Registry |
createRegistry()
Lazily create a default implementation |
|
protected TypeConverter |
createTypeConverter()
Lazily create a default implementation |
|
void |
disableJMX()
Disables using JMX as ManagementStrategy. |
|
protected void |
doResume()
Implementations override this method to support customized suspend/resume. |
|
protected void |
doStart()
Implementations override this method to support customized start/stop. |
|
protected void |
doStartOrResumeRoutes(Map<String,RouteService> routeServices,
boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes)
Starts or resumes the routes |
|
protected void |
doStop()
Implementations override this method to support customized start/stop. |
|
protected void |
doSuspend()
Implementations override this method to support customized suspend/resume. |
|
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()
Gets the the application context class loader which may be helpful for running camel in other containers |
|
ClassResolver |
getClassResolver()
Returns the class resolver to be used for loading/lookup of classes. |
|
Component |
getComponent(String name)
Gets a component from the context by name. |
|
|
getComponent(String name,
Class<T> componentType)
Gets a component from the context by name and specifying the expected type of component. |
|
List<String> |
getComponentNames()
Gets a readonly list of names of the components currently registered |
|
ComponentResolver |
getComponentResolver()
|
|
DataFormatResolver |
getDataFormatResolver()
Gets the current data format resolver |
|
Map<String,DataFormatDefinition> |
getDataFormats()
Gets the data formats that can be referenced in the routes. |
|
Debugger |
getDebugger()
Gets the current Debugger |
|
FactoryFinder |
getDefaultFactoryFinder()
Gets the default FactoryFinder which will be used for the loading the factory class from META-INF |
|
InterceptStrategy |
getDefaultTracer()
Gets the default tracer |
|
Long |
getDelayer()
Gets the delay value |
|
Endpoint |
getEndpoint(String uri)
Resolves the given name to an Endpoint of the specified type. |
|
|
getEndpoint(String name,
Class<T> endpointType)
Resolves the given name to an Endpoint of the specified type. |
|
protected org.apache.camel.impl.EndpointKey |
getEndpointKey(String uri)
Gets the endpoint key to use for lookup or whe adding endpoints to the EndpointRegistry |
|
protected org.apache.camel.impl.EndpointKey |
getEndpointKey(String uri,
Endpoint endpoint)
Gets the endpoint key to use for lookup or whe adding endpoints to the EndpointRegistry |
|
Map<String,Endpoint> |
getEndpointMap()
Returns a new Map containing all of the active endpoints with the key of the map being their unique key. |
|
Collection<Endpoint> |
getEndpoints()
Returns the collection of all registered endpoints. |
|
ErrorHandlerBuilder |
getErrorHandlerBuilder()
Gets the default error handler builder which is inherited by the routes |
|
ScheduledExecutorService |
getErrorHandlerExecutorService()
Gets the default shared thread pool for error handlers which leverages this for asynchronous redelivery tasks. |
|
ExecutorServiceManager |
getExecutorServiceManager()
Gets the current ExecutorServiceManager |
|
ExecutorServiceStrategy |
getExecutorServiceStrategy()
Deprecated. |
|
FactoryFinder |
getFactoryFinder(String path)
Gets the FactoryFinder which will be used for the loading the factory class from META-INF in the given path |
|
InflightRepository |
getInflightRepository()
Gets the inflight repository |
|
Injector |
getInjector()
Returns the injector used to instantiate objects by type |
|
List<InterceptStrategy> |
getInterceptStrategies()
Gets the interceptor strategies |
|
List<String> |
getLanguageNames()
Gets a readonly list with the names of the languages currently registered. |
|
LanguageResolver |
getLanguageResolver()
|
|
List<LifecycleStrategy> |
getLifecycleStrategies()
Returns the lifecycle strategies used to handle lifecycle notifications |
|
ManagementMBeanAssembler |
getManagementMBeanAssembler()
Returns the management mbean assembler |
|
String |
getManagementName()
Gets the name this CamelContext was registered in JMX. |
|
ManagementNameStrategy |
getManagementNameStrategy()
Gets the current management name strategy |
|
ManagementStrategy |
getManagementStrategy()
Gets the management strategy |
|
String |
getName()
Gets the name (id) of the this context. |
|
CamelContextNameStrategy |
getNameStrategy()
Gets the current name strategy |
|
NodeIdFactory |
getNodeIdFactory()
Gets the node id factory |
|
PackageScanClassResolver |
getPackageScanClassResolver()
Returns the package scanning class resolver |
|
ProcessorFactory |
getProcessorFactory()
Gets the current ProcessorFactory |
|
ServicePool<Endpoint,Producer> |
getProducerServicePool()
Gets the service pool for Producer pooling. |
|
Map<String,String> |
getProperties()
Gets the properties that can be referenced in the camel context |
|
protected PropertiesComponent |
getPropertiesComponent()
Gets the properties component in use. |
|
String |
getPropertyPrefixToken()
Returns the configured property placeholder prefix token if and only if the context has property placeholder abilities, otherwise returns null. |
|
String |
getPropertySuffixToken()
Returns the configured property placeholder suffix token if and only if the context has property placeholder abilities, otherwise returns null. |
|
Registry |
getRegistry()
Returns the registry used to lookup components by name and type such as the Spring ApplicationContext, JNDI or the OSGi Service Registry |
|
Route |
getRoute(String id)
Gets the route with the given id |
|
RouteDefinition |
getRouteDefinition(String id)
Gets the route definition with the given id |
|
List<RouteDefinition> |
getRouteDefinitions()
Returns a list of the current route definitions |
|
List<Route> |
getRoutes()
Returns the current routes in this context |
|
protected Map<String,RouteService> |
getRouteServices()
|
|
List<RouteStartupOrder> |
getRouteStartupOrder()
Returns the order in which the route inputs was started. |
|
ServiceStatus |
getRouteStatus(String key)
Returns the current status of the given route |
|
ShutdownRoute |
getShutdownRoute()
Gets the option to use when shutting down the route. |
|
ShutdownRunningTask |
getShutdownRunningTask()
Gets the ShutdownRunningTask option in use when shutting down a route. |
|
ShutdownStrategy |
getShutdownStrategy()
Gets the current shutdown strategy |
|
TypeConverter |
getTypeConverter()
Returns the type converter used to coerce types from one type to another |
|
TypeConverterRegistry |
getTypeConverterRegistry()
Returns the type converter registry where type converters can be added or looked up |
|
String |
getUptime()
Gets the uptime in a human readable format |
|
UuidGenerator |
getUuidGenerator()
Gets the current UuidGenerator |
|
Component |
hasComponent(String componentName)
Is the given component already registered? |
|
Endpoint |
hasEndpoint(String uri)
Is the given endpoint already registered? |
|
boolean |
hasService(Object object)
Has the given service already been added to this context? |
|
boolean |
isAutoCreateComponents()
|
|
Boolean |
isAutoStartup()
Gets whether the object should automatically start when Camel starts. |
|
Boolean |
isHandleFault()
Returns whether fault handling enabled |
|
Boolean |
isLazyLoadTypeConverters()
Deprecated. |
|
boolean |
isStartingRoutes()
Indicates whether current thread is starting route(s). |
|
Boolean |
isStreamCaching()
Returns whether stream cache is enabled |
|
Boolean |
isTracing()
Returns whether tracing enabled |
|
Boolean |
isTypeConverterStatisticsEnabled()
Whether or not type converter statistics is enabled. |
|
Boolean |
isUseBreadcrumb()
Whether or not breadcrumb is enabled. |
|
Boolean |
isUseMDCLogging()
Whether or not MDC logging is being enabled. |
|
RoutesDefinition |
loadRoutesDefinition(InputStream is)
Loads a collection of route definitions from the given InputStream. |
|
protected void |
logRouteState(Route route,
String state)
|
|
protected Component |
lookupPropertiesComponent()
|
|
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. |
|
Component |
removeComponent(String componentName)
Removes a previously added component. |
|
Collection<Endpoint> |
removeEndpoints(String uri)
Removes all endpoints with the given URI. |
|
boolean |
removeRoute(String routeId)
Removes the given route (the route must be stopped before it can be removed). |
|
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)
Removes a service from this context. |
|
DataFormat |
resolveDataFormat(String name)
Resolve a data format given its name |
|
DataFormatDefinition |
resolveDataFormatDefinition(String name)
Resolve a data format definition given its name |
|
Language |
resolveLanguage(String language)
Resolves a language for creating expressions |
|
String |
resolvePropertyPlaceholders(String text)
Parses the given text and resolve any property placeholders - using {{key}}. |
|
void |
resumeRoute(String routeId)
Resumes the given route if it has been previously suspended If the route does not support suspension the route will be started instead |
|
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 |
setApplicationContextClassLoader(ClassLoader classLoader)
Sets the application context class loader |
|
void |
setAutoCreateComponents(boolean autoCreateComponents)
|
|
void |
setAutoStartup(Boolean autoStartup)
Sets whether the object should automatically start when Camel starts. |
|
void |
setClassResolver(ClassResolver classResolver)
Sets the class resolver to be use |
|
void |
setComponentResolver(ComponentResolver componentResolver)
|
|
static void |
setContextCounter(int value)
Reset context counter to a preset value. |
|
void |
setDataFormatResolver(DataFormatResolver dataFormatResolver)
Sets a custom data format resolver |
|
void |
setDataFormats(Map<String,DataFormatDefinition> dataFormats)
Sets the data formats that can be referenced in the routes. |
|
void |
setDebugger(Debugger debugger)
Sets a custom Debugger |
|
void |
setDefaultTracer(InterceptStrategy defaultTracer)
Sets a custom tracer to be used as the default tracer. |
|
void |
setDelayer(Long delay)
Sets a delay value in millis that a message is delayed at every step it takes in the route path, slowing the process down to better observe what is occurring Is disabled by default |
|
void |
setErrorHandlerBuilder(ErrorHandlerFactory errorHandlerBuilder)
Sets the default error handler builder which is inherited by the routes |
|
void |
setExecutorServiceManager(ExecutorServiceManager executorServiceManager)
Sets a custom ExecutorServiceManager |
|
void |
setFactoryFinderResolver(FactoryFinderResolver resolver)
Sets the factory finder resolver to use. |
|
void |
setHandleFault(Boolean handleFault)
Sets whether fault handling is enabled or not (default is disabled). |
|
void |
setInflightRepository(InflightRepository repository)
Sets a custom inflight repository to use |
|
void |
setInjector(Injector injector)
|
|
void |
setInterceptStrategies(List<InterceptStrategy> interceptStrategies)
|
|
void |
setJndiContext(Context jndiContext)
Sets the registry to the given JNDI context |
|
void |
setLanguageResolver(LanguageResolver languageResolver)
|
|
void |
setLazyLoadTypeConverters(Boolean lazyLoadTypeConverters)
Deprecated. |
|
void |
setLifecycleStrategies(List<LifecycleStrategy> lifecycleStrategies)
|
|
void |
setManagementMBeanAssembler(ManagementMBeanAssembler managementMBeanAssembler)
|
|
void |
setManagementName(String managementName)
|
|
void |
setManagementNameStrategy(ManagementNameStrategy managementNameStrategy)
Sets a custom management name strategy |
|
void |
setManagementStrategy(ManagementStrategy managementStrategy)
Sets the management strategy to use |
|
void |
setName(String name)
Sets the name of the this context. |
|
void |
setNameStrategy(CamelContextNameStrategy nameStrategy)
Sets a custom name strategy |
|
void |
setNodeIdFactory(NodeIdFactory idFactory)
Uses a custom node id factory when generating auto assigned ids to the nodes in the route definitions |
|
void |
setPackageScanClassResolver(PackageScanClassResolver packageScanClassResolver)
Sets the package scanning class resolver to use |
|
void |
setProcessorFactory(ProcessorFactory processorFactory)
Sets a custom ProcessorFactory |
|
void |
setProducerServicePool(ServicePool<Endpoint,Producer> producerServicePool)
Sets a pluggable service pool to use for Producer pooling. |
|
void |
setProperties(Map<String,String> properties)
Sets the properties that can be referenced in the camel context |
|
void |
setRegistry(Registry registry)
|
|
void |
setRoutes(List<Route> routes)
Deprecated. |
|
void |
setShutdownRoute(ShutdownRoute shutdownRoute)
Sets the ShutdownRoute option for routes. |
|
void |
setShutdownRunningTask(ShutdownRunningTask shutdownRunningTask)
Sets the ShutdownRunningTask option to use when shutting down a route. |
|
void |
setShutdownStrategy(ShutdownStrategy shutdownStrategy)
Sets a custom shutdown strategy |
|
void |
setStreamCaching(Boolean cache)
Sets whether stream caching is enabled or not (default is disabled). |
|
void |
setTracing(Boolean tracing)
Sets whether tracing is enabled or not (default is disabled). |
|
void |
setTypeConverter(TypeConverter typeConverter)
|
|
void |
setTypeConverterRegistry(TypeConverterRegistry typeConverterRegistry)
|
|
void |
setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled)
Sets whether or not type converter statistics is enabled. |
|
void |
setUseBreadcrumb(Boolean useBreadcrumb)
Set whether breadcrumb is enabled. |
|
void |
setUseMDCLogging(Boolean useMDCLogging)
Set whether MDC is enabled. |
|
void |
setUuidGenerator(UuidGenerator uuidGenerator)
Sets a custom UuidGenerator (should only be set once) |
|
protected boolean |
shouldStartRoutes()
Should we start newly added routes? |
|
void |
shutdownRoute(String routeId)
Shutdown and removes the given route using ShutdownStrategy. |
|
void |
shutdownRoute(String routeId,
long timeout,
TimeUnit timeUnit)
Shutdown and removes the given route using ShutdownStrategy with a specified timeout. |
|
protected void |
shutdownRouteService(RouteService routeService)
|
|
void |
start()
Starts the service |
|
void |
startRoute(RouteDefinition route)
Starts the given route if it has been previously stopped |
|
void |
startRoute(String routeId)
Starts the given route if it has been previously stopped |
|
protected void |
startRouteDefinitions(Collection<RouteDefinition> list)
|
|
protected void |
startRouteService(RouteService routeService,
boolean addingRoutes)
Starts the given route service |
|
void |
stopRoute(RouteDefinition route)
Stops the given route. |
|
void |
stopRoute(String routeId)
Stops the given route using ShutdownStrategy. |
|
void |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit)
Stops the given route using ShutdownStrategy with a specified timeout. |
|
boolean |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean abortAfterTimeout)
Stops the given route using ShutdownStrategy with a specified timeout
and optional abortAfterTimeout mode. |
|
protected void |
stopRouteService(RouteService routeService)
|
|
protected void |
stopRouteService(RouteService routeService,
boolean removingRoutes)
|
|
void |
suspendRoute(String routeId)
Suspends the given route using ShutdownStrategy. |
|
void |
suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit)
Suspends the given route using ShutdownStrategy with a specified timeout. |
|
protected void |
suspendRouteService(RouteService routeService)
|
|
String |
toString()
|
|
| Methods inherited from class org.apache.camel.support.ServiceSupport |
|---|
doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, stop, suspend |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.apache.camel.CamelContext |
|---|
getStatus, getVersion |
| Methods inherited from interface org.apache.camel.SuspendableService |
|---|
isSuspended, resume, suspend |
| Methods inherited from interface org.apache.camel.Service |
|---|
stop |
| Constructor Detail |
|---|
public DefaultCamelContext()
public DefaultCamelContext(Context jndiContext)
CamelContext using the given JNDI context as the registry
jndiContext - the JNDI contextpublic DefaultCamelContext(Registry registry)
CamelContext using the given registry
registry - the registry| Method Detail |
|---|
public String getName()
CamelContext
getName in interface CamelContextpublic void setName(String name)
name - the namepublic CamelContextNameStrategy getNameStrategy()
CamelContext
getNameStrategy in interface CamelContextpublic void setNameStrategy(CamelContextNameStrategy nameStrategy)
CamelContext
setNameStrategy in interface CamelContextnameStrategy - name strategypublic ManagementNameStrategy getManagementNameStrategy()
CamelContext
getManagementNameStrategy in interface CamelContextpublic void setManagementNameStrategy(ManagementNameStrategy managementNameStrategy)
CamelContext
setManagementNameStrategy in interface CamelContextmanagementNameStrategy - name strategypublic String getManagementName()
CamelContextCamelContext was registered in JMX.
The reason that a CamelContext can have a different name in JMX is the fact to remedy for name clash
in JMX when having multiple CamelContexts in the same JVM. Camel will automatic reassign and use
a free name to avoid failing to start.
getManagementName in interface CamelContextpublic void setManagementName(String managementName)
public Component hasComponent(String componentName)
CamelContext
hasComponent in interface CamelContextcomponentName - the name of the component
public void addComponent(String componentName,
Component component)
CamelContext
addComponent in interface CamelContextcomponentName - the name the component is registered ascomponent - the componentpublic Component getComponent(String name)
CamelContext
getComponent in interface CamelContextname - the name of the component
public <T extends Component> T getComponent(String name,
Class<T> componentType)
CamelContext
getComponent in interface CamelContextname - the name to lookupcomponentType - the expected type
public Component removeComponent(String componentName)
CamelContext
removeComponent in interface CamelContextcomponentName - the component name to remove
public Collection<Endpoint> getEndpoints()
CamelContext
getEndpoints in interface CamelContextpublic Map<String,Endpoint> getEndpointMap()
CamelContext
getEndpointMap in interface CamelContextpublic Endpoint hasEndpoint(String uri)
CamelContext
hasEndpoint in interface CamelContexturi - the URI of the endpoint
public Endpoint addEndpoint(String uri,
Endpoint endpoint)
throws Exception
CamelContext
addEndpoint in interface CamelContexturi - the URI to be used to resolve this endpointendpoint - the endpoint to be added to the context
Exception - if the new endpoint could not be started or the old endpoint could not be stopped
public Collection<Endpoint> removeEndpoints(String uri)
throws Exception
CamelContext
removeEndpoints in interface CamelContexturi - an uri or pattern to match
Exception - if at least one endpoint could not be stoppedfor patternpublic Endpoint getEndpoint(String uri)
CamelContextEndpoint of the specified type.
If the name has a singleton endpoint registered, then the singleton is returned.
Otherwise, a new Endpoint is created and registered.
getEndpoint in interface CamelContexturi - the URI of the endpoint
public <T extends Endpoint> T getEndpoint(String name,
Class<T> endpointType)
CamelContextEndpoint of the specified type.
If the name has a singleton endpoint registered, then the singleton is returned.
Otherwise, a new Endpoint is created and registered.
getEndpoint in interface CamelContextname - the name of the endpointendpointType - the expected type
public void addRegisterEndpointCallback(EndpointStrategy strategy)
CamelContextcallback to allow you to do custom
logic when an Endpoint is about to be registered to the CamelContext endpoint registry.
When a callback is added it will be executed on the already registered endpoints allowing you to catch-up
addRegisterEndpointCallback in interface CamelContextstrategy - callback to be invoked
protected Endpoint addEndpointToRegistry(String uri,
Endpoint endpoint)
uri - uri of the endpointendpoint - the endpoint to add
protected static String normalizeEndpointUri(String uri)
uri - the uri
ResolveEndpointFailedException - if uri cannot be normalizedprotected org.apache.camel.impl.EndpointKey getEndpointKey(String uri)
EndpointRegistry
uri - the endpoint uri
protected org.apache.camel.impl.EndpointKey getEndpointKey(String uri,
Endpoint endpoint)
EndpointRegistry
uri - the endpoint uriendpoint - the endpoint
public List<RouteStartupOrder> getRouteStartupOrder()
public List<Route> getRoutes()
CamelContext
getRoutes in interface CamelContextpublic Route getRoute(String id)
CamelContext
getRoute in interface CamelContextid - id of the route
@Deprecated public void setRoutes(List<Route> routes)
public void addRoutes(RoutesBuilder builder)
throws Exception
CamelContextCamelContext
is already started. You may want to check the state of CamelContext before
adding the routes, using the CamelContext.getStatus() method.
Important: Each route in the same 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.
addRoutes in interface CamelContextbuilder - the builder which will create the routes and add them to this context
Exception - if the routes could not be created for whatever reason
public RoutesDefinition loadRoutesDefinition(InputStream is)
throws Exception
ModelCamelContextInputStream.
loadRoutesDefinition in interface CamelContextloadRoutesDefinition in interface ModelCamelContextis - input stream with the route(s) definition to add
Exception - if the route definitions could not be loaded for whatever reason
public 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 CamelContextaddRouteDefinitions in interface ModelCamelContextrouteDefinitions - the route(s) definition to add
Exception - if the route definitions could not be created for whatever reason
public 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 CamelContextaddRouteDefinition in interface ModelCamelContextrouteDefinition - the route definition to add
Exception - 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 CamelContextremoveRouteDefinitions in interface ModelCamelContextrouteDefinitions - route(s) definitions to remove
Exception - if the route definitions could not be removed for whatever reason
public void removeRouteDefinition(RouteDefinition routeDefinition)
throws Exception
ModelCamelContext
removeRouteDefinition in interface CamelContextremoveRouteDefinition in interface ModelCamelContextrouteDefinition - route definition to remove
Exception - if the route definition could not be removed for whatever reasonpublic ServiceStatus getRouteStatus(String key)
CamelContext
getRouteStatus in interface CamelContextkey - the route id
public void startRoute(RouteDefinition route)
throws Exception
ModelCamelContext
startRoute in interface CamelContextstartRoute in interface ModelCamelContextroute - the route to start
Exception - is thrown if the route could not be started for whatever reasonpublic boolean isStartingRoutes()
CamelContextLifecycleStrategy or the likes, in case
they need to react differently.
isStartingRoutes in interface CamelContext
public void stopRoute(RouteDefinition route)
throws Exception
ModelCamelContext
stopRoute in interface CamelContextstopRoute in interface ModelCamelContextroute - the route to stop
Exception - is thrown if the route could not be stopped for whatever reason
public void startRoute(String routeId)
throws Exception
CamelContext
startRoute in interface CamelContextrouteId - the route id
Exception - is thrown if the route could not be started for whatever reason
public void resumeRoute(String routeId)
throws Exception
CamelContext
resumeRoute in interface CamelContextrouteId - the route id
Exception - is thrown if the route could not be resumed for whatever reason
public boolean stopRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean abortAfterTimeout)
throws Exception
CamelContextShutdownStrategy with a specified timeout
and optional abortAfterTimeout mode.
stopRoute in interface CamelContextrouteId - the route idtimeout - timeouttimeUnit - the unit to useabortAfterTimeout - should abort shutdown after timeout
Exception - is thrown if the route could not be stopped for whatever reasonCamelContext.suspendRoute(String, long, java.util.concurrent.TimeUnit)
public void stopRoute(String routeId)
throws Exception
CamelContextShutdownStrategy.
stopRoute in interface CamelContextrouteId - the route id
Exception - is thrown if the route could not be stopped for whatever reasonCamelContext.suspendRoute(String)
public void stopRoute(String routeId,
long timeout,
TimeUnit timeUnit)
throws Exception
CamelContextShutdownStrategy with a specified timeout.
stopRoute in interface CamelContextrouteId - the route idtimeout - timeouttimeUnit - the unit to use
Exception - is thrown if the route could not be stopped for whatever reasonCamelContext.suspendRoute(String, long, java.util.concurrent.TimeUnit)
public void shutdownRoute(String routeId)
throws Exception
CamelContextShutdownStrategy.
shutdownRoute in interface CamelContextrouteId - the route id
Exception - is thrown if the route could not be shutdown for whatever reason
public void shutdownRoute(String routeId,
long timeout,
TimeUnit timeUnit)
throws Exception
CamelContextShutdownStrategy with a specified timeout.
shutdownRoute in interface CamelContextrouteId - the route idtimeout - timeouttimeUnit - the unit to use
Exception - is thrown if the route could not be shutdown for whatever reason
public boolean removeRoute(String routeId)
throws Exception
CamelContext
removeRoute in interface CamelContextrouteId - the route id
Exception - is thrown if the route could not be shutdown for whatever reason
public void suspendRoute(String routeId)
throws Exception
CamelContextShutdownStrategy.
Suspending a route is more gently than stopping, as the route consumers will be suspended (if they support)
otherwise the consumers will be stopped.
By suspending the route services will be kept running (if possible) and therefore its faster to resume the route.
If the route does not support suspension the route will be stopped instead
suspendRoute in interface CamelContextrouteId - the route id
Exception - is thrown if the route could not be suspended for whatever reason
public void suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit)
throws Exception
CamelContextShutdownStrategy with a specified timeout.
Suspending a route is more gently than stopping, as the route consumers will be suspended (if they support)
otherwise the consumers will be stopped.
By suspending the route services will be kept running (if possible) and therefore its faster to resume the route.
If the route does not support suspension the route will be stopped instead
suspendRoute in interface CamelContextrouteId - the route idtimeout - timeouttimeUnit - the unit to use
Exception - is thrown if the route could not be suspended for whatever reason
public void addService(Object object)
throws Exception
CamelContextCamelContext injected if its CamelContextAware.
The service will also be enlisted in JMX for management (if JMX is enabled).
The service will be started, if its not already started.
addService in interface CamelContextobject - the service
Exception - can be thrown when starting the service
public boolean removeService(Object object)
throws Exception
CamelContextCamelContext.addService(Object) method.
This method will not change the service lifecycle.
removeService in interface CamelContextobject - the service
Exception - can be thrown if error removing the servicepublic boolean hasService(Object object)
CamelContext
hasService in interface CamelContextobject - the service
public void addStartupListener(StartupListener listener)
throws Exception
CamelContextCamelContext have just been started.
This allows listeners to do any custom work after the routes and other services have been started and are running.
Important: The listener will always be invoked, also if the CamelContext has already been
started, see the StartupListener.onCamelContextStarted(CamelContext, boolean) method.
addStartupListener in interface CamelContextlistener - the listener
Exception - can be thrown if CamelContext is already started and the listener is invoked
and cause an exception to be thrownpublic Language resolveLanguage(String language)
CamelContext
resolveLanguage in interface CamelContextlanguage - name of the language
public String getPropertyPrefixToken()
CamelContextnull.
getPropertyPrefixToken in interface CamelContextnullpublic String getPropertySuffixToken()
CamelContextnull.
getPropertySuffixToken in interface CamelContextnull
public String resolvePropertyPlaceholders(String text)
throws Exception
CamelContext
resolvePropertyPlaceholders in interface CamelContexttext - the text such as an endpoint uri or the likes
Exception - is thrown if property placeholders was used and there was an error resolving thempublic TypeConverter getTypeConverter()
CamelContext
getTypeConverter in interface CamelContextpublic void setTypeConverter(TypeConverter typeConverter)
public TypeConverterRegistry getTypeConverterRegistry()
CamelContext
getTypeConverterRegistry in interface CamelContextpublic void setTypeConverterRegistry(TypeConverterRegistry typeConverterRegistry)
public Injector getInjector()
CamelContext
getInjector in interface CamelContextpublic void setInjector(Injector injector)
public ManagementMBeanAssembler getManagementMBeanAssembler()
CamelContext
getManagementMBeanAssembler in interface CamelContextpublic void setManagementMBeanAssembler(ManagementMBeanAssembler managementMBeanAssembler)
public ComponentResolver getComponentResolver()
public void setComponentResolver(ComponentResolver componentResolver)
public LanguageResolver getLanguageResolver()
public void setLanguageResolver(LanguageResolver languageResolver)
public boolean isAutoCreateComponents()
public void setAutoCreateComponents(boolean autoCreateComponents)
public Registry getRegistry()
CamelContext
getRegistry in interface CamelContextpublic void setJndiContext(Context jndiContext)
jndiContext - is the JNDI context to use as the registrysetRegistry(org.apache.camel.spi.Registry)public void setRegistry(Registry registry)
public List<LifecycleStrategy> getLifecycleStrategies()
CamelContext
getLifecycleStrategies in interface CamelContextpublic void setLifecycleStrategies(List<LifecycleStrategy> lifecycleStrategies)
public void addLifecycleStrategy(LifecycleStrategy lifecycleStrategy)
CamelContext
addLifecycleStrategy in interface CamelContextlifecycleStrategy - the strategypublic List<RouteDefinition> getRouteDefinitions()
ModelCamelContext
getRouteDefinitions in interface CamelContextgetRouteDefinitions in interface ModelCamelContextpublic RouteDefinition getRouteDefinition(String id)
ModelCamelContext
getRouteDefinition in interface CamelContextgetRouteDefinition in interface ModelCamelContextid - id of the route
public List<InterceptStrategy> getInterceptStrategies()
CamelContext
getInterceptStrategies in interface CamelContextpublic void setInterceptStrategies(List<InterceptStrategy> interceptStrategies)
public void addInterceptStrategy(InterceptStrategy interceptStrategy)
CamelContext
addInterceptStrategy in interface CamelContextinterceptStrategy - the strategypublic void setStreamCaching(Boolean cache)
RuntimeConfiguration
setStreamCaching in interface RuntimeConfigurationcache - whether stream caching is enabled or notpublic Boolean isStreamCaching()
RuntimeConfiguration
isStreamCaching in interface RuntimeConfigurationpublic void setTracing(Boolean tracing)
RuntimeConfiguration
setTracing in interface RuntimeConfigurationtracing - whether to enable tracing.public Boolean isTracing()
RuntimeConfiguration
isTracing in interface RuntimeConfigurationpublic Boolean isHandleFault()
RuntimeConfiguration
isHandleFault in interface RuntimeConfigurationpublic void setHandleFault(Boolean handleFault)
RuntimeConfiguration
setHandleFault in interface RuntimeConfigurationhandleFault - whether to enable fault handling.public Long getDelayer()
RuntimeConfiguration
getDelayer in interface RuntimeConfigurationpublic void setDelayer(Long delay)
RuntimeConfiguration
setDelayer in interface RuntimeConfigurationdelay - delay in millispublic ProducerTemplate createProducerTemplate()
CamelContextProducerTemplate which is started and therefore ready to use right away.
See this FAQ before use:
Why does Camel use too many threads with ProducerTemplate?
Important: Make sure to call Service.stop() when you are done using the template,
to clean up any resources.
Will use cache size defined in Camel property with key Exchange.MAXIMUM_CACHE_POOL_SIZE.
If no key was defined then it will fallback to a default size of 1000.
You can also use the ProducerTemplate.setMaximumCacheSize(int) method to use a custom value
before starting the template.
createProducerTemplate in interface CamelContextpublic ProducerTemplate createProducerTemplate(int maximumCacheSize)
CamelContextProducerTemplate which is started and therefore ready to use right away.
See this FAQ before use:
Why does Camel use too many threads with ProducerTemplate?
Important: Make sure to call Service.stop() when you are done using the template,
to clean up any resources.
createProducerTemplate in interface CamelContextmaximumCacheSize - the maximum cache size
public ConsumerTemplate createConsumerTemplate()
CamelContextConsumerTemplate which is started and therefore ready to use right away.
See this FAQ before use:
Why does Camel use too many threads with ProducerTemplate? as it also applies for ConsumerTemplate.
Important: Make sure to call Service.stop() when you are done using the template,
to clean up any resources.
Will use cache size defined in Camel property with key Exchange.MAXIMUM_CACHE_POOL_SIZE.
If no key was defined then it will fallback to a default size of 1000.
You can also use the ConsumerTemplate.setMaximumCacheSize(int) method to use a custom value
before starting the template.
createConsumerTemplate in interface CamelContextpublic ConsumerTemplate createConsumerTemplate(int maximumCacheSize)
CamelContextConsumerTemplate which is started and therefore ready to use right away.
See this FAQ before use:
Why does Camel use too many threads with ProducerTemplate? as it also applies for ConsumerTemplate.
Important: Make sure to call Service.stop() when you are done using the template,
to clean up any resources.
createConsumerTemplate in interface CamelContextmaximumCacheSize - the maximum cache size
public ErrorHandlerBuilder getErrorHandlerBuilder()
CamelContext
getErrorHandlerBuilder in interface CamelContextpublic void setErrorHandlerBuilder(ErrorHandlerFactory errorHandlerBuilder)
CamelContext
setErrorHandlerBuilder in interface CamelContexterrorHandlerBuilder - the builderpublic ScheduledExecutorService getErrorHandlerExecutorService()
CamelContext
getErrorHandlerExecutorService in interface CamelContextpublic void setProducerServicePool(ServicePool<Endpoint,Producer> producerServicePool)
CamelContextProducer pooling.
setProducerServicePool in interface CamelContextproducerServicePool - the poolpublic ServicePool<Endpoint,Producer> getProducerServicePool()
CamelContextProducer pooling.
getProducerServicePool in interface CamelContextpublic String getUptime()
CamelContext
getUptime in interface CamelContext
protected void doSuspend()
throws Exception
ServiceSupport
doSuspend in class ServiceSupportException
protected void doResume()
throws Exception
ServiceSupport
doResume in class ServiceSupportException
public void start()
throws Exception
Service
start in interface Servicestart in class ServiceSupportException - is thrown if starting failed
protected void doStart()
throws Exception
ServiceSupportServiceSupport.doStop() for more details.
doStart in class ServiceSupportExceptionServiceSupport.doStop()
protected void doStop()
throws Exception
ServiceSupportServiceSupport.doStop() method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext is shutting down.
doStop in class ServiceSupportExceptionServiceSupport.doStart()
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 routes
Exception - 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(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 routes
Exception - is thrown if error starting the routes
protected void safelyStartRouteServices(boolean forceAutoStart,
boolean checkClash,
boolean startConsumer,
boolean resumeConsumer,
boolean addingRoutes,
RouteService... routeServices)
throws Exception
ExceptionsafelyStartRouteServices(boolean,boolean,boolean,boolean,java.util.Collection)protected void forceLazyInitialization()
protected void forceStopLazyInitialization()
protected TypeConverter createTypeConverter()
protected Injector createInjector()
protected ManagementMBeanAssembler createManagementMBeanAssembler()
protected ComponentResolver createComponentResolver()
protected Registry createRegistry()
protected Endpoint createEndpoint(String uri)
Registry
uri - the uri for the endpoint to be created
protected Endpoint convertBeanToEndpoint(String uri,
Object bean)
Registry to an endpoint using
some kind of transformation or wrapper
uri - the uri for the endpoint (and name in the registry)bean - the bean to be converted to an endpoint, which will be not null
protected boolean shouldStartRoutes()
protected PropertiesComponent getPropertiesComponent()
null if no properties component is in use.
public void setDataFormats(Map<String,DataFormatDefinition> dataFormats)
ModelCamelContext
setDataFormats in interface CamelContextsetDataFormats in interface ModelCamelContextdataFormats - the data formatspublic Map<String,DataFormatDefinition> getDataFormats()
ModelCamelContext
getDataFormats in interface CamelContextgetDataFormats in interface ModelCamelContextpublic Map<String,String> getProperties()
CamelContext
getProperties in interface CamelContextpublic void setProperties(Map<String,String> properties)
CamelContext
setProperties in interface CamelContextproperties - propertiespublic FactoryFinder getDefaultFactoryFinder()
CamelContext
getDefaultFactoryFinder in interface CamelContextpublic void setFactoryFinderResolver(FactoryFinderResolver resolver)
CamelContext
setFactoryFinderResolver in interface CamelContextresolver - the factory finder resolver
public FactoryFinder getFactoryFinder(String path)
throws NoFactoryAvailableException
CamelContext
getFactoryFinder in interface CamelContextpath - the META-INF path
NoFactoryAvailableException - is thrown if a factory could not be foundpublic ClassResolver getClassResolver()
CamelContext
getClassResolver in interface CamelContextpublic void setClassResolver(ClassResolver classResolver)
CamelContext
setClassResolver in interface CamelContextclassResolver - the resolverpublic PackageScanClassResolver getPackageScanClassResolver()
CamelContext
getPackageScanClassResolver in interface CamelContextpublic void setPackageScanClassResolver(PackageScanClassResolver packageScanClassResolver)
CamelContext
setPackageScanClassResolver in interface CamelContextpackageScanClassResolver - the resolverpublic List<String> getComponentNames()
CamelContext
getComponentNames in interface CamelContextpublic List<String> getLanguageNames()
CamelContext
getLanguageNames in interface CamelContextpublic NodeIdFactory getNodeIdFactory()
CamelContext
getNodeIdFactory in interface CamelContextpublic void setNodeIdFactory(NodeIdFactory idFactory)
CamelContext
setNodeIdFactory in interface CamelContextidFactory - custom factory to usepublic ManagementStrategy getManagementStrategy()
CamelContext
getManagementStrategy in interface CamelContextpublic void setManagementStrategy(ManagementStrategy managementStrategy)
CamelContext
setManagementStrategy in interface CamelContextmanagementStrategy - the management strategypublic InterceptStrategy getDefaultTracer()
CamelContext
getDefaultTracer in interface CamelContextpublic void setDefaultTracer(InterceptStrategy defaultTracer)
CamelContext
setDefaultTracer in interface CamelContextdefaultTracer - the custom tracer to use as default tracerpublic void disableJMX()
CamelContextManagementStrategy.
disableJMX in interface CamelContextpublic InflightRepository getInflightRepository()
CamelContext
getInflightRepository in interface CamelContextpublic void setInflightRepository(InflightRepository repository)
CamelContext
setInflightRepository in interface CamelContextrepository - the repositorypublic void setAutoStartup(Boolean autoStartup)
RuntimeConfigurationCamelContexts are always started.
setAutoStartup in interface RuntimeConfigurationautoStartup - whether to start up automatically.public Boolean isAutoStartup()
RuntimeConfiguration
isAutoStartup in interface RuntimeConfiguration@Deprecated public Boolean isLazyLoadTypeConverters()
CamelContext
isLazyLoadTypeConverters in interface CamelContext@Deprecated public void setLazyLoadTypeConverters(Boolean lazyLoadTypeConverters)
CamelContext
setLazyLoadTypeConverters in interface CamelContextlazyLoadTypeConverters - true to load lazy, false to load on startuppublic Boolean isTypeConverterStatisticsEnabled()
CamelContext
isTypeConverterStatisticsEnabled in interface CamelContextpublic void setTypeConverterStatisticsEnabled(Boolean typeConverterStatisticsEnabled)
CamelContextorg.apache.camel.spi.TypeConverterRegistry#getStatistics()#setTypeConverterStatisticsEnabled(Boolean) method,
or from JMX on the ManagedTypeConverterRegistryMBean mbean.
setTypeConverterStatisticsEnabled in interface CamelContexttypeConverterStatisticsEnabled - true to enable, false to disablepublic Boolean isUseMDCLogging()
CamelContext
isUseMDCLogging in interface CamelContextpublic void setUseMDCLogging(Boolean useMDCLogging)
CamelContext
setUseMDCLogging in interface CamelContextuseMDCLogging - true to enable MDC logging, false to disablepublic Boolean isUseBreadcrumb()
CamelContext
isUseBreadcrumb in interface CamelContextpublic void setUseBreadcrumb(Boolean useBreadcrumb)
CamelContext
setUseBreadcrumb in interface CamelContextuseBreadcrumb - true to enable breadcrumb, false to disablepublic ClassLoader getApplicationContextClassLoader()
CamelContext
getApplicationContextClassLoader in interface CamelContextpublic void setApplicationContextClassLoader(ClassLoader classLoader)
CamelContext
setApplicationContextClassLoader in interface CamelContextclassLoader - the class loaderpublic DataFormatResolver getDataFormatResolver()
CamelContext
getDataFormatResolver in interface CamelContextpublic void setDataFormatResolver(DataFormatResolver dataFormatResolver)
CamelContext
setDataFormatResolver in interface CamelContextdataFormatResolver - the resolverpublic DataFormat resolveDataFormat(String name)
CamelContext
resolveDataFormat in interface CamelContextname - the data format name or a reference to it in the Registry
public DataFormatDefinition resolveDataFormatDefinition(String name)
ModelCamelContext
resolveDataFormatDefinition in interface CamelContextresolveDataFormatDefinition in interface ModelCamelContextname - the data format definition name or a reference to it in the Registry
protected Component lookupPropertiesComponent()
public ShutdownStrategy getShutdownStrategy()
CamelContext
getShutdownStrategy in interface CamelContextpublic void setShutdownStrategy(ShutdownStrategy shutdownStrategy)
CamelContext
setShutdownStrategy in interface CamelContextshutdownStrategy - the custom strategypublic ShutdownRoute getShutdownRoute()
RuntimeConfiguration
getShutdownRoute in interface RuntimeConfigurationpublic void setShutdownRoute(ShutdownRoute shutdownRoute)
RuntimeConfiguration
setShutdownRoute in interface RuntimeConfigurationshutdownRoute - the option to use.public ShutdownRunningTask getShutdownRunningTask()
RuntimeConfiguration
getShutdownRunningTask in interface RuntimeConfigurationpublic void setShutdownRunningTask(ShutdownRunningTask shutdownRunningTask)
RuntimeConfiguration
setShutdownRunningTask in interface RuntimeConfigurationshutdownRunningTask - the option to use.public ExecutorServiceManager getExecutorServiceManager()
CamelContextExecutorServiceManager
getExecutorServiceManager in interface CamelContext@Deprecated public ExecutorServiceStrategy getExecutorServiceStrategy()
CamelContextExecutorServiceStrategy
getExecutorServiceStrategy in interface CamelContextpublic void setExecutorServiceManager(ExecutorServiceManager executorServiceManager)
CamelContextExecutorServiceManager
setExecutorServiceManager in interface CamelContextexecutorServiceManager - the custom managerpublic ProcessorFactory getProcessorFactory()
CamelContextProcessorFactory
getProcessorFactory in interface CamelContextpublic void setProcessorFactory(ProcessorFactory processorFactory)
CamelContextProcessorFactory
setProcessorFactory in interface CamelContextprocessorFactory - the custom factorypublic Debugger getDebugger()
CamelContextDebugger
getDebugger in interface CamelContextpublic void setDebugger(Debugger debugger)
CamelContextDebugger
setDebugger in interface CamelContextdebugger - the debuggerpublic UuidGenerator getUuidGenerator()
CamelContextUuidGenerator
getUuidGenerator in interface CamelContextpublic void setUuidGenerator(UuidGenerator uuidGenerator)
CamelContextUuidGenerator (should only be set once)
setUuidGenerator in interface CamelContextuuidGenerator - the UUID Generatorprotected Map<String,RouteService> getRouteServices()
protected ManagementStrategy createManagementStrategy()
public String toString()
toString in class Objectpublic static void setContextCounter(int value)
value - new value for the context counter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||