public class LocalDirectoryStore extends FileBasedProctorStore
FileBasedProctorStore.ProctorUpdater, FileBasedProctorStore.RcsClientcore, DEFAULT_TEST_DEFINITIONS_DIRECTORY| Constructor and Description |
|---|
LocalDirectoryStore(File baseDir) |
LocalDirectoryStore(File baseDir,
String testDefinitionsDirectory) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanUserWorkspace(String username) |
Map<String,List<Revision>> |
getAllHistories()
Returns a list of revisions grouped by a test.
|
List<Revision> |
getHistory(String test,
int ignoredStart,
int limit)
Returns a list of revisions for a test ordered by recency.
|
List<Revision> |
getHistory(String test,
String revision,
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.
|
String |
getName()
This method returns a name of the ProctorStore instance for logging purpose.
|
RevisionDetails |
getRevisionDetails(String revisionId)
Returns a details of a single revision.
|
void |
refresh()
Update the local state with the remote database.
|
String |
toString() |
void |
verifySetup()
Verifies the data store object is ready to operate.
|
addTestDefinition, addTestDefinition, close, deleteTestDefinition, deleteTestDefinition, getCore, getCurrentTestDefinition, getCurrentTestMatrix, getTestDefinition, getTestMatrix, shutdown, updateTestDefinition, updateTestDefinition, updateThing, writeIfChanged, writeThingpublic LocalDirectoryStore(File baseDir)
@Nonnull public String getLatestVersion() throws StoreException
ProctorReaderStoreExceptionpublic boolean cleanUserWorkspace(String username)
@Nonnull public List<Revision> getHistory(String test, int ignoredStart, int limit) throws StoreException
ProctorReadertest - name of the testignoredStart - offset of the first revision (0-indexed)limit - limit of the number of revisionsStoreException@Nonnull public List<Revision> getHistory(String test, String revision, int start, int limit) throws StoreException
ProctorReadertest - name of the teststart - offset of the first revision (0-indexed)limit - limit of the number of revisionsStoreException@CheckForNull public RevisionDetails getRevisionDetails(String revisionId) throws StoreException
ProctorReaderrevisionId - id of the revisionStoreException@Nonnull public List<Revision> getMatrixHistory(int start, int limit) throws StoreException
ProctorReaderstart - offset of the first revision (0-indexed)limit - limit of the number of revisionsStoreException@Nonnull public Map<String,List<Revision>> getAllHistories() throws StoreException
ProctorReaderStoreExceptionpublic void refresh()
throws StoreException
ProctorReaderStoreExceptionpublic void verifySetup()
throws StoreException
ProctorReaderStoreException - if it's not ready to operate.public String getName()
ProctorStoreCopyright © 2019. All rights reserved.