public class BulkAdminServiceImpl extends Object implements BulkAdminService
Constructor and Description |
---|
BulkAdminServiceImpl(List<BulkActionDescriptor> descriptorsList) |
Modifier and Type | Method and Description |
---|---|
void |
afterStart() |
void |
beforeStop() |
List<String> |
getActions()
Returns a list of declared bulk actions.
|
BulkActionValidation |
getActionValidation(String action)
Gets the validation class of an action.
|
int |
getBatchSize(String action) |
int |
getBucketSize(String action) |
protected Topology |
getTopology(int scrollBatchSize,
int scrollKeepAlive,
boolean scrollProduceImmediate) |
protected void |
initProcessor() |
boolean |
isHttpEnabled(String actionId)
Returns true if the action id is to be accessible through http API.
|
boolean |
isSequentialCommands(String actionId)
Returns true if commands about this action need to be executed sequentially instead of being run concurrently.
|
public static final String SCROLLER_NAME
public static final String STATUS_NAME
public static final String BULK_SCROLLER_CONCURRENCY_PROPERTY
public static final String BULK_STATUS_CONCURRENCY_PROPERTY
public static final String BULK_STATUS_CONTINUE_ON_FAILURE_PROPERTY
public static final String BULK_STATUS_MAX_RETRIES_PROPERTY
public static final String BULK_STATUS_DELAY_PROPERTY
public static final String BULK_STATUS_MAX_DELAY_PROPERTY
public static final String BULK_SCROLL_SIZE_PROPERTY
public static final String BULK_SCROLL_KEEP_ALIVE_PROPERTY
public static final String BULK_SCROLL_PRODUCE_IMMEDIATE_PROPERTY
public static final String BULK_SCROLL_CONTINUE_ON_FAILURE_PROPERTY
public static final String DEFAULT_STATUS_CONCURRENCY
public static final String DEFAULT_STATUS_MAX_RETRIES
public static final String DEFAULT_STATUS_DELAY_MILLIS
public static final String DEFAULT_STATUS_MAX_DELAY_MILLIS
public static final String DEFAULT_SCROLLER_CONCURRENCY
public static final String DEFAULT_SCROLL_SIZE
public static final String DEFAULT_SCROLL_KEEP_ALIVE
public static final String DEFAULT_SCROLL_PRODUCE_IMMEDIATE
public static final Duration STOP_DURATION
protected final Map<String,BulkActionDescriptor> descriptors
protected StreamProcessor streamProcessor
protected Map<String,BulkActionValidation> actionValidations
public BulkAdminServiceImpl(List<BulkActionDescriptor> descriptorsList)
protected void initProcessor()
protected Topology getTopology(int scrollBatchSize, int scrollKeepAlive, boolean scrollProduceImmediate)
public List<String> getActions()
BulkAdminService
getActions
in interface BulkAdminService
public int getBucketSize(String action)
getBucketSize
in interface BulkAdminService
public int getBatchSize(String action)
getBatchSize
in interface BulkAdminService
public boolean isHttpEnabled(String actionId)
BulkAdminService
isHttpEnabled
in interface BulkAdminService
public boolean isSequentialCommands(String actionId)
BulkAdminService
isSequentialCommands
in interface BulkAdminService
public BulkActionValidation getActionValidation(String action)
BulkAdminService
getActionValidation
in interface BulkAdminService
public void afterStart()
public void beforeStop()
Copyright © 2019 Nuxeo. All rights reserved.