Class DndWorkerKind
java.lang.Object
com.illumon.iris.db.tables.remotequery.DndWorkerKind
- All Implemented Interfaces:
LocalProcessWorkerKind
,WorkerKind
public class DndWorkerKind extends Object implements WorkerKind, LocalProcessWorkerKind
A worker kind for Community in Enterprise workers (DnD).
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.iris.db.tables.remotequery.process.LocalProcessWorkerKind
LocalProcessWorkerKind.CommandHelper
-
Field Summary
Fields Modifier and Type Field Description static boolean
ENFORCE_NO_SESSION_TIMEOUT_DEFAULT
static String
ENFORCE_NO_SESSION_TIMEOUT_FIELD
static String
SCRIPT_LANGUAGE_JSON_FIELD
This selects the language of the script session you are creating as part of the worker.static String
STARTUP_SCRIPT_JSON_FIELD
Optional string value that if available, will execute as a script on worker startup. -
Constructor Summary
Constructors Constructor Description DndWorkerKind(String name)
-
Method Summary
Modifier and Type Method Description String
getDescription()
Return an optional description of this WorkerKind for use in the UI.String
getTitle()
Return a string that should be used for drop-down menus in the UI.String
getWorkerControlTypeForRequest(RemoteProcessingRequest request)
The worker control type required for a particular request.List<String>
implementedProtocols()
What protocols does this kind of worker implement?boolean
includeArtifactArguments()
Some customers have custom artifacts per user, which are passed to the Enterprise start script with the -u, -t, and -r options.boolean
includeExtraClassPaths()
True if temporary dispatcher produced class paths should be included on the command line with -C.boolean
includeNameArgument()
True if -A "name" should be included on the command line.boolean
needsDheJvmFlags()
Does this produce a JVM that requires DHE specific JVM argumentsboolean
needsJvmFlags()
Does this produce a JVM that requires JVM like argumentsLocalProcessWorkerKind.CommandHelper
newCommandHelper()
Create a helper for generating a new command line.Collection<String>
workerControlTypes()
What kind of worker controls could be required for starting these kind of workers?
-
Field Details
-
SCRIPT_LANGUAGE_JSON_FIELD
This selects the language of the script session you are creating as part of the worker. The valid values are "groovy" and "python". There is no default. -
STARTUP_SCRIPT_JSON_FIELD
Optional string value that if available, will execute as a script on worker startup. -
ENFORCE_NO_SESSION_TIMEOUT_FIELD
-
ENFORCE_NO_SESSION_TIMEOUT_DEFAULT
public static boolean ENFORCE_NO_SESSION_TIMEOUT_DEFAULT
-
-
Constructor Details
-
Method Details
-
workerControlTypes
Description copied from interface:WorkerKind
What kind of worker controls could be required for starting these kind of workers?- Specified by:
workerControlTypes
in interfaceWorkerKind
- Returns:
- the desired WorkerControlType
-
getWorkerControlTypeForRequest
Description copied from interface:WorkerKind
The worker control type required for a particular request.- Specified by:
getWorkerControlTypeForRequest
in interfaceWorkerKind
- Parameters:
request
- the request that a worker is being created for- Returns:
- the type of worker control for this particular request
-
implementedProtocols
Description copied from interface:WorkerKind
What protocols does this kind of worker implement?- Specified by:
implementedProtocols
in interfaceWorkerKind
- Returns:
- a list of protocol names that this worker implements
-
newCommandHelper
Description copied from interface:LocalProcessWorkerKind
Create a helper for generating a new command line.- Specified by:
newCommandHelper
in interfaceLocalProcessWorkerKind
- Returns:
- a new command line helper.
-
needsJvmFlags
public boolean needsJvmFlags()Description copied from interface:LocalProcessWorkerKind
Does this produce a JVM that requires JVM like arguments- Specified by:
needsJvmFlags
in interfaceLocalProcessWorkerKind
- Returns:
- true if this kind of worker needs JVM arguments
-
needsDheJvmFlags
public boolean needsDheJvmFlags()Description copied from interface:LocalProcessWorkerKind
Does this produce a JVM that requires DHE specific JVM arguments- Specified by:
needsDheJvmFlags
in interfaceLocalProcessWorkerKind
- Returns:
- true if this kind of worker needs DHE specific JVM arguments
-
includeNameArgument
public boolean includeNameArgument()Description copied from interface:LocalProcessWorkerKind
True if -A "name" should be included on the command line.- Specified by:
includeNameArgument
in interfaceLocalProcessWorkerKind
- Returns:
- true if the name argument is included
-
includeExtraClassPaths
public boolean includeExtraClassPaths()Description copied from interface:LocalProcessWorkerKind
True if temporary dispatcher produced class paths should be included on the command line with -C.- Specified by:
includeExtraClassPaths
in interfaceLocalProcessWorkerKind
- Returns:
- true if the dispatcher's temporary classpaths should be included
-
includeArtifactArguments
public boolean includeArtifactArguments()Description copied from interface:LocalProcessWorkerKind
Some customers have custom artifacts per user, which are passed to the Enterprise start script with the -u, -t, and -r options. True if those options be included in the command.- Specified by:
includeArtifactArguments
in interfaceLocalProcessWorkerKind
- Returns:
- true if -u, -t, and -r options should be included
-
getDescription
Description copied from interface:WorkerKind
Return an optional description of this WorkerKind for use in the UI.- Specified by:
getDescription
in interfaceWorkerKind
- Returns:
- a description, or null
-
getTitle
Description copied from interface:WorkerKind
Return a string that should be used for drop-down menus in the UI.- Specified by:
getTitle
in interfaceWorkerKind
- Returns:
- the title of the worker
-