Package org.nuxeo.ecm.core.bulk
Class BulkAdminServiceImpl
java.lang.Object
org.nuxeo.ecm.core.bulk.BulkAdminServiceImpl
- All Implemented Interfaces:
BulkAdminService
- Since:
- 10.3
-
Field Summary
Modifier and TypeFieldDescriptionprotected Map<String,
BulkActionValidation> static final String
static final String
static final String
static final String
static final String
static final String
static final int
static final int
static final int
static final Duration
protected final Map<String,
BulkActionDescriptor> static final String
static final String
static final Duration
protected StreamProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
Returns a list of declared bulk actions.getActionValidation
(String action) Gets the validation class of an action.int
getBatchSize
(String action) getBatchTransactionTimeout
(String action) Returns the transaction timeout to use to process a batch.int
getBucketSize
(String action) getDefaultScroller
(String action) getInputStream
(String action) getQueryLimit
(String action) Returns the default query limit for the bulk action.boolean
isExclusive
(String actionId) Returns true if action is exclusive and only one of such command per repository can be scheduled or running.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 of this action need to be scrolled sequentially.boolean
isSequentialProcessing
(String actionId) Returns true if command processing for this action should be done sequentially.boolean
isSequentialScroll
(String actionId) Returns true if commands of this action need to be scrolled sequentially.
-
Field Details
-
SCROLLER_NAME
- See Also:
-
STATUS_NAME
- See Also:
-
BULK_SERVICE_PROCESSOR_NAME
- See Also:
-
BULK_SCROLL_SIZE_PROPERTY
- See Also:
-
BULK_SCROLL_KEEP_ALIVE_PROPERTY
- See Also:
-
BULK_SCROLL_PRODUCE_IMMEDIATE_PROPERTY
- See Also:
-
BULK_SCROLL_PRODUCE_IMMEDIATE_THRESHOLD_PROPERTY
- See Also:
-
DEFAULT_PRODUCE_IMMEDIATE_THRESHOLD_PROPERTY
public static final int DEFAULT_PRODUCE_IMMEDIATE_THRESHOLD_PROPERTY- See Also:
-
DEFAULT_SCROLL_SIZE
public static final int DEFAULT_SCROLL_SIZE- See Also:
-
DEFAULT_SCROLL_KEEP_ALIVE
public static final int DEFAULT_SCROLL_KEEP_ALIVE- See Also:
-
BULK_SCROLL_TRANSACTION_TIMEOUT_PROPERTY
- See Also:
-
DEFAULT_SCROLL_TRANSACTION_TIMEOUT
-
STOP_DURATION
-
descriptors
-
actions
-
streamProcessor
-
actionValidations
-
-
Constructor Details
-
BulkAdminServiceImpl
-
-
Method Details
-
getActions
Description copied from interface:BulkAdminService
Returns a list of declared bulk actions. By design a bulk action listen the stream of its own name.- Specified by:
getActions
in interfaceBulkAdminService
- Returns:
- a list of declared bulk actions
-
getBucketSize
- Specified by:
getBucketSize
in interfaceBulkAdminService
-
getBatchSize
- Specified by:
getBatchSize
in interfaceBulkAdminService
-
getBatchTransactionTimeout
Description copied from interface:BulkAdminService
Returns the transaction timeout to use to process a batch.- Specified by:
getBatchTransactionTimeout
in interfaceBulkAdminService
-
getQueryLimit
Description copied from interface:BulkAdminService
Returns the default query limit for the bulk action.- Specified by:
getQueryLimit
in interfaceBulkAdminService
-
getDefaultScroller
- Specified by:
getDefaultScroller
in interfaceBulkAdminService
-
getInputStream
- Specified by:
getInputStream
in interfaceBulkAdminService
-
isHttpEnabled
Description copied from interface:BulkAdminService
Returns true if the action id is to be accessible through http API.- Specified by:
isHttpEnabled
in interfaceBulkAdminService
-
isSequentialCommands
Description copied from interface:BulkAdminService
Returns true if commands of this action need to be scrolled sequentially.- Specified by:
isSequentialCommands
in interfaceBulkAdminService
-
isSequentialScroll
Description copied from interface:BulkAdminService
Returns true if commands of this action need to be scrolled sequentially.- Specified by:
isSequentialScroll
in interfaceBulkAdminService
-
isSequentialProcessing
Description copied from interface:BulkAdminService
Returns true if command processing for this action should be done sequentially.- Specified by:
isSequentialProcessing
in interfaceBulkAdminService
-
isExclusive
Description copied from interface:BulkAdminService
Returns true if action is exclusive and only one of such command per repository can be scheduled or running.- Specified by:
isExclusive
in interfaceBulkAdminService
-
getActionValidation
Description copied from interface:BulkAdminService
Gets the validation class of an action.- Specified by:
getActionValidation
in interfaceBulkAdminService
-
afterStart
public void afterStart() -
beforeStop
public void beforeStop()
-