Package io.kestra.jdbc.server
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
@JdbcRepositoryEnabled
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
onStateTransitionFailureCallbackFields inherited from class io.kestra.core.server.AbstractServiceLivenessTask
serverConfig -
Constructor Summary
ConstructorsConstructorDescriptionJdbcServiceLivenessManager(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 TypeMethodDescriptionprotected booleanbeforeScheduledStateUpdate(Instant now, io.kestra.core.server.Service service, io.kestra.core.server.ServiceInstance instance) voidonServiceStateChangeEvent(io.kestra.core.server.ServiceStateChangeEvent event) Methods inherited from class io.kestra.core.server.ServiceLivenessManager
allServiceInstances, close, getScheduleInterval, lastSucceedStateUpdated, onSchedule, updateServiceInstance, updateServiceInstanceStateMethods inherited from class io.kestra.core.server.AbstractServiceLivenessTask
getElapsedMilliSinceLastSchedule, isLivenessEnabled, lastScheduledExecution, run, run, start
-
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:
onServiceStateChangeEventin classio.kestra.core.server.ServiceLivenessManager
-
beforeScheduledStateUpdate
protected boolean beforeScheduledStateUpdate(Instant now, io.kestra.core.server.Service service, io.kestra.core.server.ServiceInstance instance) - Overrides:
beforeScheduledStateUpdatein classio.kestra.core.server.ServiceLivenessManager
-