| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.vremanagement.executor.plugin.PluginState |
actualState |
protected Map<String,Object> |
inputs |
protected int |
iterationNumber |
static String |
MAX_LAUNCH_TIMES |
protected T |
plugin |
protected List<org.gcube.vremanagement.executor.plugin.PluginStateNotification> |
pluginStateNotifications |
protected static String |
SEPARATOR |
protected UUID |
uuid |
| Constructor and Description |
|---|
RunnablePlugin(T plugin,
Map<String,Object> inputs,
UUID uuid,
int iterationNumber,
List<org.gcube.vremanagement.executor.plugin.PluginStateNotification> pluginStateNotifications) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getInputs() |
T |
getPlugin() |
void |
run() |
void |
setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState)
It is up to the plugin update the State of the Running Plugin using
this facilities function.
|
void |
stop()
Stop the Plugin setting state to
PluginState#CANCELLED |
String |
toString() |
public static final String MAX_LAUNCH_TIMES
protected static final String SEPARATOR
protected final T extends org.gcube.vremanagement.executor.plugin.Plugin<? extends org.gcube.vremanagement.executor.plugin.PluginDeclaration> plugin
protected final UUID uuid
protected final int iterationNumber
protected final List<org.gcube.vremanagement.executor.plugin.PluginStateNotification> pluginStateNotifications
protected org.gcube.vremanagement.executor.plugin.PluginState actualState
public T getPlugin()
public void setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState)
throws AlreadyInFinalStateException
pluginState - ExceptionAlreadyInFinalStateExceptionCopyright © 2015. All Rights Reserved.