public class SimpleCoreHunterRunServices extends Object implements CoreHunterRunServices
constructor
provided
path is defined in the overloaded constructor using the
setPath(Path)
methodModifier and Type | Field and Description |
---|---|
String |
charsetName |
Modifier | Constructor and Description |
---|---|
protected |
SimpleCoreHunterRunServices(DatasetServices datasetServices)
Constructor that can be used by sub-classes provided the path is defined
in the overloaded constructor using the
setPath(Path) method |
|
SimpleCoreHunterRunServices(Path path,
DatasetServices datasetServices)
Constructor that is a path to defined the location of the datasets
|
Modifier and Type | Method and Description |
---|---|
void |
deleteCoreHunterRun(String uniqueIdentifier) |
CoreHunterRun |
executeCoreHunter(CoreHunterRunArguments arguments) |
List<CoreHunterRun> |
getAllCoreHunterRuns() |
CoreHunterRunArguments |
getArguments(String uniqueIdentifier) |
CoreHunterRun |
getCoreHunterRun(String uniqueIdentifier) |
String |
getErrorMessage(String uniqueIdentifier) |
String |
getErrorStream(String uniqueIdentifier) |
String |
getOutputStream(String uniqueIdentifier) |
Path |
getPath() |
org.jamesframework.core.subset.SubsetSolution |
getSubsetSolution(String uniqueIdentifier) |
protected Object |
readFromFile(Path path)
Reads an object from a file.
|
boolean |
removeCoreHunterRun(String uniqueIdentifier) |
void |
setPath(Path path) |
void |
shutdown() |
void |
updateCoreHunterRun(CoreHunterRun coreHunterRun) |
protected void |
writeToFile(Path path,
Object object)
Write an object to a file.
|
public String charsetName
protected SimpleCoreHunterRunServices(DatasetServices datasetServices) throws IOException
setPath(Path)
methoddatasetServices
- the dataset services in to be used by these servicesIOException
- if the path can not be set or is invalidpublic SimpleCoreHunterRunServices(Path path, DatasetServices datasetServices) throws IOException
path
- the location of the datasetsdatasetServices
- the dataset services in to be used by these servicesIOException
- if the path can not be set or is invalidpublic final Path getPath()
public final void setPath(Path path) throws IOException
IOException
public CoreHunterRun executeCoreHunter(CoreHunterRunArguments arguments)
executeCoreHunter
in interface CoreHunterRunServices
public CoreHunterRun getCoreHunterRun(String uniqueIdentifier)
getCoreHunterRun
in interface CoreHunterRunServices
public boolean removeCoreHunterRun(String uniqueIdentifier)
removeCoreHunterRun
in interface CoreHunterRunServices
public void deleteCoreHunterRun(String uniqueIdentifier)
deleteCoreHunterRun
in interface CoreHunterRunServices
public void updateCoreHunterRun(CoreHunterRun coreHunterRun)
updateCoreHunterRun
in interface CoreHunterRunServices
public List<CoreHunterRun> getAllCoreHunterRuns()
getAllCoreHunterRuns
in interface CoreHunterRunServices
public String getOutputStream(String uniqueIdentifier)
getOutputStream
in interface CoreHunterRunServices
public String getErrorStream(String uniqueIdentifier)
getErrorStream
in interface CoreHunterRunServices
public String getErrorMessage(String uniqueIdentifier)
getErrorMessage
in interface CoreHunterRunServices
public org.jamesframework.core.subset.SubsetSolution getSubsetSolution(String uniqueIdentifier)
getSubsetSolution
in interface CoreHunterRunServices
public CoreHunterRunArguments getArguments(String uniqueIdentifier)
getArguments
in interface CoreHunterRunServices
public void shutdown()
protected Object readFromFile(Path path) throws IOException
writeToFile(Path, Object)
methodpath
- the path of the file to be readIOException
- if the object can not be read from the fileprotected void writeToFile(Path path, Object object) throws IOException
readFromFile(Path)
methodpath
- the path of the file to be writtenobject
- the object to be writtenIOException
- if the object can not be write to the fileCopyright © 2017. All rights reserved.