|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.support.ServiceSupport org.apache.camel.support.ChildServiceSupport 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
Field Summary |
---|
Fields inherited from class org.apache.camel.support.ServiceSupport |
---|
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
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()
Implementations override this method to support customized start/stop. |
protected void |
doStop()
Implementations override this method to support customized start/stop. |
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()
|
void |
setRemovingRoutes(boolean removingRoutes)
|
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.support.ChildServiceSupport |
---|
addChildService, removeChildService, shutdown, start, start, stop |
Methods inherited from class org.apache.camel.support.ServiceSupport |
---|
getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, 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 routespublic boolean isRemovingRoutes()
public void setRemovingRoutes(boolean removingRoutes)
public void warmUp() throws Exception
Exception
protected void doStart() throws Exception
ServiceSupport
ServiceSupport.doStop()
for more details.
doStart
in class ServiceSupport
Exception
ServiceSupport.doStop()
protected void doStop() throws Exception
ServiceSupport
ServiceSupport.doStop()
method when
the service is being stopped. This method will also be invoked
if the service is still in uninitialized state (eg has not
been started). The method is always called to allow the service
to do custom logic when the service is being stopped, such as when
CamelContext
is shutting down.
doStop
in class ServiceSupport
Exception
ServiceSupport.doStart()
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 |