@ParametersAreNonnullByDefault public class OfBizClusteredJobDao extends Object implements com.atlassian.scheduler.caesium.spi.ClusteredJobDao
Constructor and Description |
---|
OfBizClusteredJobDao(EntityEngine entityEngine,
DatabaseConfigurationManager dbConfigManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
create(com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob) |
boolean |
delete(com.atlassian.scheduler.config.JobId jobId) |
com.atlassian.scheduler.caesium.spi.ClusteredJob |
find(com.atlassian.scheduler.config.JobId jobId) |
Set<com.atlassian.scheduler.config.JobRunnerKey> |
findAllJobRunnerKeys() |
Collection<com.atlassian.scheduler.caesium.spi.ClusteredJob> |
findByJobRunnerKey(com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey) |
Date |
getNextRunTime(com.atlassian.scheduler.config.JobId jobId) |
Long |
getVersion(com.atlassian.scheduler.config.JobId jobId) |
Map<com.atlassian.scheduler.config.JobId,Date> |
refresh() |
boolean |
updateNextRunTime(com.atlassian.scheduler.config.JobId jobId,
Date date,
long version) |
public OfBizClusteredJobDao(EntityEngine entityEngine, DatabaseConfigurationManager dbConfigManager)
@Nullable public Date getNextRunTime(com.atlassian.scheduler.config.JobId jobId)
getNextRunTime
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
@Nullable public Long getVersion(com.atlassian.scheduler.config.JobId jobId)
getVersion
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
@Nullable public com.atlassian.scheduler.caesium.spi.ClusteredJob find(com.atlassian.scheduler.config.JobId jobId)
find
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
@Nonnull public Collection<com.atlassian.scheduler.caesium.spi.ClusteredJob> findByJobRunnerKey(com.atlassian.scheduler.config.JobRunnerKey jobRunnerKey)
findByJobRunnerKey
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
@Nonnull public Map<com.atlassian.scheduler.config.JobId,Date> refresh()
refresh
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
@Nonnull public Set<com.atlassian.scheduler.config.JobRunnerKey> findAllJobRunnerKeys()
findAllJobRunnerKeys
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
public boolean create(com.atlassian.scheduler.caesium.spi.ClusteredJob clusteredJob)
create
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
public boolean updateNextRunTime(com.atlassian.scheduler.config.JobId jobId, @Nullable Date date, long version)
updateNextRunTime
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
public boolean delete(com.atlassian.scheduler.config.JobId jobId)
delete
in interface com.atlassian.scheduler.caesium.spi.ClusteredJobDao
Copyright © 2002-2023 Atlassian. All Rights Reserved.