Java.Lang.Runtime: Method Members

The methods of Java.Lang.Runtime are listed below. For a list of all members, see the Runtime Members list.

See Also: Inherited members from Java.Lang.Object

Public Methods

AddShutdownHook(Thread)
It is recommended that shutdown hooks do not do any time-consuming activities, in order to not hold up the shutdown process longer than necessary.
AvailableProcessors() : int
Returns the number of processors available to the VM, at least 1.
Exec(string) : Process
Executes the specified program in a separate native process.
Exec(string[]) : Process
Executes the specified command and its arguments in a separate native process.
Exec(string, string[]) : Process
Executes the specified program in a separate native process.
Exec(string[], string[]) : Process
Executes the specified command and its arguments in a separate native process.
Exec(string, string[], Java.IO.File) : Process
Executes the specified program in a separate native process.
Exec(string[], string[], Java.IO.File) : Process
Executes the specified command and its arguments in a separate native process.
Exit(int)
Causes the VM to stop running and the program to exit.
FreeMemory() : long
Returns the amount of free memory resources which are available to the running program.
Gc()
Indicates to the VM that it would be a good time to run the garbage collector.
GetLocalizedInputStream(System.IO.Stream) : System.IO.Stream
Returns the localized version of the specified input stream.
GetLocalizedOutputStream(System.IO.Stream) : System.IO.Stream
Returns the localized version of the specified output stream.
static
GetRuntime() : Runtime
Returns the single Runtime instance.
Halt(int)
Causes the VM to stop running, and the program to exit.
Load(string)
Loads and links the dynamic library that is identified through the specified path.
LoadLibrary(string)
Loads and links the library with the specified name.
MaxMemory() : long
Returns the maximum amount of memory that may be used by the virtual machine, or Long.MAX_VALUE if there is no such limit.
RemoveShutdownHook(Thread) : bool
Unregisters a previously registered VM shutdown hook.
RunFinalization()
Provides a hint to the VM that it would be useful to attempt to perform any outstanding object finalization.
static
RunFinalizersOnExit(bool)
Sets the flag that indicates whether all objects are finalized when the VM is about to exit.
TotalMemory() : long
Returns the total amount of memory which is available to the running program.
TraceInstructions(bool)
Switches the output of debug information for instructions on or off.
TraceMethodCalls(bool)
Switches the output of debug information for methods on or off.