Cleaning API

git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/vre-management/smart-executor-api@117706 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Luca Frosini 2015-08-25 16:03:31 +00:00
parent a87b7d4e03
commit 811a751c49
2 changed files with 11 additions and 14 deletions

View File

@ -74,16 +74,5 @@ public abstract class PersistenceConnector implements PluginStateNotification {
public abstract PluginState getLastPluginInstanceState(UUID uuid)
throws Exception;
/**
* Persist the new state of plugin
* @param uuid the UUID which identify the current execution
* @param timestamp the time of the new {@link PluginState}
* @param pluginDeclaration the pluginDeclaration
* @param pluginState the {@link PluginState} value
* @throws Exception if fails
*/
public abstract void addEvolution(UUID uuid, int lauchedtimes,
long timestamp, String pluginName, PluginState pluginState)
throws Exception;
}

View File

@ -11,8 +11,16 @@ import java.util.UUID;
*/
public interface PluginStateNotification {
public void pluginStateEvolution(UUID uuid, int iteration,
long timestamp, String pluginName, PluginState pluginState)
throws Exception;
/**
* Persist the new state of plugin
* @param uuid the UUID which identify the current execution
* @param timestamp the time of the new {@link PluginState}
* @param pluginDeclaration the pluginDeclaration
* @param pluginState the {@link PluginState} value
* @throws Exception if fails
*/
public abstract void pluginStateEvolution(UUID uuid, int lauchedtimes,
long timestamp, String pluginName, PluginState pluginState)
throws Exception;
}