Class GenericCommandWorkerKind

java.lang.Object
com.illumon.iris.db.tables.remotequery.GenericCommandWorkerKind
All Implemented Interfaces:
LocalProcessWorkerKind, WorkerKind

public class GenericCommandWorkerKind
extends Object
implements WorkerKind, LocalProcessWorkerKind
A worker that executes a supplied command line.

This class is configured through properties that control the basic command line and provide options to the WorkerCommandBuilder through overriding methods to LocalProcessWorkerKind. To add a WorkerKind to the dispatcher, specify a property of the form WorkerKind.class.<i>name</i>=com.illumon.iris.db.tables.remotequery.GenericCommandWorkerKind. The name is used by the dispatcher to select this WorkerKind; and to determine the prefix for other properties. WorkerKind.<i>name</i>.command is required; and is the command (and arguments) that form the base of executed command. Arguments are separated by spaces and may be quoted, it is not possible to pass an empty command line argument (i.e. "").

In addition to the command property; you may specify:

WorkerKind.<i>name</i>.jvmIs this worker a JVM? If so, the command builder adds appropriate JVM arguments like heap size and property definitions
WorkerKind.<i>name</i>.includeNameInclude a -A argument for the name of the process.
WorkerKind.<i>name</i>.includeExtraClassPathsInclude temporary class paths generated by the dispatcher.
WorkerKind.<i>name</i>.includeArtifactArgumetnsInclude -u, -t, and -r arguments for the artifact download script.