public class TaxonomyJobUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPLETED |
static String |
FAILED |
protected static org.apache.log4j.Logger |
logger |
static String |
PENDING |
static String |
RUNNING |
| Constructor and Description |
|---|
TaxonomyJobUtil() |
| Modifier and Type | Method and Description |
|---|---|
static int |
changeStatusTaxonomyJobById(String jobIdentifier,
DownloadState state,
TaxonomyJobPersistence taxonomyJobDAO)
Change status taxonomy job by id.
|
static JobTaxonomyModel |
convertJob(TaxonomyJob job,
org.gcube.data.spd.model.service.types.CompleteJobStatus statusResponse,
TaxonomyJobPersistence speciesJobDao)
Convert job.
|
static int |
deleteTaxonomyJobById(String jobIdentifier,
TaxonomyJobPersistence taxonomyJobDao)
Delete taxonomy job by id.
|
static DownloadState |
getDownloadState(org.gcube.data.spd.model.service.types.JobStatus status)
Gets the download state.
|
public static final String COMPLETED
public static final String FAILED
public static final String RUNNING
public static final String PENDING
protected static org.apache.log4j.Logger logger
public static JobTaxonomyModel convertJob(TaxonomyJob job, org.gcube.data.spd.model.service.types.CompleteJobStatus statusResponse, TaxonomyJobPersistence speciesJobDao) throws SQLException
job - the jobstatusResponse - the status responsespeciesJobDao - the species job daoSQLException - the SQL exceptionpublic static DownloadState getDownloadState(org.gcube.data.spd.model.service.types.JobStatus status)
status - the statuspublic static int deleteTaxonomyJobById(String jobIdentifier, TaxonomyJobPersistence taxonomyJobDao) throws SQLException
jobIdentifier - the job identifiertaxonomyJobDao - the taxonomy job daoSQLException - the SQL exceptionpublic static int changeStatusTaxonomyJobById(String jobIdentifier, DownloadState state, TaxonomyJobPersistence taxonomyJobDAO)
jobIdentifier - the job identifierstate - the statetaxonomyJobDAO - the taxonomy job daoCopyright © 2020. All Rights Reserved.