Package io.nflow.engine.internal.dao
Class ExecutorDao
java.lang.Object
io.nflow.engine.internal.dao.ExecutorDao
Use setter injection because constructor injection may not work when nFlow is used in some legacy systems.
-
Constructor Summary
ConstructorsConstructorDescriptionExecutorDao(SQLVariants sqlVariants, JdbcTemplate nflowJdbcTemplate, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionintdeleteExpiredBefore(org.joda.time.DateTime expiredBefore) intorg.joda.time.DateTimebooleanbooleanvoidmarkRecovered(int recoveredExecutorId) voidmarkShutdown(boolean graceful) booleantick()void
-
Constructor Details
-
ExecutorDao
@Inject public ExecutorDao(SQLVariants sqlVariants, JdbcTemplate nflowJdbcTemplate, Environment env)
-
-
Method Details
-
tick
public boolean tick() -
getExecutorGroup
-
getExecutorGroupCondition
-
getExecutorId
public int getExecutorId() -
getMaxWaitUntil
public org.joda.time.DateTime getMaxWaitUntil() -
isTransactionSupportEnabled
-
isAutoCommitEnabled
public boolean isAutoCommitEnabled() -
updateActiveTimestamp
public void updateActiveTimestamp() -
getExecutors
-
markShutdown
public void markShutdown(boolean graceful) -
getRecoverableExecutorIds
-
markRecovered
public void markRecovered(int recoveredExecutorId) -
deleteExpiredBefore
public int deleteExpiredBefore(org.joda.time.DateTime expiredBefore)
-