org.apache.camel.impl
Class RouteService
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.support.ChildServiceSupport
org.apache.camel.impl.RouteService
- All Implemented Interfaces:
- Service, ShutdownableService, StatefulService, SuspendableService
public class RouteService
- extends ChildServiceSupport
Represents the runtime objects for a given RouteDefinition
so that it can be stopped independently
of other routes
- Version:
Methods inherited from class org.apache.camel.support.ServiceSupport |
getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, suspend |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RouteService
public RouteService(DefaultCamelContext camelContext,
RouteDefinition routeDefinition,
List<RouteContext> routeContexts,
List<Route> routes)
getId
public String getId()
getCamelContext
public CamelContext getCamelContext()
getRouteContexts
public List<RouteContext> getRouteContexts()
getRouteDefinition
public RouteDefinition getRouteDefinition()
getRoutes
public Collection<Route> getRoutes()
getInputs
public Map<Route,Consumer> getInputs()
- Gets the inputs to the routes.
- Returns:
- list of
Consumer
as inputs for the routes
isRemovingRoutes
public boolean isRemovingRoutes()
setRemovingRoutes
public void setRemovingRoutes(boolean removingRoutes)
warmUp
public void warmUp()
throws Exception
- Throws:
Exception
doStart
protected void doStart()
throws Exception
- Specified by:
doStart
in class ServiceSupport
- Throws:
Exception
doStop
protected void doStop()
throws Exception
- Specified by:
doStop
in class ServiceSupport
- Throws:
Exception
doShutdown
protected void doShutdown()
throws Exception
- Description copied from class:
ServiceSupport
- Implementations override this method to perform customized shutdown
- Overrides:
doShutdown
in class ServiceSupport
- Throws:
Exception
doSuspend
protected void doSuspend()
throws Exception
- Description copied from class:
ServiceSupport
- Implementations override this method to support customized suspend/resume.
- Overrides:
doSuspend
in class ServiceSupport
- Throws:
Exception
doResume
protected void doResume()
throws Exception
- Description copied from class:
ServiceSupport
- Implementations override this method to support customized suspend/resume.
- Overrides:
doResume
in class ServiceSupport
- Throws:
Exception
startChildService
protected void startChildService(Route route,
List<Service> services)
throws Exception
- Throws:
Exception
stopChildService
protected void stopChildService(Route route,
Set<Service> services,
boolean shutdown)
throws Exception
- Throws:
Exception
Apache CAMEL