The exec() APIs must first do any required security checks, and then call com.ibm.oti.lang.SystemProcess.create(). The Runtime interface.
Public Member Functions | |
Process | exec (String[] progArray) throws java.io.IOException |
Execute progAray[0] in a seperate platform process The new process inherits the environment of the caller. | |
Process | exec (String[] progArray, String[] envp) throws java.io.IOException |
Execute progArray[0] in a seperate platform process The new process uses the environment provided in envp. | |
Process | exec (String[] progArray, String[] envp, File directory) throws java.io.IOException |
Execute progArray[0] in a seperate platform process The new process uses the environment provided in envp. | |
Process | exec (String prog) throws java.io.IOException |
Execute program in a seperate platform process The new process inherits the environment of the caller. | |
Process | exec (String prog, String[] envp) throws java.io.IOException |
Execute prog in a seperate platform process The new process uses the environment provided in envp. | |
Process | exec (String prog, String[] envp, File directory) throws java.io.IOException |
Execute prog in a seperate platform process The new process uses the environment provided in envp. | |
void | exit (int code) |
Causes the virtual machine to stop running, and the program to exit. | |
long | freeMemory () |
Answers the amount of free memory resources which are available to the running program. | |
void | gc () |
Indicates to the virtual machine that it would be a good time to collect available memory. | |
void | load (String pathName) |
Loads and links the library specified by the argument. | |
void | loadLibrary (String libName) |
Loads and links the library specified by the argument. | |
void | runFinalization () |
Provides a hint to the virtual machine that it would be useful to attempt to perform any outstanding object finalizations. | |
long | totalMemory () |
Answers the total amount of memory resources which is available to (or in use by) the running program. | |
void | traceInstructions (boolean enable) |
void | traceMethodCalls (boolean enable) |
InputStream | getLocalizedInputStream (InputStream stream) |
OutputStream | getLocalizedOutputStream (OutputStream stream) |
void | addShutdownHook (Thread hook) |
Registers a new virtual-machine shutdown hook. | |
boolean | removeShutdownHook (Thread hook) |
De-registers a previously-registered virtual-machine shutdown hook. | |
void | halt (int code) |
Causes the virtual machine to stop running, and the program to exit. | |
int | availableProcessors () |
Return the number of processors, always at least one. | |
long | maxMemory () |
Return the maximum memory that will be used by the virtual machine, or Long.MAX_VALUE. | |
Static Public Member Functions | |
static Runtime | getRuntime () |
Return the single Runtime instance. | |
static void | runFinalizersOnExit (boolean run) |
Ensure that, when the virtual machine is about to exit, all objects are finalized. |
|
Execute progAray[0] in a seperate platform process The new process inherits the environment of the caller.
|
|
Execute progArray[0] in a seperate platform process The new process uses the environment provided in envp.
|
|
Execute progArray[0] in a seperate platform process The new process uses the environment provided in envp.
|
|
Execute program in a seperate platform process The new process inherits the environment of the caller.
|
|
Execute prog in a seperate platform process The new process uses the environment provided in envp.
|
|
Execute prog in a seperate platform process The new process uses the environment provided in envp.
|
|
Causes the virtual machine to stop running, and the program to exit. If runFinalizersOnExit(true) has been invoked, then all finalizers will be run first.
|
|
Answers the amount of free memory resources which are available to the running program.
|
|
Indicates to the virtual machine that it would be a good time to collect available memory. Note that, this is a hint only. |
|
Return the single Runtime instance.
|
|
Loads and links the library specified by the argument.
|
|
Loads and links the library specified by the argument.
|
|
Provides a hint to the virtual machine that it would be useful to attempt to perform any outstanding object finalizations.
|
|
Ensure that, when the virtual machine is about to exit, all objects are finalized. Note that all finalization which occurs when the system is exiting is performed after all running threads have been terminated.
|
|
Answers the total amount of memory resources which is available to (or in use by) the running program.
|
|
|
|
|
|
Registers a new virtual-machine shutdown hook.
|
|
De-registers a previously-registered virtual-machine shutdown hook.
|
|
Causes the virtual machine to stop running, and the program to exit. Finalizers will not be run first. Shutdown hooks will not be run.
|
|
Return the number of processors, always at least one.
|
|
Return the maximum memory that will be used by the virtual machine, or Long.MAX_VALUE.
|