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 |
getRouteStartupLoggingLevel() |
org.apache.camel.ServiceStatus |
getRouteStatus(String routeId) |
boolean |
isStartingRoutes() |
void |
resumeRoute(String routeId) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setRouteStartupLoggingLevel(org.apache.camel.LoggingLevel routeStartupLoggingLevel) |
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, suspend
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public DefaultRouteController()
public DefaultRouteController(org.apache.camel.CamelContext camelContext)
public void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.CamelContext getCamelContext()
getCamelContext
in interface org.apache.camel.CamelContextAware
public org.apache.camel.LoggingLevel getRouteStartupLoggingLevel()
getRouteStartupLoggingLevel
in interface org.apache.camel.spi.RouteController
public void setRouteStartupLoggingLevel(org.apache.camel.LoggingLevel routeStartupLoggingLevel)
setRouteStartupLoggingLevel
in interface org.apache.camel.spi.RouteController
protected org.apache.camel.spi.RouteController getInternalRouteController()
public void startAllRoutes() throws Exception
startAllRoutes
in interface org.apache.camel.spi.RouteController
Exception
public boolean isStartingRoutes()
isStartingRoutes
in interface org.apache.camel.spi.RouteController
public org.apache.camel.ServiceStatus getRouteStatus(String routeId)
getRouteStatus
in interface org.apache.camel.spi.RouteController
public void startRoute(String routeId) throws Exception
startRoute
in interface org.apache.camel.spi.RouteController
Exception
public void stopRoute(String routeId) throws Exception
stopRoute
in interface org.apache.camel.spi.RouteController
Exception
public void stopRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
stopRoute
in interface org.apache.camel.spi.RouteController
Exception
public boolean stopRoute(String routeId, long timeout, TimeUnit timeUnit, boolean abortAfterTimeout) throws Exception
stopRoute
in interface org.apache.camel.spi.RouteController
Exception
public void suspendRoute(String routeId) throws Exception
suspendRoute
in interface org.apache.camel.spi.RouteController
Exception
public void suspendRoute(String routeId, long timeout, TimeUnit timeUnit) throws Exception
suspendRoute
in interface org.apache.camel.spi.RouteController
Exception
public void resumeRoute(String routeId) throws Exception
resumeRoute
in interface org.apache.camel.spi.RouteController
Exception
public <T extends org.apache.camel.spi.RouteController> T adapt(Class<T> type)
adapt
in interface org.apache.camel.spi.RouteController
public org.apache.camel.spi.SupervisingRouteController supervising()
supervising
in interface org.apache.camel.spi.RouteController
public Collection<org.apache.camel.Route> getControlledRoutes()
getControlledRoutes
in interface org.apache.camel.spi.RouteController
Apache Camel