public abstract class FileBasedProctorStore extends Object implements ProctorStore
| Modifier and Type | Class and Description |
|---|---|
static interface |
FileBasedProctorStore.ProctorUpdater |
static interface |
FileBasedProctorStore.RcsClient |
| Modifier and Type | Field and Description |
|---|---|
protected FileBasedPersisterCore |
core |
static String |
DEFAULT_TEST_DEFINITIONS_DIRECTORY |
| Modifier | Constructor and Description |
|---|---|
protected |
FileBasedProctorStore(FileBasedPersisterCore core) |
protected |
FileBasedProctorStore(FileBasedPersisterCore core,
String testDefinitionsDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addTestDefinition(String username,
String password,
String author,
String testName,
TestDefinition testDefinition,
Map<String,String> metadata,
String comment) |
void |
addTestDefinition(String username,
String password,
String testName,
TestDefinition testDefinition,
Map<String,String> metadata,
String comment) |
void |
close() |
void |
deleteTestDefinition(String username,
String password,
String author,
String previousVersion,
String testName,
TestDefinition testDefinition,
String comment) |
void |
deleteTestDefinition(String username,
String password,
String previousVersion,
String testName,
TestDefinition testDefinition,
String comment) |
FileBasedPersisterCore |
getCore() |
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.
|
TestDefinition |
getTestDefinition(String testName,
String fetchRevision)
Returns a test definition of a test when the revision was made.
|
TestMatrixVersion |
getTestMatrix(String fetchRevision)
Returns a test matrix when the revision was made.
|
void |
shutdown() |
void |
updateTestDefinition(String username,
String password,
String author,
String previousVersion,
String testName,
TestDefinition testDefinition,
Map<String,String> metadata,
String comment) |
void |
updateTestDefinition(String username,
String password,
String previousVersion,
String testName,
TestDefinition testDefinition,
Map<String,String> metadata,
String comment)
This is the normal operation that I expect to happen
|
protected <T> boolean |
updateThing(FileBasedProctorStore.RcsClient rcsClient,
File file,
T thing) |
protected static <T> boolean |
writeIfChanged(com.fasterxml.jackson.databind.ObjectMapper mapper,
File f,
T newThing) |
protected static <T> void |
writeThing(com.fasterxml.jackson.databind.ObjectMapper mapper,
File f,
T newThing) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNamegetAllHistories, getHistory, getHistory, getLatestVersion, getMatrixHistory, getRevisionDetails, refresh, verifySetupcleanUserWorkspace, verifySetuppublic static final String DEFAULT_TEST_DEFINITIONS_DIRECTORY
protected final FileBasedPersisterCore core
protected FileBasedProctorStore(FileBasedPersisterCore core, String testDefinitionsDirectory)
protected FileBasedProctorStore(FileBasedPersisterCore core)
protected static <T> boolean writeIfChanged(com.fasterxml.jackson.databind.ObjectMapper mapper,
File f,
T newThing)
throws StoreException.TestUpdateException
StoreException.TestUpdateExceptionprotected static <T> void writeThing(com.fasterxml.jackson.databind.ObjectMapper mapper,
File f,
T newThing)
throws StoreException.TestUpdateException
public TestMatrixVersion getCurrentTestMatrix() throws StoreException
ProctorReadergetCurrentTestMatrix in interface ProctorReaderStoreExceptionpublic FileBasedPersisterCore getCore()
public final TestMatrixVersion getTestMatrix(String fetchRevision) throws StoreException
ProctorReadergetTestMatrix in interface ProctorReaderfetchRevision - id of the revisionStoreExceptionpublic TestDefinition getCurrentTestDefinition(String testName) throws StoreException
ProctorReadergetCurrentTestDefinition in interface ProctorReadertestName - name of the testStoreExceptionpublic TestDefinition getTestDefinition(String testName, String fetchRevision) throws StoreException
ProctorReadergetTestDefinition in interface ProctorReadertestName - name of the testfetchRevision - id of the revisionStoreExceptionpublic void shutdown()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionprotected final <T> boolean updateThing(FileBasedProctorStore.RcsClient rcsClient, File file, T thing) throws Exception
Exceptionpublic final void updateTestDefinition(String username, String password, String author, String previousVersion, String testName, TestDefinition testDefinition, Map<String,String> metadata, String comment) throws StoreException.TestUpdateException
updateTestDefinition in interface ProctorWriterStoreException.TestUpdateExceptionpublic final void updateTestDefinition(String username, String password, String previousVersion, String testName, TestDefinition testDefinition, Map<String,String> metadata, String comment) throws StoreException.TestUpdateException
ProctorWriterupdateTestDefinition in interface ProctorWriterStoreException.TestUpdateExceptionpublic final void addTestDefinition(String username, String password, String author, String testName, TestDefinition testDefinition, Map<String,String> metadata, String comment) throws StoreException.TestUpdateException
addTestDefinition in interface ProctorWriterStoreException.TestUpdateExceptionpublic final void addTestDefinition(String username, String password, String testName, TestDefinition testDefinition, Map<String,String> metadata, String comment) throws StoreException.TestUpdateException
addTestDefinition in interface ProctorWriterStoreException.TestUpdateExceptionpublic final void deleteTestDefinition(String username, String password, String author, String previousVersion, String testName, TestDefinition testDefinition, String comment) throws StoreException.TestUpdateException
deleteTestDefinition in interface ProctorWriterStoreException.TestUpdateExceptionpublic final void deleteTestDefinition(String username, String password, String previousVersion, String testName, TestDefinition testDefinition, String comment) throws StoreException.TestUpdateException
deleteTestDefinition in interface ProctorWriterStoreException.TestUpdateExceptionCopyright © 2019. All rights reserved.