public class DefaultRouteController
extends org.apache.camel.support.service.ServiceSupport
implements org.apache.camel.spi.RouteController
Constructor and Description |
---|
DefaultRouteController() |
DefaultRouteController(org.apache.camel.CamelContext camelContext) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.CamelContext |
getCamelContext() |
Collection<org.apache.camel.Route> |
getControlledRoutes() |
protected org.apache.camel.spi.RouteController |
getInternalRouteController() |
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, 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
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 Collection<org.apache.camel.Route> getControlledRoutes()
getControlledRoutes
in interface org.apache.camel.spi.RouteController
Apache Camel