public class TaskStore extends Object
| Constructor and Description |
|---|
TaskStore()
Basic constructor.
|
TaskStore(String persistencyPath)
Basic constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution |
addExecution(String taskId,
org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution execution)
Add an execution to an existing task.
|
org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport |
addReport(String taskId,
String executionId,
org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport report)
Add a report to an existing execution.
|
org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask |
addTask(org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask task)
Add a new task.
|
org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution |
getExecution(String taskId,
String executionId)
Return the given execution.
|
List<org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution> |
getExecutions(String taskId)
Return all executions for the given task.
|
org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution |
getLastExecution(String taskId) |
String |
getLastExecutionId(String taskId) |
org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport |
getReport(String taskId,
String executionId,
String reportName)
Return the given report.
|
List<org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport> |
getReports(String taskId,
String executionId)
Return all reports for the given execution.
|
File |
getRoot() |
org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask |
getTask(String taskId)
Return the given task.
|
boolean |
hasExecution(String taskId,
String executionId) |
List<org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask> |
searchTasks(String user,
String scope,
String token,
Integer limit)
Search tasks matching the given filters.
|
org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution |
update(String taskId,
org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution execution)
Update the given execution.
|
org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport |
update(String taskId,
String executionId,
org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport report)
Update the given report.
|
public TaskStore()
throws InvalidParameterException
InvalidParameterExceptionpublic TaskStore(String persistencyPath) throws InvalidParameterException
InvalidParameterExceptionpublic File getRoot()
public List<org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask> searchTasks(String user, String scope, String token, Integer limit)
user - scope - token - limit - public org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask getTask(String taskId) throws InvalidParameterException, MalformedElementException, NotThereException, StoreException
taskId - ExceptionInvalidParameterExceptionMalformedElementExceptionNotThereExceptionStoreExceptionpublic List<org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution> getExecutions(String taskId) throws InvalidParameterException, StoreException, MalformedElementException, NotThereException
taskId - NotThereException - when no taskId is foundInvalidParameterExceptionStoreExceptionMalformedElementExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution getExecution(String taskId, String executionId) throws InvalidParameterException, StoreException, NotThereException, MalformedElementException
taskId - executionId - NotThereException - if the task can't be retrievedMalformedElementException - if the execution can't be parsedInvalidParameterExceptionStoreExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution getLastExecution(String taskId) throws InvalidParameterException, StoreException, NotThereException, MalformedElementException
public List<org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport> getReports(String taskId, String executionId) throws InvalidParameterException, NotThereException, MalformedElementException
taskId - executionId - ExceptionInvalidParameterExceptionNotThereExceptionMalformedElementExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport getReport(String taskId, String executionId, String reportName) throws InvalidParameterException, NotThereException, MalformedElementException
taskId - executionId - reportName - ExceptionInvalidParameterExceptionNotThereExceptionMalformedElementExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution update(String taskId, org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution execution) throws InvalidParameterException, NotThereException, MalformedElementException, StoreException
taskId - execution - ExceptionInvalidParameterExceptionNotThereExceptionMalformedElementExceptionStoreExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport update(String taskId, String executionId, org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport report) throws InvalidParameterException, NotThereException, MalformedElementException, StoreException
taskId - executionId - report - ExceptionInvalidParameterExceptionNotThereExceptionMalformedElementExceptionStoreExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask addTask(org.gcube.dataanalysis.copernicus.cmems.importer.task.ImportTask task)
throws InvalidParameterException,
AlreadyThereException,
StoreException,
NotThereException,
MalformedElementException
task - ExceptionInvalidParameterExceptionAlreadyThereExceptionStoreExceptionNotThereExceptionMalformedElementExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution addExecution(String taskId, org.gcube.dataanalysis.copernicus.cmems.importer.task.Execution execution) throws InvalidParameterException, AlreadyThereException, NotThereException, StoreException, MalformedElementException
taskId - execution - ExceptionInvalidParameterExceptionAlreadyThereExceptionNotThereExceptionStoreExceptionMalformedElementExceptionpublic org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport addReport(String taskId, String executionId, org.gcube.dataanalysis.copernicus.cmems.importer.task.ExecutionReport report) throws InvalidParameterException, NotThereException, AlreadyThereException, StoreException, MalformedElementException
taskId - executionId - report - ExceptionInvalidParameterExceptionNotThereExceptionAlreadyThereExceptionStoreExceptionMalformedElementExceptionCopyright © 2018. All Rights Reserved.