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
|
Constructor and Description |
---|
ForkerUtils() |
Modifier and Type | Method and Description |
---|---|
static org.objectweb.proactive.extensions.processbuilder.OSUser |
checkConfigAndGetUser(Decrypter decrypter)
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 org.objectweb.proactive.extensions.processbuilder.PAOSProcessBuilderFactory |
getOSProcessBuilderFactory(String nativeScriptPath)
Get the singleton instance of PAOSProcessBuilderFactory
|
static void |
setSharedExecutablePermissions(File file) |
static void |
setSharedPermissions(File file) |
public static final String FORK_METHOD_KEY
public static org.objectweb.proactive.extensions.processbuilder.PAOSProcessBuilderFactory getOSProcessBuilderFactory(String nativeScriptPath)
public static org.objectweb.proactive.extensions.processbuilder.OSUser checkConfigAndGetUser(Decrypter decrypter) throws IllegalAccessException, KeyException
decrypter
- the decrypter that should be a self decryption one.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 static void setSharedExecutablePermissions(File file)
public static void setSharedPermissions(File file)