public class WorkerApplicationEnvironmentUtil extends Object
| Constructor and Description | 
|---|
WorkerApplicationEnvironmentUtil()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
setApplicationEnvironment(String workerId,
                         org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb,
                         org.thales.punch.libraries.shiva.api.Application application,
                         String confDir)
Set the complete environment of a shiva worker application subprocess 
 | 
static void | 
setApplicationMetadataEnvironment(org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb,
                                 org.thales.punch.libraries.shiva.api.Application application)
Set the environment for the metadata of a worker application subprocess 
 | 
static void | 
setApplicationSecretEnvironment(org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb)
Locate the secrets dir from the Shiva worker's environment and set it inside the application's subprocess
 environment. 
 | 
static void | 
setEnvVariable(org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb,
              String name,
              String value)
Set the environment variable for a punch  shiva worker application application subprocess 
 | 
public static void setEnvVariable(org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb,
                                  String name,
                                  String value)
pb - The punch application subprocess to buildname - the env variable name to setvalue - the env variable value to setpublic static void setApplicationEnvironment(String workerId, org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb, org.thales.punch.libraries.shiva.api.Application application, String confDir)
workerId - the worker id launching the application subprocesspb - the subprocess to buildapplication - the application launched by the workerconfDir - the punchplatform configuration dir on the shiva worker machinepublic static void setApplicationSecretEnvironment(org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb)
pb - the application's subprocesspublic static void setApplicationMetadataEnvironment(org.thales.punch.libraries.forkexec.api.PunchProcessBuilder pb,
                                                     org.thales.punch.libraries.shiva.api.Application application)
pb - the subprocess to buildapplication - the application launched by the workerCopyright © 2022. All rights reserved.