public final class ForkerUtils extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ForkerUtils.ForkMethod |
Modifier and Type | Field and Description |
---|---|
static String |
FORK_METHOD_KEY
System property Key of the fork method
|
static String |
RUNAS_DOMAIN_GENERIC_INFO |
static String |
RUNAS_METHOD_GENERIC_INFO |
static String |
RUNAS_PWD_CRED_GENERIC_INFO |
static String |
RUNAS_PWD_GENERIC_INFO |
static String |
RUNAS_SSH_KEY_CRED_GENERIC_INFO |
static String |
RUNAS_USER_GENERIC_INFO |
Modifier and Type | Method and Description |
---|---|
org.objectweb.proactive.extensions.processbuilder.OSUser |
checkConfigAndGetUser(TaskContext taskContext)
If the process must be run under a specific user,
check the configuration of '"pas.launcher.forkas.method"' property and proceed as follow:
if "pas.launcher.forkas.method"=none : throws IllegalAccessException
if "pas.launcher.forkas.method"=pwd : return the user using its login and password
if "pas.launcher.forkas.method"=key : return the user using its ssh key
|
static ForkerUtils |
getInstance() |
org.objectweb.proactive.extensions.processbuilder.PAOSProcessBuilderFactory |
getOSProcessBuilderFactory(String nativeScriptPath)
Get the singleton instance of PAOSProcessBuilderFactory
|
void |
setSharedExecutablePermissions(File file) |
void |
setSharedPermissions(File file) |
public static final String FORK_METHOD_KEY
public static final String RUNAS_METHOD_GENERIC_INFO
public static final String RUNAS_USER_GENERIC_INFO
public static final String RUNAS_DOMAIN_GENERIC_INFO
public static final String RUNAS_PWD_GENERIC_INFO
public static final String RUNAS_PWD_CRED_GENERIC_INFO
public static final String RUNAS_SSH_KEY_CRED_GENERIC_INFO
public static ForkerUtils getInstance()
public org.objectweb.proactive.extensions.processbuilder.PAOSProcessBuilderFactory getOSProcessBuilderFactory(String nativeScriptPath)
public org.objectweb.proactive.extensions.processbuilder.OSUser checkConfigAndGetUser(TaskContext taskContext) throws IllegalAccessException, KeyException
taskContext
- the task context.IllegalAccessException
- if the node configuration method is not compatible with incoming credentialsKeyException
- decryption failure, malformed dataIllegalArgumentException
- if decrypter is nullIllegalAccessException
- if node fork method is not setpublic void setSharedExecutablePermissions(File file)
public void setSharedPermissions(File file)