Package de.valtech.aecu.api.service
Class ExecutionResult
- java.lang.Object
-
- de.valtech.aecu.api.service.ExecutionResult
-
public class ExecutionResult extends Object
Result of a script execution.- Author:
- Roland Gruber
-
-
Constructor Summary
Constructors Constructor Description ExecutionResult(ExecutionState state, String time, String result, String output, ExecutionResult fallbackResult, String path)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExecutionResult
getFallbackResult()
Returns the fallback script result if any.String
getOutput()
Returns the script output.String
getPath()
Returns the script path.String
getResult()
Returns the script result.String
getShortPath()
Returns the short script path (stripped by prefix) or the unmodified path in case the script path does not start withAecuService.AECU_VAR_PATH_PREFIX
.ExecutionState
getState()
Returns the execution state.String
getTime()
Returns the execution time.String
toString()
-
-
-
Constructor Detail
-
ExecutionResult
public ExecutionResult(ExecutionState state, String time, String result, String output, ExecutionResult fallbackResult, String path)
Constructor- Parameters:
state
- execution statetime
- execution timeresult
- resultoutput
- script outputfallbackResult
- fallback script resultpath
- script path
-
-
Method Detail
-
getState
public ExecutionState getState()
Returns the execution state.- Returns:
- state
-
getResult
public String getResult()
Returns the script result.- Returns:
- output
-
getOutput
public String getOutput()
Returns the script output.- Returns:
- output
-
getTime
public String getTime()
Returns the execution time.- Returns:
- time
-
getFallbackResult
public ExecutionResult getFallbackResult()
Returns the fallback script result if any.- Returns:
- result
-
getPath
public String getPath()
Returns the script path.- Returns:
- path
-
getShortPath
public String getShortPath()
Returns the short script path (stripped by prefix) or the unmodified path in case the script path does not start withAecuService.AECU_VAR_PATH_PREFIX
.- Returns:
- short path
-
-