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. 
 | 
TransientStore | 
getTransientStore()
Gets the transient store used by this batch handler. 
 | 
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, waitcompleteUpload, getBatchpublic static final String PROP_TRANSIENT_STORE_NAME
public static final String BATCH_HANDLER_NAME
protected String transientStoreName
public AbstractBatchHandler()
public String getName()
BatchHandlergetName in interface BatchHandlerpublic void initialize(String name, Map<String,String> properties)
BatchHandlerinitialize in interface BatchHandlername - the batch handler's nameproperties - the configuration propertiesprotected void initialize(Map<String,String> properties)
public TransientStore getTransientStore()
BatchHandlergetTransientStore in interface BatchHandlerprotected Map<String,Serializable> getBatchParameters(String batchId)
null if the batch is not found.public Batch newBatch(String batchId)
BatchHandlernewBatch in interface BatchHandlerbatchId - the id to use for the batch, or null to generate itprotected String generateBatchId()
Copyright © 2019 Nuxeo. All rights reserved.