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 ApplicationStatus
public double getTotalMemory()
getTotalMemory
in interface ApplicationStatus
public void showAllWindows()
showAllWindows
in interface ApplicationStatus
public void collectGarbage()
collectGarbage
in interface ApplicationStatus
public void quit(int code)
quit
in interface ApplicationStatus
code
- An unused status code.public void forceQuit(int code)
forceQuit
in interface ApplicationStatus
code
- The status code used for halting the virtual machine.public java.lang.String getHostName()
getHostName
in interface ApplicationStatus
public java.lang.String getApplicationName()
getApplicationName
in interface ApplicationStatus
public java.util.Date getLaunchTime()
getLaunchTime
in interface ApplicationStatus
public java.util.Date getHeartbeat()
getHeartbeat
in interface ApplicationStatus