org.apache.camel.impl
Class RouteService
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.RouteService
- All Implemented Interfaces:
- Service
public class RouteService
- extends ServiceSupport
Represents the runtime objects for a given RouteDefinition
so that it can be stopped independently
of other routes
- Version:
- $Revision: 790922 $
Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, start, stop |
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,
Collection<Route> routes)
getId
public String getId()
getCamelContext
public CamelContext getCamelContext()
getRouteContexts
public List<RouteContext> getRouteContexts()
getRouteDefinition
public RouteDefinition getRouteDefinition()
getRoutes
public Collection<Route> getRoutes()
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
getLifecycleStrategy
protected LifecycleStrategy getLifecycleStrategy()
startChildService
protected void startChildService(Service service)
throws Exception
- Throws:
Exception
stopChildService
protected void stopChildService(Service service)
throws Exception
- Throws:
Exception
Apache CAMEL