Class ServerPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, MonitorGuiListener

public class ServerPanel extends JPanel implements MonitorGuiListener
The purpose of ServerPanel is to display an unique server and its current status. The server label consist of the protocol, host and port. For example, a system with multiple Tomcat's running on different ports would be different ServerPanel.
See Also:
  • Constructor Details

    • ServerPanel

      public ServerPanel(MonitorModel model)
      Creates a new server panel for a monitored server
      Parameters:
      model - information about the monitored server
    • ServerPanel

      @Deprecated public ServerPanel()
      Deprecated.
      Only for use in unit testing
  • Method Details

    • updateGui

      public void updateGui(MonitorModel stat)
      Method will update the ServerPanel's health, load, and timestamp. For efficiency, it uses the static method to lookup the images.
      Specified by:
      updateGui in interface MonitorGuiListener
    • updateGui

      public void updateGui()
      update the gui
      Specified by:
      updateGui in interface MonitorGuiListener