public class ApplicationStatusService extends java.lang.Object implements ApplicationStatus
| Constructor and Description |
|---|
ApplicationStatusService() |
| 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
|
public double getFreeMemory()
getFreeMemory in interface ApplicationStatuspublic double getTotalMemory()
getTotalMemory in interface ApplicationStatuspublic void showAllWindows()
showAllWindows in interface ApplicationStatuspublic void collectGarbage()
collectGarbage in interface ApplicationStatuspublic void quit(int code)
quit in interface ApplicationStatuscode - An unused status code.public void forceQuit(int code)
forceQuit in interface ApplicationStatuscode - The status code used for halting the virtual machine.public java.lang.String getHostName()
getHostName in interface ApplicationStatuspublic java.lang.String getApplicationName()
getApplicationName in interface ApplicationStatuspublic java.util.Date getLaunchTime()
getLaunchTime in interface ApplicationStatuspublic java.util.Date getHeartbeat()
getHeartbeat in interface ApplicationStatus