Class TopologyTreeData

java.lang.Object
org.jppf.admin.web.tabletree.TableTreeData
org.jppf.admin.web.topology.TopologyTreeData
All Implemented Interfaces:
SelectionListener

public class TopologyTreeData extends TableTreeData
Author:
Laurent Cohen
  • Constructor Details

    • TopologyTreeData

      public TopologyTreeData()
  • Method Details

    • getSelectedNodes

      public static List<org.jppf.client.monitoring.topology.TopologyNode> getSelectedNodes(List<DefaultMutableTreeNode> selected)
      Extract the nodes, if any, from the list of selected elements.
      Parameters:
      selected - a list of all the selected elements.
      Returns:
      a list of the selected nodes.
    • getSelectedDrivers

      public static List<org.jppf.client.monitoring.topology.TopologyDriver> getSelectedDrivers(List<DefaultMutableTreeNode> selected)
      Extract the drivers, if any, from the list of selected elements.
      Parameters:
      selected - a list of all the selected elements.
      Returns:
      a list of the selected drivers.
    • getNodesMultimap

      public static org.jppf.utils.collections.CollectionMap<org.jppf.client.monitoring.topology.TopologyDriver,String> getNodesMultimap(List<DefaultMutableTreeNode> selected)
      Get a mapping of driver to nodes uuids from the selected elements.
      Parameters:
      selected - the selected elements.
      Returns:
      mapping of driver to nodes uuids.
    • getListener

      public org.jppf.client.monitoring.topology.TopologyListener getListener()
      Returns:
      the topology listener.
    • setListener

      public void setListener(org.jppf.client.monitoring.topology.TopologyListener listener)
      Set the topology listener.
      Parameters:
      listener - the listener to set.
    • cleanup

      public void cleanup()
      Description copied from class: TableTreeData
      Free resources.
      Overrides:
      cleanup in class TableTreeData
    • createTreeTableModel

      protected void createTreeTableModel()
      Description copied from class: TableTreeData
      Create the tree model.
      Specified by:
      createTreeTableModel in class TableTreeData