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) |
getCamelContext, getRouteStatus, isStartingRoutes, startAllRoutes
doInit, doResume, doShutdown, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public ClusteredRouteController()
public 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)
CamelClusterService
public Collection<org.apache.camel.Route> getControlledRoutes()
getControlledRoutes
in interface org.apache.camel.spi.RouteController
getControlledRoutes
in class org.apache.camel.impl.engine.DefaultRouteController
public void doStart() throws Exception
doStart
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public void doStop() throws Exception
doStop
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
setCamelContext
in class org.apache.camel.impl.engine.DefaultRouteController
public void startRoute(String routeId) throws Exception
startRoute
in interface org.apache.camel.spi.RouteController
startRoute
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public void stopRoute(String routeId) throws Exception
stopRoute
in interface org.apache.camel.spi.RouteController
stopRoute
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
stopRoute
in interface org.apache.camel.spi.RouteController
stopRoute
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
stopRoute
in interface org.apache.camel.spi.RouteController
stopRoute
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public void suspendRoute(String routeId) throws Exception
suspendRoute
in interface org.apache.camel.spi.RouteController
suspendRoute
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
suspendRoute
in interface org.apache.camel.spi.RouteController
suspendRoute
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
public void resumeRoute(String routeId) throws Exception
resumeRoute
in interface org.apache.camel.spi.RouteController
resumeRoute
in class org.apache.camel.impl.engine.DefaultRouteController
Exception
Apache Camel