public interface ProctorReader
StoreException when it failed to handle request because of errors in the database.| Modifier and Type | Method and Description |
|---|---|
Map<String,List<Revision>> |
getAllHistories()
Deprecated.
does not scale, avoid if possible, prefer getMatrixHistory and getRevisionDetails methods
|
TestDefinition |
getCurrentTestDefinition(String testName) |
TestMatrixVersion |
getCurrentTestMatrix() |
List<Revision> |
getHistory(String testName,
int start,
int limit) |
List<Revision> |
getHistory(String testName,
String revisionId,
int start,
int limit) |
String |
getLatestVersion() |
List<Revision> |
getMatrixHistory(Instant sinceInclusive,
Instant untilExclusive) |
List<Revision> |
getMatrixHistory(int start,
int limit) |
RevisionDetails |
getRevisionDetails(String revisionId) |
TestDefinition |
getTestDefinition(String testName,
String revisionId) |
List<TestEdit> |
getTestEdits(String testName,
int start,
int limit) |
List<TestEdit> |
getTestEdits(String testName,
String revision,
int start,
int limit) |
TestMatrixVersion |
getTestMatrix(String revisionId) |
void |
refresh()
Update the local state with the remote database.
|
void |
verifySetup()
Verifies the data store object is ready to operate.
|
TestMatrixVersion getCurrentTestMatrix() throws StoreException
StoreException@CheckForNull TestDefinition getCurrentTestDefinition(String testName) throws StoreException
testName - name of the test.StoreExceptionvoid verifySetup()
throws StoreException
StoreException - if it's not ready to operate.@Nonnull String getLatestVersion() throws StoreException
StoreExceptionTestMatrixVersion getTestMatrix(String revisionId) throws StoreException
revisionId - id of the revisionStoreException - if the revision is not found.@CheckForNull TestDefinition getTestDefinition(String testName, String revisionId) throws StoreException
testName - name of the testrevisionId - id of the revisionStoreException - if the revision is not found.@Nonnull List<Revision> getMatrixHistory(int start, int limit) throws StoreException
start - offset of the first revision (0-indexed)limit - limit of the number of revisions, -1 might be usable for unlimited (depending on implementation)StoreException@Nonnull List<Revision> getMatrixHistory(Instant sinceInclusive, Instant untilExclusive) throws StoreException
sinceInclusive - earliest dateuntilExclusive - latest dateStoreException - if the revision is not found, or date range is bigger than the implementation allows@Nonnull List<Revision> getHistory(String testName, int start, int limit) throws StoreException
testName - name of the teststart - offset of the first revision (0-indexed)limit - limit of the number of revisions, -1 might be usable for unlimited (depending on implementation)StoreException@Nonnull List<Revision> getHistory(String testName, String revisionId, int start, int limit) throws StoreException
testName - name of the teststart - offset of the first revision (0-indexed)limit - limit of the number of revisions, -1 might be usable for unlimited (depending on implementation)StoreException - if the revision is not found.@CheckForNull RevisionDetails getRevisionDetails(String revisionId) throws StoreException
revisionId - id of the revisionStoreException@Nonnull List<TestEdit> getTestEdits(String testName, int start, int limit) throws StoreException
testName - to get test editsstart - offset of the first revision (0-indexed)limit - limit of the number of test editsStoreException - if the revision is not found@Nonnull List<TestEdit> getTestEdits(String testName, String revision, int start, int limit) throws StoreException
testName - to get test editsrevision - from which the search of test edit is initiatedstart - offset of the first revision (0-indexed)limit - limit of the number of test editsStoreException - if the revision is not found@Nonnull @Deprecated Map<String,List<Revision>> getAllHistories() throws StoreException
StoreExceptionvoid refresh()
throws StoreException
StoreExceptionCopyright © 2022. All rights reserved.