Class AbstractMonitoringListener

java.lang.Object
org.jppf.admin.web.tabletree.AbstractMonitoringListener
All Implemented Interfaces:
EventListener, TopologyFilterListener
Direct Known Subclasses:
HealthTreeListener, JobsTreeListener, TopologyTreeListener

public abstract class AbstractMonitoringListener extends Object implements TopologyFilterListener
Author:
Laurent Cohen
  • Field Details

    • treeModel

      protected final org.jppf.ui.treetable.AbstractJPPFTreeTableModel treeModel
      The tree table model.
    • selectionHandler

      protected final SelectionHandler selectionHandler
      Handles the selection of rows in the tree table.
    • tableTree

      protected JPPFTableTree tableTree
      The table tree to update.
    • nodeFilter

      protected TopologyFilter nodeFilter
      The node filter to use.
  • Constructor Details

    • AbstractMonitoringListener

      public AbstractMonitoringListener(org.jppf.ui.treetable.AbstractJPPFTreeTableModel treeModel, SelectionHandler selectionHandler, TopologyFilter nodeFilter)
      Initialize with the specified tree model and selection handler.
      Parameters:
      treeModel - the tree table model.
      selectionHandler - handles the selection of rows in the tree table.
      nodeFilter - the node filter to use.
  • Method Details

    • getTableTree

      public JPPFTableTree getTableTree()
      Returns:
      the table tree to update.
    • setTableTree

      public void setTableTree(JPPFTableTree tableTree)
      Set the table tree to update.
      Parameters:
      tableTree - the table tree to set.
    • isAccepted

      public static boolean isAccepted(TopologyFilter nodeFilter, org.jppf.client.monitoring.topology.TopologyNode node)
      Determine whether the specified node passes the node filter.
      Parameters:
      nodeFilter - the filter to evaluate against.
      node - the node to evaluate.
      Returns:
      true if the node passes the filter, false otherwise.
    • updateTopology

      protected void updateTopology(TopologyFilterEvent event)
      Update the topology represented by the specified model based on the specified filter event.
      Parameters:
      event - the event encapsulating a change in the topology filter.
    • addNode

      protected void addNode(org.jppf.client.monitoring.topology.TopologyDriver driver, org.jppf.client.monitoring.topology.TopologyNode node)
      Add a node to the specified driver in the tree model.
      Parameters:
      driver - the driver to which the node is attached.
      node - the node to add.