Package org.apache.camel.impl.cloud
Class ServiceRegistrationRoutePolicy
- java.lang.Object
-
- org.apache.camel.support.service.BaseService
-
- org.apache.camel.support.service.ServiceSupport
-
- org.apache.camel.support.RoutePolicySupport
-
- org.apache.camel.impl.cloud.ServiceRegistrationRoutePolicy
-
- All Implemented Interfaces:
AutoCloseable,org.apache.camel.CamelContextAware,org.apache.camel.Service,org.apache.camel.ShutdownableService,org.apache.camel.spi.RoutePolicy,org.apache.camel.StatefulService,org.apache.camel.SuspendableService
@ManagedResource(description="Service Registration Route policy") public class ServiceRegistrationRoutePolicy extends org.apache.camel.support.RoutePolicySupport implements org.apache.camel.CamelContextAware
-
-
Constructor Summary
Constructors Constructor Description ServiceRegistrationRoutePolicy()ServiceRegistrationRoutePolicy(org.apache.camel.cloud.ServiceRegistry.Selector serviceRegistrySelector)ServiceRegistrationRoutePolicy(org.apache.camel.cloud.ServiceRegistry serviceRegistry, org.apache.camel.cloud.ServiceRegistry.Selector serviceRegistrySelector)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoStart()org.apache.camel.CamelContextgetCamelContext()voidonResume(org.apache.camel.Route route)voidonStart(org.apache.camel.Route route)voidonStop(org.apache.camel.Route route)voidonSuspend(org.apache.camel.Route route)voidsetCamelContext(org.apache.camel.CamelContext camelContext)-
Methods inherited from class org.apache.camel.support.RoutePolicySupport
controller, doStop, getExceptionHandler, handleException, onExchangeBegin, onExchangeDone, onInit, onRemove, resumeOrStartConsumer, resumeRoute, setExceptionHandler, startConsumer, startRoute, stopConsumer, stopRoute, stopRoute, stopRouteAsync, suspendOrStopConsumer, suspendRoute, suspendRoute
-
Methods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Constructor Detail
-
ServiceRegistrationRoutePolicy
public ServiceRegistrationRoutePolicy()
-
ServiceRegistrationRoutePolicy
public ServiceRegistrationRoutePolicy(org.apache.camel.cloud.ServiceRegistry.Selector serviceRegistrySelector)
-
ServiceRegistrationRoutePolicy
public ServiceRegistrationRoutePolicy(org.apache.camel.cloud.ServiceRegistry serviceRegistry, org.apache.camel.cloud.ServiceRegistry.Selector serviceRegistrySelector)
-
-
Method Detail
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()
- Specified by:
getCamelContextin interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
doStart
public void doStart() throws Exception- Overrides:
doStartin classorg.apache.camel.support.RoutePolicySupport- Throws:
Exception
-
onStart
public void onStart(org.apache.camel.Route route)
- Specified by:
onStartin interfaceorg.apache.camel.spi.RoutePolicy- Overrides:
onStartin classorg.apache.camel.support.RoutePolicySupport
-
onStop
public void onStop(org.apache.camel.Route route)
- Specified by:
onStopin interfaceorg.apache.camel.spi.RoutePolicy- Overrides:
onStopin classorg.apache.camel.support.RoutePolicySupport
-
onSuspend
public void onSuspend(org.apache.camel.Route route)
- Specified by:
onSuspendin interfaceorg.apache.camel.spi.RoutePolicy- Overrides:
onSuspendin classorg.apache.camel.support.RoutePolicySupport
-
onResume
public void onResume(org.apache.camel.Route route)
- Specified by:
onResumein interfaceorg.apache.camel.spi.RoutePolicy- Overrides:
onResumein classorg.apache.camel.support.RoutePolicySupport
-
-