Package com._1c.g5.v8.internal.derived
Class DerivedDataBmProvider
java.lang.Object
com._1c.g5.v8.internal.derived.DerivedDataBmProvider
- All Implemented Interfaces:
IBmProvider
,IDerivedDataBmProvider
A component that is responsible for bootstrapping the derived data
computation mechanism and providing access to those components which
are the parts of the public API.
- See Also:
-
Field Summary
FieldsFields inherited from interface com._1c.g5.v8.derived.IDerivedDataBmProvider
PROVIDER_ID
-
Constructor Summary
ConstructorsConstructorDescriptionDerivedDataBmProvider
(String projectId, Collection<IDerivedDataConfigurationContributor> contributors, IUserActivityBlockingService userActivityBlockingService, IDerivedDataServiceLockController lockController, Supplier<Boolean> synchronizationActiveStateSupplier, DerivedDataTaskScheduler scheduler, Set<String> filteredSegments, Supplier<IAsyncComputationExecutionContext> executionContextSupplier) Constructs a new instance of configuration, instantiates and wires components. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close
(boolean delete) Closes the provider.Gets the associated context manager.Gets the associated derived data manager,getId()
Gets the unique identifier of the provider being used to address it within the collection of BM providers being associated with particular model.void
processUnfinishedCommits
(List<IBmUnfinishedCommitInfo> commitInfo) Processes unfinished commits in case of EDT failure restoration.void
Starts the provider.void
waitProcessing
(long timeout) Waits till all the processing in progress is finished.
-
Field Details
-
providerId
-
-
Constructor Details
-
DerivedDataBmProvider
public DerivedDataBmProvider(String projectId, Collection<IDerivedDataConfigurationContributor> contributors, IUserActivityBlockingService userActivityBlockingService, IDerivedDataServiceLockController lockController, Supplier<Boolean> synchronizationActiveStateSupplier, DerivedDataTaskScheduler scheduler, Set<String> filteredSegments, Supplier<IAsyncComputationExecutionContext> executionContextSupplier) Constructs a new instance of configuration, instantiates and wires components.- Parameters:
projectId
- The unique identifier of the owning project. May not benull
contributors
- the configuration contributorsuserActivityBlockingService
- the service that allows to manipulate blocking operations, cannot benull
.lockController
- external lock controller provided by integrating infrastructure to control the DD locking, cannot benull
.synchronizationActiveStateSupplier
- The supplier which provides the status of the synchronization. Cannot benull
scheduler
- task scheduling facility, cannot benull
.filteredSegments
- filters defined segments out, cannot benull
, can be emptyexecutionContextSupplier
- Supplies of a client-customized execution context. Cannot benull
-
-
Method Details
-
close
public void close(boolean delete) Description copied from interface:IDerivedDataBmProvider
Closes the provider.- Specified by:
close
in interfaceIDerivedDataBmProvider
- Parameters:
delete
- The flag showing whether all the stored data must be deleted.
-
getContextManager
Gets the associated context manager.- Returns:
- Associated instance of the context manager.
-
getDerivedDataManager
Description copied from interface:IDerivedDataBmProvider
Gets the associated derived data manager,- Specified by:
getDerivedDataManager
in interfaceIDerivedDataBmProvider
- Returns:
- The derived data manager for this instance of BM model.
-
start
Description copied from interface:IDerivedDataBmProvider
Starts the provider.- Specified by:
start
in interfaceIDerivedDataBmProvider
- Parameters:
bmModel
- The target BM model. May not benull
cleanStart
- The flag showing whether all the previously stored data must be cleaned.
-
processUnfinishedCommits
Description copied from interface:IDerivedDataBmProvider
Processes unfinished commits in case of EDT failure restoration.- Specified by:
processUnfinishedCommits
in interfaceIDerivedDataBmProvider
- Parameters:
commitInfo
- The list of commit data records that need to be processed. Cannot benull
-
getId
Description copied from interface:IBmProvider
Gets the unique identifier of the provider being used to address it within the collection of BM providers being associated with particular model.- Specified by:
getId
in interfaceIBmProvider
- Returns:
- ID of this provider.
-
waitProcessing
public void waitProcessing(long timeout) Description copied from interface:IBmProvider
Waits till all the processing in progress is finished.- Specified by:
waitProcessing
in interfaceIBmProvider
- Parameters:
timeout
- The maximum time to wait in milliseconds.
-