public class LocalDirectoryCore extends Object implements FileBasedPersisterCore
| Constructor and Description |
|---|
LocalDirectoryCore(File baseDir,
String testDefinitionsDirectory) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
TestVersionResult |
determineVersions(String fetchRevision) |
void |
doInWorkingDirectory(ChangeMetadata changeMetadata,
String previousVersion,
FileBasedProctorStore.ProctorUpdater updater) |
String |
getAddTestRevision() |
<C> C |
getFileContents(Class<C> c,
String[] path_parts,
C defaultValue,
String revision)
Parses a JSON class from a specified path relative to the root of the base directory.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdoInWorkingDirectory, doInWorkingDirectorypublic <C> C getFileContents(Class<C> c, String[] path_parts, C defaultValue, String revision) throws StoreException.ReadException, com.fasterxml.jackson.core.JsonProcessingException
FileBasedPersisterCoregetFileContents in interface FileBasedPersisterCoreStoreException.ReadExceptioncom.fasterxml.jackson.core.JsonProcessingExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic void doInWorkingDirectory(ChangeMetadata changeMetadata, String previousVersion, FileBasedProctorStore.ProctorUpdater updater) throws StoreException.TestUpdateException
doInWorkingDirectory in interface FileBasedPersisterCoreStoreException.TestUpdateExceptionpublic TestVersionResult determineVersions(String fetchRevision) throws StoreException.ReadException
determineVersions in interface FileBasedPersisterCoreStoreException.ReadExceptionpublic String getAddTestRevision()
getAddTestRevision in interface FileBasedPersisterCoreCopyright © 2022. All rights reserved.