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, ShutdownableService

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: 20692 $

Constructor Summary
RouteService(DefaultCamelContext camelContext, RouteDefinition routeDefinition, List<RouteContext> routeContexts, List<Route> routes)
           
 
Method Summary
protected  void doResume()
          Implementations override this method to support customized suspend/resume.
protected  void doShutdown()
          Implementations override this method to perform customized shutdown
protected  void doStart()
           
protected  void doStop()
           
protected  void doSuspend()
          Implementations override this method to support customized suspend/resume.
 CamelContext getCamelContext()
           
 String getId()
           
 Map<Route,Consumer> getInputs()
          Gets the inputs to the routes.
 List<RouteContext> getRouteContexts()
           
 RouteDefinition getRouteDefinition()
           
 Collection<Route> getRoutes()
           
 boolean isRemovingRoutes()
          Deprecated. 
 void setRemovingRoutes(boolean removingRoutes)
          Deprecated. 
protected  void startChildService(Route route, List<Service> services)
           
protected  void stopChildService(Route route, Set<Service> services, boolean shutdown)
           
 void warmUp()
           
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend
 
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,
                    List<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()

getInputs

public Map<Route,Consumer> getInputs()
Gets the inputs to the routes.

Returns:
list of Consumer as inputs for the routes

isRemovingRoutes

@Deprecated
public boolean isRemovingRoutes()
Deprecated. 


setRemovingRoutes

@Deprecated
public void setRemovingRoutes(boolean removingRoutes)
Deprecated. 


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