public interface ApplicationStatus
Modifier and Type | Method and Description |
---|---|
void |
collectGarbage()
Request that the virtual machine run the garbage collector.
|
void |
forceQuit(int code)
Force the application to quit immediately without running any finalizers.
|
java.lang.String |
getApplicationName()
Get the application name.
|
double |
getFreeMemory()
Get the free memory available to the application instance.
|
java.util.Date |
getHeartbeat()
Get a heartbeat from the service.
|
java.lang.String |
getHostName()
Get the name of the host where the application is running.
|
java.util.Date |
getLaunchTime()
Get the launch time of the application in seconds since the epoch (midnight GMT, January 1, 1970)
|
double |
getTotalMemory()
Get the total memory consumed by the application instance.
|
void |
quit(int code)
Quit the application normally.
|
void |
showAllWindows()
reveal the application by bringing all windows to the front
|
double getFreeMemory()
double getTotalMemory()
java.lang.String getApplicationName()
java.lang.String getHostName()
java.util.Date getLaunchTime()
java.util.Date getHeartbeat()
void showAllWindows()
void collectGarbage()
void quit(int code)
code
- An unused status code.void forceQuit(int code)
code
- The status code used for halting the virtual machine.