|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Runtime
public class Runtime
Minimalist version of the standard Java Runtime class.
Method Summary | |
---|---|
void |
addShutdownHook(Thread hook)
Add a shutdown hook. |
void |
exit(int code)
Terminate the application. |
long |
freeMemory()
Return the amount of free memory.on the heap |
static Runtime |
getRuntime()
Get the single instance of us. |
void |
halt(int code)
Terminate the application immediately |
boolean |
removeShutdownHook(Thread hook)
Remove a previously installed shutdown hook from the system. |
long |
totalMemory()
Return the size of the heap in bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Runtime getRuntime()
public long freeMemory()
public long totalMemory()
public void exit(int code)
public void halt(int code)
public void addShutdownHook(Thread hook)
hook
- public boolean removeShutdownHook(Thread hook)
hook
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |