public class DefaultRouteController extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.RouteController
Constructor and Description |
---|
DefaultRouteController() |
DefaultRouteController(DefaultCamelContext 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) |
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 DefaultRouteController()
public DefaultRouteController(DefaultCamelContext 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
protected void doStart() throws Exception
doStart
in class org.apache.camel.support.service.ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class org.apache.camel.support.service.ServiceSupport
Exception
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 Collection<org.apache.camel.Route> getControlledRoutes()
getControlledRoutes
in interface org.apache.camel.spi.RouteController
Apache Camel