Class MonitoringPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, EventListener, Accessible, StatsHandlerListener

public class MonitoringPanel extends JPanel implements StatsHandlerListener
This class provides a graphical interface for monitoring the status and health of the JPPF server.
It also provides a few customization options, such as setting the interval between 2 server refreshes, and switching the color scheme (skin) fot the whole UI.
Author:
Laurent Cohen
See Also:
  • Field Details

    • allItems

      protected final Map<String,LocalizedListItem> allItems
      Mapping of table names to the corresponding items in the pick list for selecting the visible tables.
  • Constructor Details

    • MonitoringPanel

      public MonitoringPanel()
      Default constructor.
  • Method Details

    • dataUpdated

      public void dataUpdated(StatsHandlerEvent event)
      Called when new stats have been received from the server.
      Specified by:
      dataUpdated in interface StatsHandlerListener
      Parameters:
      event - holds the new stats values.
    • selectStats

      public void selectStats(AbstractButton btn)
      Popup the pick list dialog to select the visible stats.
      Parameters:
      btn - the button that produced a click event event.
    • loadVisibleStats

      public void loadVisibleStats()
      Load the ist of visible stats from the prefrences.
    • storeVisibleStats

      public void storeVisibleStats()
      Store the ist of visible stats into the prefrences.