org.gcube.application.aquamaps.aquamapsservice.impl.db.managers
Class JobManager
java.lang.Object
org.gcube.application.aquamaps.aquamapsservice.impl.db.managers.SubmittedManager
org.gcube.application.aquamaps.aquamapsservice.impl.db.managers.JobManager
public class JobManager
- extends SubmittedManager
|
Method Summary |
static void |
addToDeleteTempFolder(int jobId,
String folderName)
|
static void |
addToDropTableList(int jobId,
String tableName)
|
static void |
cleanTemp(int jobId)
|
static List<org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Submitted> |
getObjects(int jobId)
|
static String[] |
getSpeciesByStatus(int jobId,
SpeciesStatus status)
|
static String |
getWorkingHCAF(int submittedId)
|
static String |
getWorkingHSPEC(int submittedId)
|
static String |
getWorkingHSPEN(int submittedId)
|
protected static String |
getWorkingTable(int submittedId,
String tableType)
|
static org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Job |
insertNewJob(org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Job toPerform)
Creates a new entry in Job table and AquaMap table (for every aquamap object in job) |
static boolean |
isJobComplete(int jobId)
|
static boolean |
isSpeciesListReady(int jobId,
Set<String> toCheck)
|
static boolean |
isSpeciesSetCustomized(int submittedId,
Set<String> ids)
|
static void |
setWorkingHCAF(int submittedId,
String tableName)
|
static void |
setWorkingHSPEC(int submittedId,
String tableName)
|
static void |
setWorkingHSPEN(int submittedId,
String tableName)
|
protected static void |
setWorkingTable(int submittedId,
String tableType,
String tableName)
|
static void |
updateSpeciesStatus(int jobId,
String[] speciesId,
SpeciesStatus status)
|
| Methods inherited from class org.gcube.application.aquamaps.aquamapsservice.impl.db.managers.SubmittedManager |
delete, deleteFromTables, getAuthor, getCount, getField, getGisId, getHCAFTableId, getHSPECTableId, getHSPENTableId, getJsonList, getList, getList, getStatus, getSubmittedById, insertInTable, isAquaMap, isGIS, markSaved, setGisPublishedId, setSerializedPath, setStartTime, update, updateField, updateGISData, updateStatus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
toDropTables
public static final String toDropTables
- See Also:
- Constant Field Values
toDropTablesJobId
public static final String toDropTablesJobId
toDropTablesTableName
public static final String toDropTablesTableName
- See Also:
- Constant Field Values
tempFolders
public static final String tempFolders
- See Also:
- Constant Field Values
tempFoldersJobId
public static final String tempFoldersJobId
tempFoldersFolderName
public static final String tempFoldersFolderName
- See Also:
- Constant Field Values
selectedSpecies
public static final String selectedSpecies
- See Also:
- Constant Field Values
selectedSpeciesStatus
public static final String selectedSpeciesStatus
selectedSpeciesJobId
public static final String selectedSpeciesJobId
selectedSpeciesSpeciesID
public static final String selectedSpeciesSpeciesID
selectedSpeciesIsCustomized
public static final String selectedSpeciesIsCustomized
- See Also:
- Constant Field Values
workingTables
protected static final String workingTables
- See Also:
- Constant Field Values
tableField
protected static final String tableField
- See Also:
- Constant Field Values
tableTypeField
protected static final String tableTypeField
- See Also:
- Constant Field Values
JobManager
public JobManager()
setWorkingTable
protected static void setWorkingTable(int submittedId,
String tableType,
String tableName)
throws Exception
- Throws:
Exception
getWorkingTable
protected static String getWorkingTable(int submittedId,
String tableType)
throws Exception
- Throws:
Exception
setWorkingHCAF
public static void setWorkingHCAF(int submittedId,
String tableName)
throws Exception
- Throws:
Exception
setWorkingHSPEN
public static void setWorkingHSPEN(int submittedId,
String tableName)
throws Exception
- Throws:
Exception
setWorkingHSPEC
public static void setWorkingHSPEC(int submittedId,
String tableName)
throws Exception
- Throws:
Exception
getWorkingHCAF
public static String getWorkingHCAF(int submittedId)
throws Exception
- Throws:
Exception
getWorkingHSPEN
public static String getWorkingHSPEN(int submittedId)
throws Exception
- Throws:
Exception
getWorkingHSPEC
public static String getWorkingHSPEC(int submittedId)
throws Exception
- Throws:
Exception
addToDropTableList
public static void addToDropTableList(int jobId,
String tableName)
throws Exception
- Throws:
Exception
addToDeleteTempFolder
public static void addToDeleteTempFolder(int jobId,
String folderName)
throws Exception
- Throws:
Exception
updateSpeciesStatus
public static void updateSpeciesStatus(int jobId,
String[] speciesId,
SpeciesStatus status)
throws Exception
- Throws:
Exception
getSpeciesByStatus
public static String[] getSpeciesByStatus(int jobId,
SpeciesStatus status)
throws Exception
- Throws:
Exception
isJobComplete
public static boolean isJobComplete(int jobId)
throws Exception
- Throws:
Exception
cleanTemp
public static void cleanTemp(int jobId)
throws Exception
- Throws:
Exception
isSpeciesListReady
public static boolean isSpeciesListReady(int jobId,
Set<String> toCheck)
throws Exception
- Throws:
Exception
isSpeciesSetCustomized
public static boolean isSpeciesSetCustomized(int submittedId,
Set<String> ids)
throws Exception
- Throws:
Exception
insertNewJob
public static org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Job insertNewJob(org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Job toPerform)
throws Exception
- Creates a new entry in Job table and AquaMap table (for every aquamap object in job)
- Returns:
- new job id
- Throws:
Exception
getObjects
public static List<org.gcube.application.aquamaps.aquamapsservice.stubs.datamodel.enhanced.Submitted> getObjects(int jobId)
throws Exception
- Throws:
Exception
Copyright © 2014. All Rights Reserved.