Class ServerStatusPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class ServerStatusPanel extends JPanel
The server status panel queries the status of a CoastWatch data server and displays the current activity including incoming, unprocessed, and processing files. The status monitor may be used in an operator mode in which case significant error conditions are reported in the form of a message dialog box.
Since:
3.1.3
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • ServerStatusPanel

      public ServerStatusPanel()
      Creates a new status panel with no server. The setSource() method should be called prior to performing any status updates.
    • ServerStatusPanel

      public ServerStatusPanel(String protocol, String host, String path)
      Creates a new status panel using the specified server.
      Parameters:
      protocol - the communication protocol.
      host - the server host.
      path - the query script path.
      See Also:
  • Method Details

    • setOperator

      public void setOperator(boolean flag)
      Sets the operator mode to show dialog panels when an error occurs. By default operator mode is off.
    • setSource

      public void setSource(String protocol, String host, String path)
      Sets the panel to query the status from a new data source. The current status is cleared.
      Parameters:
      protocol - the communication protocol.
      host - the server host.
      path - the query script path.
    • update

      public void update()
      Updates the status elements by contacting the server for a status report. This method always returns immediately and the server query is performed asynchronously. If there is currently an update running, no operation is performed.