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()
Returns a list of revisions grouped by a test.
|
TestDefinition |
getCurrentTestDefinition(String testName)
Returns a current test definition of a test in the database.
|
TestMatrixVersion |
getCurrentTestMatrix()
Returns the current test matrix in the database.
|
List<Revision> |
getHistory(String testName,
int start,
int limit)
Returns a list of revisions for a test ordered by recency.
|
List<Revision> |
getHistory(String testName,
String revisionId,
int start,
int limit)
Returns a list of revisions for a test when test revision was made ordered by recency.
|
String |
getLatestVersion()
Returns the latest revision id.
|
List<Revision> |
getMatrixHistory(int start,
int limit)
Returns a list of revisions for all tests ordered by recency.
|
RevisionDetails |
getRevisionDetails(String revisionId)
Returns a details of a single revision.
|
TestDefinition |
getTestDefinition(String testName,
String revisionId)
Returns a test definition of a test when the revision was made.
|
TestMatrixVersion |
getTestMatrix(String revisionId)
Returns a test matrix when the revision was made.
|
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
StoreExceptionTestDefinition getCurrentTestDefinition(String testName) throws StoreException
testName - name of the testStoreExceptionvoid 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 revisionStoreExceptionTestDefinition getTestDefinition(String testName, String revisionId) throws StoreException
testName - name of the testrevisionId - id of the revisionStoreException@Nonnull List<Revision> getMatrixHistory(int start, int limit) throws StoreException
start - offset of the first revision (0-indexed)limit - limit of the number of revisionsStoreException@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 revisionsStoreException@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 revisionsStoreException@CheckForNull RevisionDetails getRevisionDetails(String revisionId) throws StoreException
revisionId - id of the revisionStoreException@Nonnull Map<String,List<Revision>> getAllHistories() throws StoreException
StoreExceptionvoid refresh()
throws StoreException
StoreExceptionCopyright © 2019. All rights reserved.