Interface CorePlusInitializer
- All Known Implementing Classes:
BinaryImportRequestInitializer,CorePlusQueryInitializer,CorePlusRunAndDoneInitializer,CorePlusRunAndDoneSimpleScriptInitializer,CsvImportRequestInitializer,JdbcImportRequestInitializer,MergeRequestInitializer,ThrowingInitializer,ValidateRequestInitializer,WorkspaceSnapshotRequestInitializer
public interface CorePlusInitializer
An interface defining methods required for initializing a CorePlus PQ
-
Method Summary
Modifier and TypeMethodDescriptionExecuted before the PQ is initialized, for example to send pq-specific data to the workerGets the requested script-language for this PQ instancedefault booleanTrue if this PQ instance should enable the notebook class loader.Executed when the PQ is ready to execute commands
-
Method Details
-
doBeforeInitialize
CompletableFuture<Void> doBeforeInitialize(CommunityPersistentQueryHandle.CommunityWorkerHandle handle) Executed before the PQ is initialized, for example to send pq-specific data to the worker- Parameters:
handle- a handle to the worker
-
initialize
Executed when the PQ is ready to execute commands- Parameters:
handle- a handle to the worker- Returns:
- the PQ state
-
getLanguage
Gets the requested script-language for this PQ instance- Parameters:
config- the PQ configuration, as known by the controller- Returns:
- the requested script-language
-
hasNotebookClassLoader
default boolean hasNotebookClassLoader()True if this PQ instance should enable the notebook class loader.- Returns:
- true if this PQ instance should enable the notebook class loader.
-