Class PluginStateEvolution
java.lang.Object
org.gcube.vremanagement.executor.plugin.PluginStateEvolution
- Author:
- Luca Frosini (ISTI - CNR)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intCurrent iteration numberprotected intCompletion percentage (0-100)protected PluginDefinitionPlugin definition informationprotected PluginStateCurrent plugin stateprotected RunOnInformation about where the plugin is runningprotected longTimestamp of this state evolutionprotected UUIDUUID identifying the current execution -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for PluginStateEvolution.PluginStateEvolution(UUID uuid, int iteration, long timestamp, PluginDefinition pluginDefinition, PluginState pluginState, Integer percentage) -
Method Summary
-
Field Details
-
uuid
UUID identifying the current execution -
iteration
protected int iterationCurrent iteration number -
timestamp
protected long timestampTimestamp of this state evolution -
pluginDefinition
Plugin definition information -
pluginState
Current plugin state -
percentage
protected int percentageCompletion percentage (0-100) -
runOn
Information about where the plugin is running
-
-
Constructor Details
-
PluginStateEvolution
public PluginStateEvolution()Default constructor for PluginStateEvolution. -
PluginStateEvolution
public PluginStateEvolution(UUID uuid, int iteration, long timestamp, PluginDefinition pluginDefinition, PluginState pluginState, Integer percentage) throws InvalidPluginStateEvolutionException - Parameters:
uuid- the UUID which identify the current executioniteration- the iteration numbertimestamp- the time of the newPluginStatepluginDefinition- the pluginDeclarationpluginState- thePluginStatevaluepercentage- the completion percentage- Throws:
InvalidPluginStateEvolutionException- if fails
-
-
Method Details
-
getUUID
- Returns:
- the uuid
-
getIteration
public int getIteration()- Returns:
- the iteration
-
getTimestamp
public long getTimestamp()- Returns:
- the timestamp
-
getPluginDefinition
- Returns:
- the pluginDeclaration
-
getPluginState
- Returns:
- the pluginState
-
getPercentage
- Returns:
- the percentage of execution
-
getRunOn
- Returns:
- the runOn
-
setRunOn
- Parameters:
runOn- the runOn to set
-
toString
-