|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.sns.application.ApplicationStatusService
ApplicationStatusService handles application status queries on behalf of the running application instance. Provides status information to clients on the local network.
| Constructor Summary | |
ApplicationStatusService()
|
|
| Method Summary | |
boolean |
collectGarbage()
Request that the virtual machine run the garbage collector. |
int |
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 the application instance. |
java.lang.String |
getHostName()
Get the name of the host where the application is running. |
double |
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. |
int |
quit(int code)
Quit the application normally. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ApplicationStatusService()
| Method Detail |
public double getFreeMemory()
getFreeMemory in interface ApplicationStatuspublic double getTotalMemory()
getTotalMemory in interface ApplicationStatuspublic boolean collectGarbage()
collectGarbage in interface ApplicationStatuspublic int quit(int code)
quit in interface ApplicationStatuscode - An unused status code.
public int 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 double getLaunchTime()
getLaunchTime in interface ApplicationStatus
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||