public class DefaultRouteController
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.RouteController, org.apache.camel.NonManagedService
RouteController that starts the routes in a fail-fast mode, which means if any of the routes fail
to startup then this causes Camel to fail to startup as well.DefaultSupervisingRouteController| Constructor and Description |
|---|
DefaultRouteController() |
DefaultRouteController(org.apache.camel.CamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
<T extends org.apache.camel.spi.RouteController> |
adapt(Class<T> type) |
org.apache.camel.CamelContext |
getCamelContext() |
Collection<org.apache.camel.Route> |
getControlledRoutes() |
protected org.apache.camel.spi.RouteController |
getInternalRouteController() |
org.apache.camel.LoggingLevel |
getLoggingLevel() |
org.apache.camel.ServiceStatus |
getRouteStatus(String routeId) |
boolean |
isStartingRoutes() |
boolean |
isSupervising() |
void |
resumeRoute(String routeId) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel) |
void |
startAllRoutes() |
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) |
org.apache.camel.spi.SupervisingRouteController |
supervising() |
void |
suspendRoute(String routeId) |
void |
suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, 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 DefaultRouteController()
public DefaultRouteController(org.apache.camel.CamelContext camelContext)
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic org.apache.camel.LoggingLevel getLoggingLevel()
getLoggingLevel in interface org.apache.camel.spi.RouteControllerpublic void setLoggingLevel(org.apache.camel.LoggingLevel loggingLevel)
setLoggingLevel in interface org.apache.camel.spi.RouteControllerpublic boolean isSupervising()
isSupervising in interface org.apache.camel.spi.RouteControllerprotected org.apache.camel.spi.RouteController getInternalRouteController()
public void startAllRoutes()
throws Exception
startAllRoutes in interface org.apache.camel.spi.RouteControllerExceptionpublic boolean isStartingRoutes()
isStartingRoutes in interface org.apache.camel.spi.RouteControllerpublic org.apache.camel.ServiceStatus getRouteStatus(String routeId)
getRouteStatus in interface org.apache.camel.spi.RouteControllerpublic void startRoute(String routeId) throws Exception
startRoute in interface org.apache.camel.spi.RouteControllerExceptionpublic void stopRoute(String routeId) throws Exception
stopRoute in interface org.apache.camel.spi.RouteControllerExceptionpublic void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
stopRoute in interface org.apache.camel.spi.RouteControllerExceptionpublic boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
stopRoute in interface org.apache.camel.spi.RouteControllerExceptionpublic void suspendRoute(String routeId) throws Exception
suspendRoute in interface org.apache.camel.spi.RouteControllerExceptionpublic void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
suspendRoute in interface org.apache.camel.spi.RouteControllerExceptionpublic void resumeRoute(String routeId) throws Exception
resumeRoute in interface org.apache.camel.spi.RouteControllerExceptionpublic <T extends org.apache.camel.spi.RouteController> T adapt(Class<T> type)
adapt in interface org.apache.camel.spi.RouteControllerpublic org.apache.camel.spi.SupervisingRouteController supervising()
supervising in interface org.apache.camel.spi.RouteControllerpublic Collection<org.apache.camel.Route> getControlledRoutes()
getControlledRoutes in interface org.apache.camel.spi.RouteControllerApache Camel