Class JdbcServiceLivenessManager

java.lang.Object
io.kestra.core.server.AbstractServiceLivenessTask
io.kestra.core.server.ServiceLivenessManager
io.kestra.jdbc.server.JdbcServiceLivenessManager
All Implemented Interfaces:
AutoCloseable, Runnable

@Context @JdbcRunnerEnabled public final class JdbcServiceLivenessManager extends io.kestra.core.server.ServiceLivenessManager
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.kestra.core.server.ServiceLivenessManager

    io.kestra.core.server.ServiceLivenessManager.DefaultStateTransitionFailureCallback, io.kestra.core.server.ServiceLivenessManager.OnStateTransitionFailureCallback
  • Field Summary

    Fields inherited from class io.kestra.core.server.ServiceLivenessManager

    onStateTransitionFailureCallback

    Fields inherited from class io.kestra.core.server.AbstractServiceLivenessTask

    serverConfig
  • Constructor Summary

    Constructors
    Constructor
    Description
    JdbcServiceLivenessManager(io.kestra.core.server.ServerConfig configuration, io.kestra.core.server.ServiceRegistry registry, io.kestra.core.server.LocalServiceStateFactory localServiceStateFactory, io.kestra.core.server.ServerInstanceFactory serverInstanceFactory, io.kestra.core.repositories.ServiceInstanceRepositoryInterface repository)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
    beforeScheduledStateUpdate(Instant now, io.kestra.core.server.Service service, io.kestra.core.server.ServiceInstance instance)
    void
    onServiceStateChangeEvent(io.kestra.core.server.ServiceStateChangeEvent event)

    Methods inherited from class io.kestra.core.server.ServiceLivenessManager

    allServiceInstances, close, getScheduleInterval, lastSucceedStateUpdated, onSchedule, updateServiceInstance, updateServiceInstanceState

    Methods inherited from class io.kestra.core.server.AbstractServiceLivenessTask

    getElapsedMilliSinceLastSchedule, isLivenessEnabled, lastScheduledExecution, run, run, start

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JdbcServiceLivenessManager

      @Inject public JdbcServiceLivenessManager(io.kestra.core.server.ServerConfig configuration, io.kestra.core.server.ServiceRegistry registry, io.kestra.core.server.LocalServiceStateFactory localServiceStateFactory, io.kestra.core.server.ServerInstanceFactory serverInstanceFactory, io.kestra.core.repositories.ServiceInstanceRepositoryInterface repository)
  • Method Details

    • onServiceStateChangeEvent

      @EventListener public void onServiceStateChangeEvent(io.kestra.core.server.ServiceStateChangeEvent event)
      Overrides:
      onServiceStateChangeEvent in class io.kestra.core.server.ServiceLivenessManager
    • beforeScheduledStateUpdate

      protected boolean beforeScheduledStateUpdate(Instant now, io.kestra.core.server.Service service, io.kestra.core.server.ServiceInstance instance)
      Overrides:
      beforeScheduledStateUpdate in class io.kestra.core.server.ServiceLivenessManager