public class ClusteredRouteController
extends org.apache.camel.impl.engine.DefaultRouteController
| Constructor and Description |
|---|
ClusteredRouteController() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFilter(ClusteredRouteFilter filter)
Add a filter used to to filter cluster aware routes.
|
void |
addRouteConfiguration(String routeId,
ClusteredRouteConfiguration configuration)
Add a configuration for the given route.
|
void |
doStart() |
void |
doStop() |
org.apache.camel.cluster.CamelClusterService |
getClusterService() |
org.apache.camel.cluster.CamelClusterService.Selector |
getClusterServiceSelector() |
Collection<org.apache.camel.Route> |
getControlledRoutes() |
Collection<ClusteredRouteFilter> |
getFilters() |
Duration |
getInitialDelay() |
String |
getNamespace() |
Map<String,ClusteredRouteConfiguration> |
getRoutesConfiguration() |
void |
resumeRoute(String routeId) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setClusterService(org.apache.camel.cluster.CamelClusterService clusterService)
Set the cluster service to use.
|
void |
setClusterServiceSelector(org.apache.camel.cluster.CamelClusterService.Selector clusterServiceSelector)
Set the selector strategy to look-up a
CamelClusterService |
void |
setFilters(Collection<ClusteredRouteFilter> filters)
Sets the filters used to filter cluster aware routes.
|
void |
setInitialDelay(Duration initialDelay)
Set the amount of time the route controller should wait before to start
the routes after the camel context is started.
|
void |
setNamespace(String namespace)
Set the default namespace.
|
void |
setRoutesConfiguration(Map<String,ClusteredRouteConfiguration> configurations)
Sets the configurations for the routes.
|
void |
startRoute(String routeId) |
void |
stopRoute(String routeId) |
void |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
boolean |
stopRoute(String routeId,
long timeout,
TimeUnit timeUnit,
boolean abortAfterTimeout) |
void |
suspendRoute(String routeId) |
void |
suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
adapt, getCamelContext, getInternalRouteController, getRouteStartupLoggingLevel, getRouteStatus, isStartingRoutes, setRouteStartupLoggingLevel, startAllRoutes, supervisingbuild, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic void addFilter(ClusteredRouteFilter filter)
public void setFilters(Collection<ClusteredRouteFilter> filters)
public Collection<ClusteredRouteFilter> getFilters()
public void addRouteConfiguration(String routeId, ClusteredRouteConfiguration configuration)
public void setRoutesConfiguration(Map<String,ClusteredRouteConfiguration> configurations)
public Map<String,ClusteredRouteConfiguration> getRoutesConfiguration()
public Duration getInitialDelay()
public void setInitialDelay(Duration initialDelay)
initialDelay - the initial delay.public String getNamespace()
public void setNamespace(String namespace)
public org.apache.camel.cluster.CamelClusterService getClusterService()
public void setClusterService(org.apache.camel.cluster.CamelClusterService clusterService)
public org.apache.camel.cluster.CamelClusterService.Selector getClusterServiceSelector()
public void setClusterServiceSelector(org.apache.camel.cluster.CamelClusterService.Selector clusterServiceSelector)
CamelClusterServicepublic Collection<org.apache.camel.Route> getControlledRoutes()
getControlledRoutes in interface org.apache.camel.spi.RouteControllergetControlledRoutes in class org.apache.camel.impl.engine.DefaultRouteControllerpublic void doStart()
throws Exception
doStart in class org.apache.camel.support.service.BaseServiceExceptionpublic void doStop()
throws Exception
doStop in class org.apache.camel.support.service.BaseServiceExceptionpublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwaresetCamelContext in class org.apache.camel.impl.engine.DefaultRouteControllerpublic void startRoute(String routeId) throws Exception
startRoute in interface org.apache.camel.spi.RouteControllerstartRoute in class org.apache.camel.impl.engine.DefaultRouteControllerExceptionpublic void stopRoute(String routeId) throws Exception
stopRoute in interface org.apache.camel.spi.RouteControllerstopRoute in class org.apache.camel.impl.engine.DefaultRouteControllerExceptionpublic void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
stopRoute in interface org.apache.camel.spi.RouteControllerstopRoute in class org.apache.camel.impl.engine.DefaultRouteControllerExceptionpublic boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
stopRoute in interface org.apache.camel.spi.RouteControllerstopRoute in class org.apache.camel.impl.engine.DefaultRouteControllerExceptionpublic void suspendRoute(String routeId) throws Exception
suspendRoute in interface org.apache.camel.spi.RouteControllersuspendRoute in class org.apache.camel.impl.engine.DefaultRouteControllerExceptionpublic void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
suspendRoute in interface org.apache.camel.spi.RouteControllersuspendRoute in class org.apache.camel.impl.engine.DefaultRouteControllerExceptionApache Camel