public interface StepDataProvider
| Modifier and Type | Method and Description |
|---|---|
default <T extends StepData> |
findMandatorySingleStepData(String executionId,
String key,
Class<T> stepDataClass)
Search for mandatory single step data.
|
default List<StepData> |
findMandatoryStepDataStartsWith(String executionId,
String keyPrefix)
Find a list 'Step Data' identified by execution id and key which starts as provided one.
|
default <T extends StepData> |
findSingleStepData(String executionId,
String key,
Class<T> stepDataClass)
Search for a single step data stored in the state store.
|
List<StepData> |
findStepData(String executionId,
String key)
Find a list of 'Step Data' identified by the supplied key for the given execution id.
|
Optional<StepData> |
findStepData(String executionId,
String pipelineId,
String stepId,
String key)
Find a 'Step Data' identified by the supplied key for the given step in the scope of the referenced
'Deployment Execution'.
|
List<String> |
findStepDataKeys(String executionId,
String keyPrefix)
Find a list of 'Step Data' keys for execution id which key starts with provided prefix.
|
List<StepData> |
findStepDataStartsWith(String executionId,
String keyPrefix)
Find a list of 'Step Data' for execution id which key starts with provided prefix.
|
BinaryStorage |
getBinaryStorage()
Returns the reference for BinaryStorage to be used in Steps.
|
Optional<ExecutionState> |
getCurrentExecutionState(String executionId)
Returns execution state identified by execution id.
|
List<StepData> |
getStepDatas(String executionId,
String pipelineId,
String stepId)
Find a list of 'Step Data' for the given step in the scope of the referenced 'Deployment Execution'.
|
void |
removeData(String executionId,
String key)
Remove 'Step Data' identified by given key for a particular execution id.
|
void |
removeDataStartsWith(String executionId,
String keyPrefix)
Remove 'Step Data' identified by given key prefix for a particular execution id.
|
List<StepData> getStepDatas(String executionId, String pipelineId, String stepId)
executionId - The id. of the referenced 'Deployment Execution'.pipelineId - The id. of the pipeline containing the step to set the status for.stepId - The id. of the step to set the status for.Optional<StepData> findStepData(String executionId, String pipelineId, String stepId, String key)
executionId - The id. of the referenced 'Deployment Execution'.pipelineId - The id. of the pipeline containing the step to set the status for.stepId - The id. of the step to set the status for.key - The given property key.default <T extends StepData> T findMandatorySingleStepData(String executionId, String key, Class<T> stepDataClass) throws ProcessingException
T - The type of step dataexecutionId - The execution idkey - The key of the step datastepDataClass - The class type of step dataProcessingException - In case if step data is not found in state store.default <T extends StepData> Optional<T> findSingleStepData(String executionId, String key, Class<T> stepDataClass) throws ProcessingException
T - The type of step dataexecutionId - The execution idkey - The key of the step datastepDataClass - The class type of step dataProcessingException - in case when there is more than one step data present or the step data is not of
provided class type.List<StepData> findStepData(String executionId, String key)
executionId - The id. of the referenced 'Deployment Execution'.key - The given property key.default List<StepData> findMandatoryStepDataStartsWith(String executionId, String keyPrefix) throws ProcessingException
executionId - The id of referenced 'Deployment Execution'.keyPrefix - The key prefix.ProcessingException - in case of no step data is found.List<StepData> findStepDataStartsWith(String executionId, String keyPrefix)
executionId - The id of referenced 'Deployment Execution'.keyPrefix - The key prefix.List<String> findStepDataKeys(String executionId, String keyPrefix)
executionId - The id of referenced 'Deployment Execution'.keyPrefix - The key prefix.BinaryStorage getBinaryStorage()
void removeData(String executionId, String key)
executionId - The id of the referenced 'Deployment Execution'.key - The given property key.void removeDataStartsWith(String executionId, String keyPrefix)
executionId - The id of the referenced 'Deployment Execution'.keyPrefix - The given property key prefix.Optional<ExecutionState> getCurrentExecutionState(String executionId)
executionId - The id. of the referenced 'Deployment Execution'.Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries