public class RouteService extends org.apache.camel.support.ChildServiceSupport
RouteDefinition so that it can be stopped independently
of other routes| Constructor and Description |
|---|
RouteService(AbstractCamelContext camelContext,
RouteDefinition routeDefinition,
List<org.apache.camel.spi.RouteContext> routeContexts,
List<org.apache.camel.Route> routes) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doResume() |
protected void |
doShutdown() |
protected void |
doStart() |
protected void |
doStop() |
protected void |
doSuspend() |
protected void |
doWarmUp() |
Set<org.apache.camel.Endpoint> |
gatherEndpoints()
Gather all the endpoints this route service uses
This implementation finds the endpoints by searching all the child services
for
EndpointAware processors which uses an endpoint. |
org.apache.camel.CamelContext |
getCamelContext() |
String |
getId() |
Map<org.apache.camel.Route,org.apache.camel.Consumer> |
getInputs()
Gets the inputs to the routes.
|
List<org.apache.camel.spi.RouteContext> |
getRouteContexts() |
RouteDefinition |
getRouteDefinition() |
Collection<org.apache.camel.Route> |
getRoutes() |
boolean |
isRemovingRoutes() |
void |
setRemovingRoutes(boolean removingRoutes) |
protected void |
startChildService(org.apache.camel.Route route,
List<org.apache.camel.Service> services) |
protected void |
stopChildService(org.apache.camel.Route route,
Set<org.apache.camel.Service> services,
boolean shutdown) |
void |
warmUp() |
addChildService, removeChildService, shutdown, start, stoppublic RouteService(AbstractCamelContext camelContext, RouteDefinition routeDefinition, List<org.apache.camel.spi.RouteContext> routeContexts, List<org.apache.camel.Route> routes)
public org.apache.camel.CamelContext getCamelContext()
public List<org.apache.camel.spi.RouteContext> getRouteContexts()
public RouteDefinition getRouteDefinition()
public Collection<org.apache.camel.Route> getRoutes()
public Set<org.apache.camel.Endpoint> gatherEndpoints()
EndpointAware processors which uses an endpoint.public Map<org.apache.camel.Route,org.apache.camel.Consumer> getInputs()
Consumer as inputs for the routespublic boolean isRemovingRoutes()
public void setRemovingRoutes(boolean removingRoutes)
protected 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.ServiceSupportExceptionprotected void doShutdown() throws Exception
doShutdown in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doSuspend() throws Exception
doSuspend in class org.apache.camel.support.service.ServiceSupportExceptionprotected void doResume() throws Exception
doResume in class org.apache.camel.support.service.ServiceSupportExceptionprotected void startChildService(org.apache.camel.Route route, List<org.apache.camel.Service> services) throws Exception
Exceptionprotected void stopChildService(org.apache.camel.Route route, Set<org.apache.camel.Service> services, boolean shutdown) throws Exception
ExceptionApache Camel