public class DefaultRouteController
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.RouteController
| Constructor and Description |
|---|
DefaultRouteController() |
DefaultRouteController(AbstractCamelContext camelContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
Collection<org.apache.camel.Route> |
getControlledRoutes() |
org.apache.camel.ServiceStatus |
getRouteStatus(String routeId) |
boolean |
isStartingRoutes() |
void |
resumeRoute(String routeId) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
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) |
void |
suspendRoute(String routeId) |
void |
suspendRoute(String routeId,
long timeout,
TimeUnit timeUnit) |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic DefaultRouteController()
public DefaultRouteController(AbstractCamelContext 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.CamelContextAwareprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.service.ServiceSupportExceptionpublic 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 Collection<org.apache.camel.Route> getControlledRoutes()
getControlledRoutes in interface org.apache.camel.spi.RouteControllerApache Camel