|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Runtime
public final class Runtime
| Method Summary | |
|---|---|
void |
addShutdownHook(Thread hook)
Registers a new virtual-machine shutdown hook. |
int |
availableProcessors()
Returns the number of processors available to the Java virtual machine. |
void |
exit(int status)
Terminates the currently running Java virtual machine by initiating its shutdown sequence. |
long |
freeMemory()
Returns the amount of free memory in the Java Virtual Machine. |
void |
gc()
Runs the garbage collector. |
static Runtime |
getRuntime()
Returns the runtime object associated with the current Java application. |
void |
halt(int status)
Forcibly terminates the currently running Java virtual machine. |
long |
maxMemory()
Returns the maximum amount of memory that the Java virtual machine will attempt to use. |
boolean |
removeShutdownHook(Thread hook)
De-registers a previously-registered virtual-machine shutdown hook. |
long |
totalMemory()
Returns the total amount of memory in the Java virtual machine. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait |
| Method Detail |
|---|
public void addShutdownHook(Thread hook)
public int availableProcessors()
public void exit(int status)
public long freeMemory()
public void gc()
public static Runtime getRuntime()
public void halt(int status)
public long maxMemory()
public boolean removeShutdownHook(Thread hook)
public long totalMemory()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||