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
FieldsModifier and TypeFieldDescriptionprotected Map<String, BulkActionValidation> static final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final intstatic final intstatic final intstatic final Durationprotected final Map<String, BulkActionDescriptor> static final Stringstatic final Stringstatic final Durationprotected StreamProcessor -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidReturns a list of declared bulk actions.getActionValidation(String action) Gets the validation class of an action.intgetBatchSize(String action) getBatchTransactionTimeout(String action) Returns the transaction timeout to use to process a batch.intgetBucketSize(String action) getDefaultScroller(String action) getInputStream(String action) getQueryLimit(String action) Returns the default query limit for the bulk action.booleanisExclusive(String actionId) Returns true if action is exclusive and only one of such command per repository can be scheduled or running.booleanisHttpEnabled(String actionId) Returns true if the action id is to be accessible through http API.booleanisSequentialCommands(String actionId) Returns true if commands of this action need to be scrolled sequentially.booleanisSequentialProcessing(String actionId) Returns true if command processing for this action should be done sequentially.booleanisSequentialScroll(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:BulkAdminServiceReturns a list of declared bulk actions. By design a bulk action listen the stream of its own name.- Specified by:
getActionsin interfaceBulkAdminService- Returns:
- a list of declared bulk actions
-
getBucketSize
- Specified by:
getBucketSizein interfaceBulkAdminService
-
getBatchSize
- Specified by:
getBatchSizein interfaceBulkAdminService
-
getBatchTransactionTimeout
Description copied from interface:BulkAdminServiceReturns the transaction timeout to use to process a batch.- Specified by:
getBatchTransactionTimeoutin interfaceBulkAdminService
-
getQueryLimit
Description copied from interface:BulkAdminServiceReturns the default query limit for the bulk action.- Specified by:
getQueryLimitin interfaceBulkAdminService
-
getDefaultScroller
- Specified by:
getDefaultScrollerin interfaceBulkAdminService
-
getInputStream
- Specified by:
getInputStreamin interfaceBulkAdminService
-
isHttpEnabled
Description copied from interface:BulkAdminServiceReturns true if the action id is to be accessible through http API.- Specified by:
isHttpEnabledin interfaceBulkAdminService
-
isSequentialCommands
Description copied from interface:BulkAdminServiceReturns true if commands of this action need to be scrolled sequentially.- Specified by:
isSequentialCommandsin interfaceBulkAdminService
-
isSequentialScroll
Description copied from interface:BulkAdminServiceReturns true if commands of this action need to be scrolled sequentially.- Specified by:
isSequentialScrollin interfaceBulkAdminService
-
isSequentialProcessing
Description copied from interface:BulkAdminServiceReturns true if command processing for this action should be done sequentially.- Specified by:
isSequentialProcessingin interfaceBulkAdminService
-
isExclusive
Description copied from interface:BulkAdminServiceReturns true if action is exclusive and only one of such command per repository can be scheduled or running.- Specified by:
isExclusivein interfaceBulkAdminService
-
getActionValidation
Description copied from interface:BulkAdminServiceGets the validation class of an action.- Specified by:
getActionValidationin interfaceBulkAdminService
-
afterStart
public void afterStart() -
beforeStop
public void beforeStop()
-