|
||||||||||
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,
java.util.List<RouteContext> routeContexts,
java.util.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()
|
java.lang.String |
getId()
|
java.util.Map<Route,Consumer> |
getInputs()
Gets the inputs to the routes. |
java.util.List<RouteContext> |
getRouteContexts()
|
RouteDefinition |
getRouteDefinition()
|
java.util.Collection<Route> |
getRoutes()
|
boolean |
isRemovingRoutes()
|
void |
setRemovingRoutes(boolean removingRoutes)
|
protected void |
startChildService(Route route,
java.util.List<Service> services)
|
protected void |
stopChildService(Route route,
java.util.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, java.util.List<RouteContext> routeContexts, java.util.List<Route> routes)
Method Detail |
---|
public java.lang.String getId()
public CamelContext getCamelContext()
public java.util.List<RouteContext> getRouteContexts()
public RouteDefinition getRouteDefinition()
public java.util.Collection<Route> getRoutes()
public java.util.Map<Route,Consumer> getInputs()
Consumer
as inputs for the routespublic boolean isRemovingRoutes()
public void setRemovingRoutes(boolean removingRoutes)
public void warmUp() throws java.lang.Exception
java.lang.Exception
protected void doStart() throws java.lang.Exception
doStart
in class ServiceSupport
java.lang.Exception
protected void doStop() throws java.lang.Exception
doStop
in class ServiceSupport
java.lang.Exception
protected void doShutdown() throws java.lang.Exception
ServiceSupport
doShutdown
in class ServiceSupport
java.lang.Exception
protected void doSuspend() throws java.lang.Exception
ServiceSupport
doSuspend
in class ServiceSupport
java.lang.Exception
protected void doResume() throws java.lang.Exception
ServiceSupport
doResume
in class ServiceSupport
java.lang.Exception
protected void startChildService(Route route, java.util.List<Service> services) throws java.lang.Exception
java.lang.Exception
protected void stopChildService(Route route, java.util.Set<Service> services, boolean shutdown) throws java.lang.Exception
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |