Class RunnablePlugin<T extends org.gcube.vremanagement.executor.plugin.Plugin>
- java.lang.Object
-
- org.gcube.vremanagement.executor.pluginmanager.RunnablePlugin<T>
-
-
Field Summary
Fields Modifier and Type Field Description protected org.gcube.vremanagement.executor.plugin.PluginStateEvolutionactualStateEvolutionprotected Map<String,Object>inputsprotected intiterationNumberprotected Tpluginprotected List<org.gcube.vremanagement.executor.plugin.PluginStateNotification>pluginStateNotificationsprotected Stringtokenprotected UUIDuuid
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getInputs()TgetPlugin()voidrun()protected voidsetPercentage(Integer percentage)voidsetState(org.gcube.vremanagement.executor.plugin.PluginState pluginState)voidsetState(org.gcube.vremanagement.executor.plugin.PluginState pluginState, Exception e)protected voidsetState(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.voidstop()Stop the Plugin setting state toPluginState.STOPPEDStringtoString()
-
-
-
Field Detail
-
plugin
protected final T extends org.gcube.vremanagement.executor.plugin.Plugin plugin
-
uuid
protected final UUID uuid
-
iterationNumber
protected final int iterationNumber
-
pluginStateNotifications
protected final List<org.gcube.vremanagement.executor.plugin.PluginStateNotification> pluginStateNotifications
-
token
protected final String token
-
actualStateEvolution
protected org.gcube.vremanagement.executor.plugin.PluginStateEvolution actualStateEvolution
-
-
Method Detail
-
getPlugin
public T getPlugin()
- Returns:
- the plugin
-
setPercentage
protected void setPercentage(Integer percentage) throws AlreadyInFinalStateException, InvalidPluginStateEvolutionException
-
setState
public void setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState) throws AlreadyInFinalStateException, InvalidPluginStateEvolutionException
-
setState
public void setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState, Exception e) throws AlreadyInFinalStateException, InvalidPluginStateEvolutionException
-
setState
protected void setState(org.gcube.vremanagement.executor.plugin.PluginState pluginState, Integer percentage, Exception exception) throws AlreadyInFinalStateException, InvalidPluginStateEvolutionExceptionIt is up to the plugin update the State of the Running Plugin using this facilities function.- Parameters:
pluginState-- Throws:
ExceptionAlreadyInFinalStateExceptionInvalidPluginStateEvolutionException
-
-