Package org.jppf.admin.web.tabletree
Class AbstractMonitoringListener
java.lang.Object
org.jppf.admin.web.tabletree.AbstractMonitoringListener
- All Implemented Interfaces:
EventListener,TopologyFilterListener
- Direct Known Subclasses:
HealthTreeListener,JobsTreeListener,TopologyTreeListener
- Author:
- Laurent Cohen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TopologyFilterThe node filter to use.protected final SelectionHandlerHandles the selection of rows in the tree table.protected JPPFTableTreeThe table tree to update.protected final org.jppf.ui.treetable.AbstractJPPFTreeTableModelThe tree table model. -
Constructor Summary
ConstructorsConstructorDescriptionAbstractMonitoringListener(org.jppf.ui.treetable.AbstractJPPFTreeTableModel treeModel, SelectionHandler selectionHandler, TopologyFilter nodeFilter) Initialize with the specified tree model and selection handler. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddNode(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.static booleanisAccepted(TopologyFilter nodeFilter, org.jppf.client.monitoring.topology.TopologyNode node) Determine whether the specified node passes the node filter.voidsetTableTree(JPPFTableTree tableTree) Set the table tree to update.protected voidUpdate the topology represented by the specified model based on the specified filter event.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jppf.admin.web.filter.TopologyFilterListener
onFilterChange
-
Field Details
-
treeModel
protected final org.jppf.ui.treetable.AbstractJPPFTreeTableModel treeModelThe tree table model. -
selectionHandler
Handles the selection of rows in the tree table. -
tableTree
The table tree to update. -
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
- Returns:
- the table tree to update.
-
setTableTree
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:
trueif the node passes the filter,falseotherwise.
-
updateTopology
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.
-