public abstract class Plugin<T extends PluginDeclaration> extends Object
| Modifier and Type | Method and Description |
|---|---|
T |
getPluginDeclaration() |
abstract void |
launch(Map<String,Object> inputs)
Launch the plugin with the provided input.
|
protected abstract void |
onStop()
This function is used to correctly stop the plugin
|
protected void |
setPercentageEvolution(Integer integer) |
void |
setPercentageSetter(PercentageSetter percentageSetter) |
void |
stop()
Invoke onStop() function to allow the plugin to safely stop the execution
|
public Plugin(T pluginDeclaration)
public T getPluginDeclaration()
public void setPercentageSetter(PercentageSetter percentageSetter)
percentageSetter - the percentageSetter to setprotected void setPercentageEvolution(Integer integer)
public abstract void launch(Map<String,Object> inputs) throws Exception
inputs - Exception - if the launch failsprotected abstract void onStop()
throws Exception
Exception - if the launch failsCopyright © 2017. All Rights Reserved.