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()
Get all the revisions for all tests in history
Same revision may appear in two or more lists if multiple tests are modified in the revision.
|
List<Revision> |
getHistory(String test,
int ignoredStart,
int limit) |
List<Revision> |
getHistory(String test,
String revision,
int start,
int limit) |
String |
getLatestVersion() |
List<Revision> |
getMatrixHistory(Instant sinceInclusive,
Instant untilExclusive) |
List<Revision> |
getMatrixHistory(int start,
int limit) |
String |
getName()
This method returns a name of the ProctorStore instance for logging purpose.
|
RevisionDetails |
getRevisionDetails(String revisionId) |
List<TestEdit> |
getTestEdits(String testName,
int start,
int limit) |
List<TestEdit> |
getTestEdits(String testName,
String revision,
int start,
int limit) |
void |
refresh()
Update the local state with the remote database.
|
String |
toString() |
void |
verifySetup()
Verifies the data store object is ready to operate.
|
addTestDefinition, close, deleteTestDefinition, getCore, getCurrentTestDefinition, getCurrentTestMatrix, getTestDefinition, getTestMatrix, shutdown, updateTestDefinition, updateThing, writeIfChanged, writeThingclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddTestDefinition, addTestDefinition, deleteTestDefinition, deleteTestDefinition, updateTestDefinition, updateTestDefinitionpublic LocalDirectoryStore(File baseDir)
@Nonnull public String getLatestVersion() throws StoreException
StoreExceptionpublic boolean cleanUserWorkspace(String username)
@Nonnull public List<Revision> getHistory(String test, int ignoredStart, int limit) throws StoreException
test - name of the testignoredStart - 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 public List<Revision> getHistory(String test, String revision, int start, int limit) throws StoreException
test - 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 public RevisionDetails getRevisionDetails(String revisionId) throws StoreException
revisionId - id of the revisionStoreException@Nonnull public 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 public 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 public 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 public 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 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 © 2022. All rights reserved.