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.HasCamelContext,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
-
Field Summary
Fields inherited from class org.apache.camel.support.service.BaseService
BUILT, FAILED, INITIALIZED, INITIALIZING, lock, NEW, SHUTDOWN, SHUTTING_DOWN, STARTED, STARTING, status, STOPPED, STOPPING, SUSPENDED, SUSPENDING -
Constructor Summary
ConstructorsConstructorDescriptionServiceRegistrationRoutePolicy(org.apache.camel.cloud.ServiceRegistry.Selector serviceRegistrySelector) ServiceRegistrationRoutePolicy(org.apache.camel.cloud.ServiceRegistry serviceRegistry, org.apache.camel.cloud.ServiceRegistry.Selector serviceRegistrySelector) -
Method Summary
Modifier and TypeMethodDescriptionvoiddoStart()org.apache.camel.CamelContextvoidonResume(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, getExceptionHandler, handleException, onExchangeBegin, onExchangeDone, onInit, onRemove, resumeOrStartConsumer, resumeRoute, setExceptionHandler, startConsumer, startRoute, stopConsumer, stopRoute, stopRoute, stopRouteAsync, suspendOrStopConsumer, suspendRoute, suspendRouteMethods inherited from class org.apache.camel.support.service.BaseService
build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStop, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.camel.Service
build, close, init, start, stopMethods inherited from interface org.apache.camel.ShutdownableService
shutdownMethods inherited from interface org.apache.camel.StatefulService
getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspendingMethods inherited from interface org.apache.camel.SuspendableService
isSuspended, resume, suspend
-
Constructor Details
-
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 Details
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
doStart
- Overrides:
doStartin classorg.apache.camel.support.service.BaseService- 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
-