DCT Lightfoot v3 API specification

java.lang
Class Runtime

java.lang.Object
  |
  +--java.lang.Runtime

public class Runtime
extends Object

Access to the runtime environment


Method Summary
 void exit(int status)
          Exit the program
 long freeMemory()
          Return the amount of free memory
 void gc()
          Run the garbage collector - this does nothing at the moment as the GC only runs when there is no memory
static Runtime getRuntime()
          Get the runtime
 long totalMemory()
          Return the total memory in the system
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getRuntime

public static Runtime getRuntime()
Get the runtime


exit

public void exit(int status)
Exit the program

Parameters:
status - The exit status

freeMemory

public long freeMemory()
Return the amount of free memory

Returns:
the amount

totalMemory

public long totalMemory()
Return the total memory in the system

Returns:
the total memory

gc

public void gc()
Run the garbage collector - this does nothing at the moment as the GC only runs when there is no memory


DCT Lightfoot v3 API specification

DCT Lightfoot v3 API specification