Package step.core.execution.model
Class ExecutionAccessorImpl
- java.lang.Object
-
- step.core.accessors.AbstractAccessor
-
- step.core.accessors.AbstractCRUDAccessor<Execution>
-
- step.core.execution.model.ExecutionAccessorImpl
-
- All Implemented Interfaces:
Accessor<Execution>
,CRUDAccessor<Execution>
,ExecutionAccessor
public class ExecutionAccessorImpl extends AbstractCRUDAccessor<Execution> implements ExecutionAccessor
-
-
Field Summary
-
Fields inherited from class step.core.accessors.AbstractCRUDAccessor
collection
-
Fields inherited from class step.core.accessors.AbstractAccessor
mongoClientSession
-
-
Constructor Summary
Constructors Constructor Description ExecutionAccessorImpl(MongoClientSession clientSession)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createIndexesIfNeeded(Long ttl)
List<Execution>
findByCritera(Map<String,String> criteria, long start, long end, int skip, int limit)
Iterable<Execution>
findByCritera(Map<String,String> criteria, Date start, Date end)
Iterable<Execution>
findLastEnded(int limit)
Iterable<Execution>
findLastStarted(int limit)
List<Execution>
getActiveTests()
List<Execution>
getLastExecutionsBySchedulerTaskID(String schedulerTaskID, int limit)
List<Execution>
getTestExecutionsByArtefactURL(RepositoryObjectReference objectReference)
-
Methods inherited from class step.core.accessors.AbstractCRUDAccessor
findByAttributes, findByAttributes, findManyByAttributes, findManyByAttributes, get, get, getAll, getRange, queryByAttributes, queryByAttributes, remove, save, save
-
Methods inherited from class step.core.accessors.AbstractAccessor
createOrUpdateCompoundIndex, createOrUpdateIndex, createOrUpdateTTLIndex, getJongoCollection, getMongoCollection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface step.core.accessors.Accessor
findByAttributes, findByAttributes, findManyByAttributes, findManyByAttributes, get, get, getAll, getRange
-
Methods inherited from interface step.core.accessors.CRUDAccessor
remove, save, save
-
-
-
-
Constructor Detail
-
ExecutionAccessorImpl
public ExecutionAccessorImpl(MongoClientSession clientSession)
-
-
Method Detail
-
createIndexesIfNeeded
public void createIndexesIfNeeded(Long ttl)
- Specified by:
createIndexesIfNeeded
in interfaceExecutionAccessor
-
getActiveTests
public List<Execution> getActiveTests()
- Specified by:
getActiveTests
in interfaceExecutionAccessor
-
getTestExecutionsByArtefactURL
public List<Execution> getTestExecutionsByArtefactURL(RepositoryObjectReference objectReference)
- Specified by:
getTestExecutionsByArtefactURL
in interfaceExecutionAccessor
-
findByCritera
public List<Execution> findByCritera(Map<String,String> criteria, long start, long end, int skip, int limit)
-
findByCritera
public Iterable<Execution> findByCritera(Map<String,String> criteria, Date start, Date end)
- Specified by:
findByCritera
in interfaceExecutionAccessor
-
findLastStarted
public Iterable<Execution> findLastStarted(int limit)
- Specified by:
findLastStarted
in interfaceExecutionAccessor
-
findLastEnded
public Iterable<Execution> findLastEnded(int limit)
- Specified by:
findLastEnded
in interfaceExecutionAccessor
-
getLastExecutionsBySchedulerTaskID
public List<Execution> getLastExecutionsBySchedulerTaskID(String schedulerTaskID, int limit)
- Specified by:
getLastExecutionsBySchedulerTaskID
in interfaceExecutionAccessor
-
-