Interface WorkerKind
- All Known Implementing Classes:
DndWorkerKind
,EnterpriseWorkerKind
,GenericCommandWorkerKind
public interface WorkerKind
The WorkerKind class is used to map instructions from the RemoteProcessingRequest into the appropriate worker
control invocations to create the requested worker.
The default worker kind is a Deephaven Enterprise worker, the same version as the dispatcher.
The alternative worker kind that we are most interested in is a Deephaven community worker.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptioncreatePersistentQueryHandle
(com.fishlib.io.logger.Logger log, Object queryHandleContext) Create a PersistentQueryHandle for use by the Controller.int
Return display order for dropdown list in web UI.Return an optional description of this WorkerKind for use in the UI.getTitle()
Return a string that should be used for drop-down menus in the UI.The worker control type required for a particular request.What protocols does this kind of worker implement?boolean
Check if this kind is a Community worker kindWhat kind of worker controls could be required for starting these kind of workers?
-
Field Details
-
DEFAULT
-
-
Method Details
-
workerControlTypes
Collection<String> workerControlTypes()What kind of worker controls could be required for starting these kind of workers?- Returns:
- the desired WorkerControlType
-
getWorkerControlTypeForRequest
The worker control type required for a particular request.- Parameters:
request
- the request that a worker is being created for- Returns:
- the type of worker control for this particular request
-
getDescription
Return an optional description of this WorkerKind for use in the UI.- Returns:
- a description, or null
-
getTitle
Return a string that should be used for drop-down menus in the UI.- Returns:
- the title of the worker
-
implementedProtocols
What protocols does this kind of worker implement?- Returns:
- a list of protocol names that this worker implements
-
createPersistentQueryHandle
Create a PersistentQueryHandle for use by the Controller. This is necessarily reflexive so implementations must guarantee that the returned object implements the PersistentQueryHandle interface.- Parameters:
log
- a Log object to use for loggingqueryHandleContext
- an arbitrary context object to initialize the handle with.- Returns:
- a new persistent query handle
-
isCommunity
boolean isCommunity()Check if this kind is a Community worker kind- Returns:
- true if the worker kind is Community
-
displayOrder
int displayOrder()Return display order for dropdown list in web UI. Lower values are displayed first. Enterprise workers use displayOrder 100. Community workers use display order 200 by default, which for Vermilion and later installations is overridden in iris-environment.prop to 50.
-