gov.sns.application
Interface ApplicationStatus

All Known Implementing Classes:
ApplicationStatusService

public interface ApplicationStatus

ApplicationStatus is an interface used in remote access to advertise application status.


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.
 

Method Detail

getFreeMemory

public double getFreeMemory()
Get the free memory available the application instance.

Returns:
The free memory available on this virtual machine.

getTotalMemory

public double getTotalMemory()
Get the total memory consumed by the application instance.

Returns:
The total memory consumed by the application instance.

getApplicationName

public java.lang.String getApplicationName()
Get the application name.

Returns:
The application name.

getHostName

public java.lang.String getHostName()
Get the name of the host where the application is running.

Returns:
The name of the host where the application is running.

getLaunchTime

public double getLaunchTime()
Get the launch time of the application in seconds since the epoch (midnight GMT, January 1, 1970)

Returns:
the time at with the application was launched in seconds since the epoch

collectGarbage

public boolean collectGarbage()
Request that the virtual machine run the garbage collector.

Returns:
true.

quit

public int quit(int code)
Quit the application normally.

Parameters:
code - An unused status code.
Returns:
The status code.

forceQuit

public int forceQuit(int code)
Force the application to quit immediately without running any finalizers.

Parameters:
code - The status code used for halting the virtual machine.
Returns:
The supplied status code.