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 TypeMethodDescriptionvoidclose(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.voidprocessUnfinishedCommits(List<IBmUnfinishedCommitInfo> commitInfo) Processes unfinished commits in case of EDT failure restoration.voidStarts the provider.voidwaitProcessing(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 benullcontributors- 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 benullscheduler- 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:IDerivedDataBmProviderCloses the provider.- Specified by:
closein 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:IDerivedDataBmProviderGets the associated derived data manager,- Specified by:
getDerivedDataManagerin interfaceIDerivedDataBmProvider- Returns:
- The derived data manager for this instance of BM model.
-
start
Description copied from interface:IDerivedDataBmProviderStarts the provider.- Specified by:
startin interfaceIDerivedDataBmProvider- Parameters:
bmModel- The target BM model. May not benullcleanStart- The flag showing whether all the previously stored data must be cleaned.
-
processUnfinishedCommits
Description copied from interface:IDerivedDataBmProviderProcesses unfinished commits in case of EDT failure restoration.- Specified by:
processUnfinishedCommitsin interfaceIDerivedDataBmProvider- Parameters:
commitInfo- The list of commit data records that need to be processed. Cannot benull
-
getId
Description copied from interface:IBmProviderGets the unique identifier of the provider being used to address it within the collection of BM providers being associated with particular model.- Specified by:
getIdin interfaceIBmProvider- Returns:
- ID of this provider.
-
waitProcessing
public void waitProcessing(long timeout) Description copied from interface:IBmProviderWaits till all the processing in progress is finished.- Specified by:
waitProcessingin interfaceIBmProvider- Parameters:
timeout- The maximum time to wait in milliseconds.
-