Interface LocalProcessWorkerKind.CommandHelper
- Enclosing interface:
- LocalProcessWorkerKind
public static interface LocalProcessWorkerKind.CommandHelper
-
Method Summary
Modifier and TypeMethodDescriptiongetBaseCommand
(String workerCreationJson, String processUserName, List<String> runAsParams, String processInfoId) Create the beginning of the new worker's command.Return a Consumer that handles JVM arguments.void
processEnvironmentVariables
(Map<String, String> environmentVariables, RemoteProcessingRequest request) Update or mutate environment variables before executing the local process.
-
Method Details
-
getBaseCommand
List<String> getBaseCommand(String workerCreationJson, String processUserName, List<String> runAsParams, String processInfoId) 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 userprocessInfoId
- worker process info id- Returns:
- a new list with the beginning of the command to execute
-
jvmArgumentHandler
Return a Consumer that handles JVM arguments. -
processEnvironmentVariables
void processEnvironmentVariables(Map<String, String> environmentVariables, RemoteProcessingRequest request) Update or mutate environment variables before executing the local process.
-