Class AbstractBatchHandler

java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.batch.handler.AbstractBatchHandler
All Implemented Interfaces:
BatchHandler
Direct Known Subclasses:
DefaultBatchHandler, S3DirectBatchHandler

public abstract class AbstractBatchHandler extends Object implements BatchHandler
Abstract batch handler: common code.
Since:
10.1
  • Field Details

    • PROP_TRANSIENT_STORE_NAME

      public static final String PROP_TRANSIENT_STORE_NAME
      See Also:
    • BATCH_HANDLER_NAME

      public static final String BATCH_HANDLER_NAME
      Transient store key for the batch handler name.
      See Also:
    • name

      protected String name
    • transientStoreName

      protected String transientStoreName
  • Constructor Details

    • AbstractBatchHandler

      public AbstractBatchHandler()
  • Method Details

    • getName

      public String getName()
      Description copied from interface: BatchHandler
      Gets the batch handler's name.
      Specified by:
      getName in interface BatchHandler
      Returns:
      the batch handler's name
    • initialize

      public void initialize(String name, Map<String,String> properties)
      Description copied from interface: BatchHandler
      Initializes this batch handler with the given name and configuration properties.
      Specified by:
      initialize in interface BatchHandler
      Parameters:
      name - the batch handler's name
      properties - the configuration properties
    • initialize

      protected void initialize(Map<String,String> properties)
    • getTransientStore

      public TransientStore getTransientStore()
      Description copied from interface: BatchHandler
      Gets the transient store used by this batch handler.
      Specified by:
      getTransientStore in interface BatchHandler
    • getBatchParameters

      protected Map<String,Serializable> getBatchParameters(String batchId)
      Gets the batch parameters, or null if the batch is not found.
    • newBatch

      public Batch newBatch(String batchId)
      Description copied from interface: BatchHandler
      Initiates a new batch with an optional externally provided id.
      Specified by:
      newBatch in interface BatchHandler
      Parameters:
      batchId - the id to use for the batch, or null to generate it
      Returns:
      a newly created batch
    • generateBatchId

      protected String generateBatchId()