Interface LocalProcessWorkerKind
- All Known Implementing Classes:
EnterpriseWorkerKind,GenericCommandWorkerKind
public interface LocalProcessWorkerKind
WorkerKind for local processes that controls how the LocalProcessWorkerImpl will construct its command line arguments.
-
Method Summary
Modifier and Type Method Description List<String>getBaseCommand(String workerCreationJson, String processUserName, List<String> runAsParams)Create the beginning of the new worker's command.booleanincludeArtifactArguments()Some customers have custom artifacts per user, which are passed to the Enterprise start script with the -u, -t, and -r options.booleanincludeExtraClassPaths()True if temporary dispatcher produced class paths should be included on the command line with -C.booleanincludeNameArgument()True if -A "name" should be included on the command line.booleanneedsDheJvmFlags()Does this produce a JVM that requires DHE specific JVM argumentsbooleanneedsJavaOptsEnv()Does this produce a JVM that requires JVM arguments via a JAVA_OPTS environment variable.booleanneedsJvmFlags()Does this produce a JVM that requires JVM like arguments
-
Method Details
-
getBaseCommand
List<String> getBaseCommand(String workerCreationJson, String processUserName, List<String> runAsParams)Create the beginning of the new worker's command.- Parameters:
workerCreationJson- the JSON passed by the remote processing requestprocessUserName- the user name that the process will execute asrunAsParams- the parameters for running as a distinct system user- Returns:
- a new list with the beginning of the command to execute
-
needsJvmFlags
boolean needsJvmFlags()Does this produce a JVM that requires JVM like arguments- Returns:
- true if this kind of worker needs JVM arguments
-
needsDheJvmFlags
boolean needsDheJvmFlags()Does this produce a JVM that requires DHE specific JVM arguments- Returns:
- true if this kind of worker needs DHE specific JVM arguments
-
needsJavaOptsEnv
boolean needsJavaOptsEnv()Does this produce a JVM that requires JVM arguments via a JAVA_OPTS environment variable.- Returns:
- true if this kind of worker needs a JAVA_OPTS environment variable.
-
includeNameArgument
boolean includeNameArgument()True if -A "name" should be included on the command line.- Returns:
- true if the name argument is included
-
includeExtraClassPaths
boolean includeExtraClassPaths()True if temporary dispatcher produced class paths should be included on the command line with -C.- Returns:
- true if the dispatcher's temporary classpaths should be included
-
includeArtifactArguments
boolean includeArtifactArguments()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.- Returns:
- true if -u, -t, and -r options should be included
-