Interface LocalProcessWorkerKind.CommandHelper

Enclosing interface:
LocalProcessWorkerKind

public static interface LocalProcessWorkerKind.CommandHelper
  • 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 request
      processUserName - the user name that the process will execute as
      runAsParams - the parameters for running as a distinct system user
      processInfoId - worker process info id
      Returns:
      a new list with the beginning of the command to execute
    • jvmArgumentHandler

      Consumer<String> 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.