Interface WorkExecutionBackendContext
- All Known Implementing Classes:
IndexManagerBackendContext
public interface WorkExecutionBackendContext
An interface with knowledge of the backend internals,
able to create components related to work execution.
Note this interface exists mainly to more cleanly pass information from the backend to the various work execution components. If we just passed the backend to the various work execution components, we would have a cyclic dependency. If we passed all the components held by the backend to the various work execution components, we would end up with methods with many parameters.
-
Method Summary
Modifier and TypeMethodDescriptioncreateIndexer(ElasticsearchSerialWorkOrchestrator orchestrator, WorkExecutionIndexManagerContext indexManagerContext, BackendSessionContext sessionContext) createIndexingPlan(ElasticsearchSerialWorkOrchestrator orchestrator, WorkExecutionIndexManagerContext indexManagerContext, BackendSessionContext sessionContext, DocumentRefreshStrategy refreshStrategy) createWorkspace(WorkExecutionIndexManagerContext indexManagerContext, Set<String> tenantIds)
-
Method Details
-
createIndexingPlan
IndexIndexingPlan createIndexingPlan(ElasticsearchSerialWorkOrchestrator orchestrator, WorkExecutionIndexManagerContext indexManagerContext, BackendSessionContext sessionContext, DocumentRefreshStrategy refreshStrategy) -
createIndexer
IndexIndexer createIndexer(ElasticsearchSerialWorkOrchestrator orchestrator, WorkExecutionIndexManagerContext indexManagerContext, BackendSessionContext sessionContext) -
createWorkspace
IndexWorkspace createWorkspace(WorkExecutionIndexManagerContext indexManagerContext, Set<String> tenantIds)
-