public abstract class AbstractBatchHandler extends Object implements BatchHandler
Modifier and Type | Field and Description |
---|---|
static String |
BATCH_HANDLER_NAME
Transient store key for the batch handler name.
|
protected String |
name |
static String |
PROP_TRANSIENT_STORE_NAME |
protected String |
transientStoreName |
Constructor and Description |
---|
AbstractBatchHandler() |
Modifier and Type | Method and Description |
---|---|
protected String |
generateBatchId() |
protected Map<String,Serializable> |
getBatchParameters(String batchId)
Gets the batch parameters, or
null if the batch is not found. |
String |
getName()
Gets the batch handler's name.
|
protected TransientStore |
getTransientStore() |
protected void |
initialize(Map<String,String> properties) |
void |
initialize(String name,
Map<String,String> properties)
Initializes this batch handler with the given name and configuration properties.
|
Batch |
newBatch(String batchId)
Initiates a new batch with an optional externally provided id.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
completeUpload, getBatch
public static final String PROP_TRANSIENT_STORE_NAME
public static final String BATCH_HANDLER_NAME
protected String transientStoreName
public AbstractBatchHandler()
public String getName()
BatchHandler
getName
in interface BatchHandler
public void initialize(String name, Map<String,String> properties)
BatchHandler
initialize
in interface BatchHandler
name
- the batch handler's nameproperties
- the configuration propertiesprotected void initialize(Map<String,String> properties)
protected TransientStore getTransientStore()
protected Map<String,Serializable> getBatchParameters(String batchId)
null
if the batch is not found.public Batch newBatch(String batchId)
BatchHandler
newBatch
in interface BatchHandler
batchId
- the id to use for the batch, or null
to generate itprotected String generateBatchId()
Copyright © 2018 Nuxeo. All rights reserved.