Package org.deltafi.common.types
Class ActionConfiguration
java.lang.Object
org.deltafi.common.types.DeltaFiConfiguration
org.deltafi.common.types.ActionConfiguration
- Direct Known Subclasses:
EgressActionConfiguration,TimedIngressActionConfiguration,TransformActionConfiguration
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ActionTypeprotected CollectConfigurationprotected final StringFields inherited from class org.deltafi.common.types.DeltaFiConfiguration
apiVersion, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildActionInput(String flow, DeltaFile deltaFile, String systemName, String egressFlow, String returnAddress, OffsetDateTime actionCreated, Action action, String memo) Create the ActionInput that should be sent to an ActionbuildCollectingActionInput(String flow, DeltaFile aggregate, List<DeltaFile> collectedDeltaFiles, String systemName, String egressFlow, OffsetDateTime actionCreated, Action action) Create the ActionInput that should be sent to an Action with a collect configuration.validate(ActionDescriptor actionDescriptor) Validates this action configuration.
-
Field Details
-
actionType
-
type
-
internalParameters
-
parameters
-
collect
-
-
Constructor Details
-
ActionConfiguration
-
-
Method Details
-
buildActionInput
public ActionInput buildActionInput(String flow, DeltaFile deltaFile, String systemName, String egressFlow, String returnAddress, OffsetDateTime actionCreated, Action action, String memo) Create the ActionInput that should be sent to an Action- Parameters:
flow- the flow on which the Action is specifieddeltaFile- DeltaFile that will be acted uponsystemName- system name to set in contextegressFlow- the egress flow for this actionreturnAddress- the unique address of this core instanceactionCreated- action created datetimeaction- the actionmemo- memo to set in the context- Returns:
- ActionInput containing the ActionConfiguration
-
buildCollectingActionInput
public ActionInput buildCollectingActionInput(String flow, DeltaFile aggregate, List<DeltaFile> collectedDeltaFiles, String systemName, String egressFlow, OffsetDateTime actionCreated, Action action) Create the ActionInput that should be sent to an Action with a collect configuration.- Parameters:
flow- the flow on which the Action is specifiedaggregate- the aggregate DeltaFilecollectedDeltaFiles- the DeltaFiles that will be acted uponsystemName- system name to set in contextegressFlow- the egress flow for this actionactionCreated- action created datetimeaction- the action- Returns:
- ActionInput containing the ActionConfiguration
-
validate
Validates this action configuration.- Parameters:
actionDescriptor- action descriptor to be validated against- Returns:
- a List of validation errors or an empty list if there are no errors
-