Class ActionConfiguration

java.lang.Object
org.deltafi.common.types.DeltaFiConfiguration
org.deltafi.common.types.ActionConfiguration
Direct Known Subclasses:
EgressActionConfiguration, TimedIngressActionConfiguration, TransformActionConfiguration

public abstract class ActionConfiguration extends DeltaFiConfiguration
  • Field Details

  • Constructor Details

  • 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 specified
      deltaFile - DeltaFile that will be acted upon
      systemName - system name to set in context
      egressFlow - the egress flow for this action
      returnAddress - the unique address of this core instance
      actionCreated - action created datetime
      action - the action
      memo - 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 specified
      aggregate - the aggregate DeltaFile
      collectedDeltaFiles - the DeltaFiles that will be acted upon
      systemName - system name to set in context
      egressFlow - the egress flow for this action
      actionCreated - action created datetime
      action - the action
      Returns:
      ActionInput containing the ActionConfiguration
    • validate

      public List<String> validate(ActionDescriptor actionDescriptor)
      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