Class AbstractBatchHandler
java.lang.Object
org.nuxeo.ecm.automation.server.jaxrs.batch.handler.AbstractBatchHandler
- All Implemented Interfaces:
BatchHandler
- Direct Known Subclasses:
DefaultBatchHandler,S3DirectBatchHandler
Abstract batch handler: common code.
- Since:
- 10.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected Map<String,Serializable> getBatchParameters(String batchId) Gets the batch parameters, ornullif the batch is not found.getName()Gets the batch handler's name.Gets the transient store used by this batch handler.voidinitialize(String name, Map<String, String> properties) Initializes this batch handler with the given name and configuration properties.protected voidinitialize(Map<String, String> properties) Initiates a new batch with an optional externally provided id.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.ecm.automation.server.jaxrs.batch.BatchHandler
completeUpload, getBatch, refreshToken
-
Field Details
-
PROP_TRANSIENT_STORE_NAME
- See Also:
-
BATCH_HANDLER_NAME
Transient store key for the batch handler name.- See Also:
-
name
-
transientStoreName
-
-
Constructor Details
-
AbstractBatchHandler
public AbstractBatchHandler()
-
-
Method Details
-
getName
Description copied from interface:BatchHandlerGets the batch handler's name.- Specified by:
getNamein interfaceBatchHandler- Returns:
- the batch handler's name
-
initialize
Description copied from interface:BatchHandlerInitializes this batch handler with the given name and configuration properties.- Specified by:
initializein interfaceBatchHandler- Parameters:
name- the batch handler's nameproperties- the configuration properties
-
initialize
-
getTransientStore
Description copied from interface:BatchHandlerGets the transient store used by this batch handler.- Specified by:
getTransientStorein interfaceBatchHandler
-
getBatchParameters
Gets the batch parameters, ornullif the batch is not found. -
newBatch
Description copied from interface:BatchHandlerInitiates a new batch with an optional externally provided id.- Specified by:
newBatchin interfaceBatchHandler- Parameters:
batchId- the id to use for the batch, ornullto generate it- Returns:
- a newly created batch
-
generateBatchId
-