Package com._1c.g5.v8.internal.derived
Class WorkerManager
java.lang.Object
com._1c.g5.v8.internal.derived.WorkerManager
Component that provides DD workers for the task that being dispatched by the DD scheduler.
In addition to the worker management, this component also tracks DD computations errors and
allows computation retries by postponed confirmation of the failure
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionWorkerManager(IComputationTaskManager taskManager, IDerivedDataContextManager contextManager, IContextTransactionManager contextTransactionManager, IAsyncProcessingPipeline asyncProcessingPipeline, Collection<IDerivedDataComputer> computers, Set<String> filteredSegments) Construct a new instance, performs basic initialization. -
Method Summary
Modifier and TypeMethodDescriptionCreates the worker logic for the given task objectvoid
-
Constructor Details
-
WorkerManager
public WorkerManager(IComputationTaskManager taskManager, IDerivedDataContextManager contextManager, IContextTransactionManager contextTransactionManager, IAsyncProcessingPipeline asyncProcessingPipeline, Collection<IDerivedDataComputer> computers, Set<String> filteredSegments) Construct a new instance, performs basic initialization.- Parameters:
taskManager- the task manager to receive tasks from, cannot benullcontextManager- the DD context manager to get contexts from, cannot benullcontextTransactionManager- the DD context transaction manager to manipulate context sessions, cannot benullasyncProcessingPipeline- the DD pipeline, cannot benullcomputers- the computers to delegate computations to, cannot benullfilteredSegments- The set of DD segment ids that should be ommitted during the computation. Cannot benull. Can be emptybmModel- the instance of the BM model, cannot benull
-
-
Method Details
-
start
-
createWorker
Creates the worker logic for the given task object- Parameters:
task- The task to create worker logic for- Returns:
- The
Callablewith the processing logic. Cannot benull
-