Class SmartExecutorTask
java.lang.Object
org.gcube.vremanagement.executor.scheduler.SmartExecutorTask
- All Implemented Interfaces:
org.quartz.InterruptableJob,org.quartz.Job
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected booleanprotected Booleanstatic final Stringprotected org.gcube.vremanagement.executor.api.types.LaunchParameterprotected intprotected booleanstatic final Stringprotected Stringprotected org.gcube.vremanagement.executor.plugin.Pluginprotected Stringprotected List<org.gcube.vremanagement.executor.plugin.PluginStateNotification>protected RunnablePlugin<org.gcube.vremanagement.executor.plugin.Plugin>protected UUIDstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.quartz.JobExecutionContext context) protected voidfinished(org.quartz.JobExecutionContext context) org.gcube.vremanagement.executor.api.types.LaunchParametergetUUID()protected voidinit(org.quartz.JobDataMap jobDataMap) voidprotected booleantoString()protected voidunschedule(boolean globally)
-
Field Details
-
UUID
- See Also:
-
LAUNCH_PARAMETER
- See Also:
-
OWNER_ID
- See Also:
-
executionsCount
-
executionsState
-
pluginStateNotifications
protected List<org.gcube.vremanagement.executor.plugin.PluginStateNotification> pluginStateNotifications -
initialized
protected boolean initialized -
uuid
-
launchParameter
protected org.gcube.vremanagement.executor.api.types.LaunchParameter launchParameter -
ownerId
-
executionCount
protected int executionCount -
pluginName
-
plugin
protected org.gcube.vremanagement.executor.plugin.Plugin plugin -
inputs
-
runnablePlugin
-
mustPreviousExecutionsCompleted
protected boolean mustPreviousExecutionsCompleted -
maxExecutionNumber
protected int maxExecutionNumber -
interrupted
-
-
Constructor Details
-
SmartExecutorTask
- Throws:
Exception
-
-
Method Details
-
getExecutionsCount
- Returns:
- the executionsCount
-
init
protected void init(org.quartz.JobDataMap jobDataMap) throws org.quartz.JobExecutionException - Throws:
org.quartz.JobExecutionException
-
getUUID
- Returns:
- the uuid
-
getLaunchParameter
public org.gcube.vremanagement.executor.api.types.LaunchParameter getLaunchParameter()- Returns:
- the parameter
-
execute
public void execute(org.quartz.JobExecutionContext context) throws org.quartz.JobExecutionException - Specified by:
executein interfaceorg.quartz.Job- Throws:
org.quartz.JobExecutionException
-
finished
protected void finished(org.quartz.JobExecutionContext context) -
interrupt
public void interrupt() throws org.quartz.UnableToInterruptJobException- Specified by:
interruptin interfaceorg.quartz.InterruptableJob- Throws:
org.quartz.UnableToInterruptJobException
-
isMaxExecutionNumberReached
protected boolean isMaxExecutionNumberReached() -
unschedule
- Throws:
Exception
-
toString
-