| Modifier and Type | Field and Description |
|---|---|
protected org.gcube.vremanagement.executor.plugin.PluginStateEvolution |
actualStateEvolution |
protected Map<String,Object> |
inputs |
protected int |
iterationNumber |
protected T |
plugin |
protected List<org.gcube.vremanagement.executor.plugin.PluginStateNotification> |
pluginStateNotifications |
protected String |
token |
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,
String token) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getInputs() |
T |
getPlugin() |
void |
run() |
protected void |
setPercentage(Integer percentage) |
void |
setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState) |
void |
setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState,
Exception e) |
protected void |
setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState,
Integer percentage,
Exception exception)
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.STOPPED |
String |
toString() |
protected final T extends org.gcube.vremanagement.executor.plugin.Plugin plugin
protected final UUID uuid
protected final int iterationNumber
protected final List<org.gcube.vremanagement.executor.plugin.PluginStateNotification> pluginStateNotifications
protected final String token
protected org.gcube.vremanagement.executor.plugin.PluginStateEvolution actualStateEvolution
public T getPlugin()
protected void setPercentage(Integer percentage) throws AlreadyInFinalStateException, InvalidPluginStateEvolutionException
public void setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState)
throws AlreadyInFinalStateException,
InvalidPluginStateEvolutionException
public void setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState,
Exception e)
throws AlreadyInFinalStateException,
InvalidPluginStateEvolutionException
protected void setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState,
Integer percentage,
Exception exception)
throws AlreadyInFinalStateException,
InvalidPluginStateEvolutionException
pluginState - ExceptionAlreadyInFinalStateExceptionInvalidPluginStateEvolutionExceptionCopyright © 2022. All Rights Reserved.