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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected Map<String,
Serializable> getBatchParameters
(String batchId) Gets the batch parameters, ornull
if the batch is not found.getName()
Gets the batch handler's name.Gets the transient store used by this batch handler.void
initialize
(String name, Map<String, String> properties) Initializes this batch handler with the given name and configuration properties.protected void
initialize
(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, wait
Methods 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:BatchHandler
Gets the batch handler's name.- Specified by:
getName
in interfaceBatchHandler
- Returns:
- the batch handler's name
-
initialize
Description copied from interface:BatchHandler
Initializes this batch handler with the given name and configuration properties.- Specified by:
initialize
in interfaceBatchHandler
- Parameters:
name
- the batch handler's nameproperties
- the configuration properties
-
initialize
-
getTransientStore
Description copied from interface:BatchHandler
Gets the transient store used by this batch handler.- Specified by:
getTransientStore
in interfaceBatchHandler
-
getBatchParameters
Gets the batch parameters, ornull
if the batch is not found. -
newBatch
Description copied from interface:BatchHandler
Initiates a new batch with an optional externally provided id.- Specified by:
newBatch
in interfaceBatchHandler
- Parameters:
batchId
- the id to use for the batch, ornull
to generate it- Returns:
- a newly created batch
-
generateBatchId
-