| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | |
| public static boolean | |
| public static void | |
| public static void | |
| public static int | Returns: the total size of the argument vector. Returns -1 if not supported on platform or called from a shared library image.If the running image is an executable the total size of the argument vector of the running process gets returned. |
| public static String | getArgumentVectorProgramName()
If the running image is an executable the program name that is stored in the argument vector of the running process gets returned. |
| public static String | |
| public static String | getObjectFile(String symbol)
Return the path of the object file defining the symbol specified as a |
| public static String | getObjectFile(CEntryPointLiteral<?> symbol)
Return the path of the object file defining the symbol specified as a
|
| public static long | |
| public static long | |
| public static boolean | Returns: true if the process represented by the given Process ID object has not yet terminated.Tests whether the process represented by the given Process ID is alive. |
| public static boolean | Returns: true, if given name had to be truncated to fit in the argument vectorIf the running image is an executable the program name that is stored in the argument vector of the running process gets replaced with the given name. |
| public static String | |
| public static int |
| ProcessProperties | back to summary |
|---|---|
| private ProcessProperties() | |
| destroy | back to summary |
|---|---|
| public static boolean destroy(long processID) Kills the process. Whether the process represented by the given Process ID is normally terminated or not is implementation dependent.
| |
| destroyForcibly | back to summary |
|---|---|
| public static boolean destroyForcibly(long processID) Kills the process forcibly. The process represented by the given Process ID is forcibly terminated. Forcible process destruction is defined as the immediate termination of a process, whereas normal termination allows the process to shut down cleanly.
| |
| exec | back to summary |
|---|---|
| public static void exec(Path executable, String... args) Replaces the current process image with the process image specified by the given path invoked with the given args. This method does not return if the call is successful.
| |
| exec | back to summary |
|---|---|
| public static void exec(Path executable, String[] args, Map<String, String> env) Replaces the current process image with the process image specified by the given path invoked with the given arguments and environment. If the process should inherit members of the calling environment, those members need to be added by the caller. This method does not return if the call is successful.
| |
| getArgumentVectorBlockSize | back to summary |
|---|---|
| public static int getArgumentVectorBlockSize() If the running image is an executable the total size of the argument vector of the running process gets returned.
| |
| getArgumentVectorProgramName | back to summary |
|---|---|
| public static String getArgumentVectorProgramName() If the running image is an executable the program name that is stored in the argument vector of the running process gets returned.
| |
| getExecutableName | back to summary |
|---|---|
| public static String getExecutableName() Return the canonicalized absolute pathname of the executable.
| |
| getObjectFile | back to summary |
|---|---|
| public static String getObjectFile(String symbol) Return the path of the object file defining the symbol specified as a
| |
| getObjectFile | back to summary |
|---|---|
| public static String getObjectFile(CEntryPointLiteral<?> symbol) Return the path of the object file defining the symbol specified as a
| |
| getProcessID | back to summary |
|---|---|
| public static long getProcessID() Get the Process ID of the process executing the image.
| |
| getProcessID | back to summary |
|---|---|
| public static long getProcessID(Process process) Get the Process ID of the given process object.
| |
| isAlive | back to summary |
|---|---|
| public static boolean isAlive(long processID) Tests whether the process represented by the given Process ID is alive.
| |
| setArgumentVectorProgramName | back to summary |
|---|---|
| public static boolean setArgumentVectorProgramName(String name) If the running image is an executable the program name that is stored in the argument vector of the running process gets replaced with the given name. If the size of the argument vector is too small for the given name it gets truncated so that the environment vector next to the argument vector does not get corrupted.
| |
| setLocale | back to summary |
|---|---|
| public static String setLocale(String category, String locale) Set the program locale.
| |
| waitForProcessExit | back to summary |
|---|---|
| public static int waitForProcessExit(long processID) Wait for process termination and return its exit status.
| |