org.apache.camel.impl
Class RouteService

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by 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 $

Constructor Summary
RouteService(DefaultCamelContext camelContext, RouteDefinition routeDefinition, List<RouteContext> routeContexts, Collection<Route> routes)
           
 
Method Summary
protected  void doStart()
           
protected  void doStop()
           
 CamelContext getCamelContext()
           
 String getId()
           
protected  LifecycleStrategy getLifecycleStrategy()
           
 List<RouteContext> getRouteContexts()
           
 RouteDefinition getRouteDefinition()
           
 Collection<Route> getRoutes()
           
protected  void startChildService(Service service)
           
protected  void stopChildService(Service service)
           
 
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
 

Constructor Detail

RouteService

public RouteService(DefaultCamelContext camelContext,
                    RouteDefinition routeDefinition,
                    List<RouteContext> routeContexts,
                    Collection<Route> routes)
Method Detail

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