Interface LocalProcessWorkerKind.CommandHelper
- Enclosing interface:
- LocalProcessWorkerKind
public static interface LocalProcessWorkerKind.CommandHelper
-
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.Consumer<String>
jvmArgumentHandler()
Return a Consumer that handles JVM arguments.void
processEnvironmentVariables(Map<String,String> environmentVariables)
Update or mutate environment variables before executing the local process.
-
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
-
jvmArgumentHandler
Return a Consumer that handles JVM arguments. -
processEnvironmentVariables
Update or mutate environment variables before executing the local process.
-