|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.impl.RouteService
public class RouteService
Represents the runtime objects for a given RouteDefinition
so that it can be stopped independently
of other routes
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 |
---|
public RouteService(DefaultCamelContext camelContext, RouteDefinition routeDefinition, List<RouteContext> routeContexts, List<Route> routes)
Method Detail |
---|
public String getId()
public CamelContext getCamelContext()
public List<RouteContext> getRouteContexts()
public RouteDefinition getRouteDefinition()
public Collection<Route> getRoutes()
public Map<Route,Consumer> getInputs()
Consumer
as inputs for the routes@Deprecated public boolean isRemovingRoutes()
@Deprecated public void setRemovingRoutes(boolean removingRoutes)
public void warmUp() throws Exception
Exception
protected void doStart() throws Exception
doStart
in class ServiceSupport
Exception
protected void doStop() throws Exception
doStop
in class ServiceSupport
Exception
protected void doShutdown() throws Exception
ServiceSupport
doShutdown
in class ServiceSupport
Exception
protected void doSuspend() throws Exception
ServiceSupport
doSuspend
in class ServiceSupport
Exception
protected void doResume() throws Exception
ServiceSupport
doResume
in class ServiceSupport
Exception
protected void startChildService(Route route, List<Service> services) throws Exception
Exception
protected void stopChildService(Route route, Set<Service> services, boolean shutdown) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |