Interface ApplicationStatus

All Known Implementing Classes:
ApplicationStatusService, FxApplicationStatusService

public interface ApplicationStatus
ApplicationStatus is an interface used in remote access to advertise application status.
Author:
tap
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Request that the virtual machine run the garbage collector.
    void
    forceQuit(int code)
    Force the application to quit immediately without running any finalizers.
    Get the application name.
    double
    Get the free memory available to the application instance.
    Get a heartbeat from the service.
    Get the name of the host where the application is running.
    Get the launch time of the application in seconds since the epoch (midnight GMT, January 1, 1970)
    double
    Get the total memory consumed by the application instance.
    void
    quit(int code)
    Quit the application normally.
    void
    reveal the application by bringing all windows to the front
  • Method Details

    • getFreeMemory

      double getFreeMemory()
      Get the free memory available to the application instance.
      Returns:
      The free memory available on this virtual machine.
    • getTotalMemory

      double getTotalMemory()
      Get the total memory consumed by the application instance.
      Returns:
      The total memory consumed by the application instance.
    • getApplicationName

      String getApplicationName()
      Get the application name.
      Returns:
      The application name.
    • getHostName

      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

      Date 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
    • getHeartbeat

      Date getHeartbeat()
      Get a heartbeat from the service.
      Returns:
      the time measured from the service at which the heartbeat was sent
    • showAllWindows

      void showAllWindows()
      reveal the application by bringing all windows to the front
    • collectGarbage

      void collectGarbage()
      Request that the virtual machine run the garbage collector.
    • quit

      void quit(int code)
      Quit the application normally.
      Parameters:
      code - An unused status code.
    • forceQuit

      void forceQuit(int code)
      Force the application to quit immediately without running any finalizers.
      Parameters:
      code - The status code used for halting the virtual machine.