Class DefaultStartupConditionStrategy

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.startup.DefaultStartupConditionStrategy
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.StartupConditionStrategy, org.apache.camel.StatefulService, org.apache.camel.StaticService, org.apache.camel.SuspendableService

@DeferredContextBinding public class DefaultStartupConditionStrategy extends org.apache.camel.support.service.ServiceSupport implements org.apache.camel.spi.StartupConditionStrategy, org.apache.camel.CamelContextAware
Default StartupConditionStrategy.
  • 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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addStartupCondition(org.apache.camel.spi.StartupCondition startupCondition)
     
    void
     
    void
     
    protected void
    doCheckConditions(List<org.apache.camel.spi.StartupCondition> conditions)
     
    org.apache.camel.CamelContext
     
    int
     
     
    List<org.apache.camel.spi.StartupCondition>
     
    int
     
    boolean
     
    void
    setCamelContext(org.apache.camel.CamelContext camelContext)
     
    void
    setEnabled(boolean enabled)
     
    void
    setInterval(int interval)
     
    void
    setOnTimeout(String onTimeout)
     
    void
    setTimeout(int timeout)
     

    Methods inherited from class org.apache.camel.support.service.BaseService

    build, doBuild, doFail, doInit, doLifecycleChange, doResume, doShutdown, doStart, doStop, doSuspend, fail, getInternalLock, 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

    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 Details

    • DefaultStartupConditionStrategy

      public DefaultStartupConditionStrategy()
  • Method Details

    • getCamelContext

      public org.apache.camel.CamelContext getCamelContext()
      Specified by:
      getCamelContext in interface org.apache.camel.spi.HasCamelContext
    • setCamelContext

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

      public boolean isEnabled()
      Specified by:
      isEnabled in interface org.apache.camel.spi.StartupConditionStrategy
    • setEnabled

      public void setEnabled(boolean enabled)
      Specified by:
      setEnabled in interface org.apache.camel.spi.StartupConditionStrategy
    • getInterval

      public int getInterval()
      Specified by:
      getInterval in interface org.apache.camel.spi.StartupConditionStrategy
    • setInterval

      public void setInterval(int interval)
      Specified by:
      setInterval in interface org.apache.camel.spi.StartupConditionStrategy
    • getTimeout

      public int getTimeout()
      Specified by:
      getTimeout in interface org.apache.camel.spi.StartupConditionStrategy
    • setTimeout

      public void setTimeout(int timeout)
      Specified by:
      setTimeout in interface org.apache.camel.spi.StartupConditionStrategy
    • getOnTimeout

      public String getOnTimeout()
      Specified by:
      getOnTimeout in interface org.apache.camel.spi.StartupConditionStrategy
    • setOnTimeout

      public void setOnTimeout(String onTimeout)
      Specified by:
      setOnTimeout in interface org.apache.camel.spi.StartupConditionStrategy
    • addStartupCondition

      public void addStartupCondition(org.apache.camel.spi.StartupCondition startupCondition)
      Specified by:
      addStartupCondition in interface org.apache.camel.spi.StartupConditionStrategy
    • addStartupConditions

      public void addStartupConditions(String classNames)
      Specified by:
      addStartupConditions in interface org.apache.camel.spi.StartupConditionStrategy
    • getStartupConditions

      public List<org.apache.camel.spi.StartupCondition> getStartupConditions()
      Specified by:
      getStartupConditions in interface org.apache.camel.spi.StartupConditionStrategy
    • checkStartupConditions

      public void checkStartupConditions() throws org.apache.camel.VetoCamelContextStartException
      Specified by:
      checkStartupConditions in interface org.apache.camel.spi.StartupConditionStrategy
      Throws:
      org.apache.camel.VetoCamelContextStartException
    • doCheckConditions

      protected void doCheckConditions(List<org.apache.camel.spi.StartupCondition> conditions) throws org.apache.camel.VetoCamelContextStartException
      Throws:
      org.apache.camel.VetoCamelContextStartException