Class 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
    • 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
    • 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 interface org.apache.camel.Service

        build, close, init, start, stop
      • Methods inherited from interface org.apache.camel.ShutdownableService

        shutdown
      • Methods inherited from interface org.apache.camel.StatefulService

        getStatus, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspending
      • Methods inherited from interface org.apache.camel.SuspendableService

        isSuspended, resume, suspend
    • 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 interface org.apache.camel.CamelContextAware
      • setCamelContext

        public void setCamelContext​(org.apache.camel.CamelContext camelContext)
        Specified by:
        setCamelContext in interface org.apache.camel.CamelContextAware
      • doStart

        public void doStart()
                     throws Exception
        Overrides:
        doStart in class org.apache.camel.support.RoutePolicySupport
        Throws:
        Exception
      • onStart

        public void onStart​(org.apache.camel.Route route)
        Specified by:
        onStart in interface org.apache.camel.spi.RoutePolicy
        Overrides:
        onStart in class org.apache.camel.support.RoutePolicySupport
      • onStop

        public void onStop​(org.apache.camel.Route route)
        Specified by:
        onStop in interface org.apache.camel.spi.RoutePolicy
        Overrides:
        onStop in class org.apache.camel.support.RoutePolicySupport
      • onSuspend

        public void onSuspend​(org.apache.camel.Route route)
        Specified by:
        onSuspend in interface org.apache.camel.spi.RoutePolicy
        Overrides:
        onSuspend in class org.apache.camel.support.RoutePolicySupport
      • onResume

        public void onResume​(org.apache.camel.Route route)
        Specified by:
        onResume in interface org.apache.camel.spi.RoutePolicy
        Overrides:
        onResume in class org.apache.camel.support.RoutePolicySupport