public interface ScheduledTaskConfiguration
| Modifier and Type | Method and Description |
|---|---|
void |
addScheduledTask(UUID uuid,
String consumerID,
org.gcube.vremanagement.executor.api.types.LaunchParameter parameter)
Create a Scheduled Task on persistence
|
List<org.gcube.vremanagement.executor.api.types.LaunchParameter> |
getAvailableScheduledTasks()
Retrieve from the #SmartExecutorPersistenceConnector the orphaned
Scheduled tasks
|
org.gcube.vremanagement.executor.api.types.LaunchParameter |
getScheduledTask(UUID uuid)
Return the Scheduled Task if any, null otherwise
|
void |
releaseScheduledTask(UUID uuid)
Release the Scheduled Task leaving it as orphan on persistence
|
void |
removeScheduledTask(UUID uuid)
Remove from persistence the Scheduled Task.
|
void |
reserveScheduledTask(UUID uuid,
String consumerID)
Reserve an orphan Scheduled tasks
|
static final String SCOPE
List<org.gcube.vremanagement.executor.api.types.LaunchParameter> getAvailableScheduledTasks() throws SchedulePersistenceException
SchedulePersistenceException - if failsorg.gcube.vremanagement.executor.api.types.LaunchParameter getScheduledTask(UUID uuid) throws SchedulePersistenceException
uuid - which identify the Scheduled TaskSchedulePersistenceException - if failsvoid addScheduledTask(UUID uuid, String consumerID, org.gcube.vremanagement.executor.api.types.LaunchParameter parameter) throws SchedulePersistenceException
uuid - the uuid which (will) identify the task on the SmartExecutor instanceparameter - SchedulePersistenceException - if failsvoid reserveScheduledTask(UUID uuid, String consumerID) throws SchedulePersistenceException
uuid - the uuid which (will) identify the task on the SmartExecutor instanceSchedulePersistenceException - if failsvoid removeScheduledTask(UUID uuid) throws SchedulePersistenceException
uuid - the uuid which (will) identify the task on the SmartExecutor instanceparameter - SchedulePersistenceExceptionvoid releaseScheduledTask(UUID uuid) throws SchedulePersistenceException
uuid - the uuid which (will) identify the task on the SmartExecutor
instanceSchedulePersistenceExceptionCopyright © 2016. All Rights Reserved.