public final class ProcessProperties extends Object
Modifier and Type | Method and Description |
---|---|
static boolean |
destroy(long processID)
Kills the process.
|
static boolean |
destroyForcibly(long processID)
Kills the process forcibly.
|
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.
|
static String |
getExecutableName()
Return the canonicalized absolute pathname of the executable.
|
static String |
getObjectFile(CEntryPointLiteral<?> symbol)
Return the path of the object file defining the symbol specified as a
CEntryPointLiteral containing a function pointer to symbol. |
static String |
getObjectFile(String symbol)
Return the path of the object file defining the symbol specified as a
String
containing the symbol name. |
static long |
getProcessID()
Get the Process ID of the process executing the image.
|
static long |
getProcessID(Process process)
Get the Process ID of the given process object.
|
static boolean |
isAlive(long processID)
Tests whether the process represented by the given Process ID is alive.
|
static String |
setLocale(String category,
String locale)
Set the program locale.
|
static int |
waitForProcessExit(long processID)
Wait for process termination and return its exit status.
|
public static String getExecutableName()
public static long getProcessID()
public static long getProcessID(Process process)
public static int waitForProcessExit(long processID)
public static boolean destroy(long processID)
public static boolean destroyForcibly(long processID)
public static boolean isAlive(long processID)
public static String getObjectFile(String symbol)
String
containing the symbol name.public static String getObjectFile(CEntryPointLiteral<?> symbol)
CEntryPointLiteral
containing a function pointer to symbol.public static String setLocale(String category, String locale)