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 void
doStart()
org.apache.camel.CamelContext
getCamelContext()
void
onResume(org.apache.camel.Route route)
void
onStart(org.apache.camel.Route route)
void
onStop(org.apache.camel.Route route)
void
onSuspend(org.apache.camel.Route route)
void
setCamelContext(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:
getCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext)
- Specified by:
setCamelContext
in interfaceorg.apache.camel.CamelContextAware
-
doStart
public void doStart() throws Exception
- Overrides:
doStart
in classorg.apache.camel.support.RoutePolicySupport
- Throws:
Exception
-
onStart
public void onStart(org.apache.camel.Route route)
- Specified by:
onStart
in interfaceorg.apache.camel.spi.RoutePolicy
- Overrides:
onStart
in classorg.apache.camel.support.RoutePolicySupport
-
onStop
public void onStop(org.apache.camel.Route route)
- Specified by:
onStop
in interfaceorg.apache.camel.spi.RoutePolicy
- Overrides:
onStop
in classorg.apache.camel.support.RoutePolicySupport
-
onSuspend
public void onSuspend(org.apache.camel.Route route)
- Specified by:
onSuspend
in interfaceorg.apache.camel.spi.RoutePolicy
- Overrides:
onSuspend
in classorg.apache.camel.support.RoutePolicySupport
-
onResume
public void onResume(org.apache.camel.Route route)
- Specified by:
onResume
in interfaceorg.apache.camel.spi.RoutePolicy
- Overrides:
onResume
in classorg.apache.camel.support.RoutePolicySupport
-
-