org.jppf.ui.monitoring.job
Class JobDataPanel

java.lang.Object
  extended by org.jppf.ui.options.AbstractOptionProperties
      extended by org.jppf.ui.options.AbstractOptionElement
          extended by org.jppf.ui.options.AbstractOption
              extended by org.jppf.ui.treetable.AbstractTreeTableOption
                  extended by org.jppf.ui.monitoring.job.JobDataPanel
All Implemented Interfaces:
Serializable, EventListener, ClientListener, ActionHolder, Option, OptionElement, OptionProperties

public class JobDataPanel
extends AbstractTreeTableOption
implements ClientListener, ActionHolder

Panel displaying the tree of all driver connections and attached nodes.

Author:
Laurent Cohen
See Also:
Serialized Form

Nested Class Summary
 class JobDataPanel.RefreshTask
          This task refreshes the entire job data panel.
 
Field Summary
 
Fields inherited from class org.jppf.ui.treetable.AbstractTreeTableOption
actionHandler, BASE, model, treeTable, treeTableRoot
 
Fields inherited from class org.jppf.ui.options.AbstractOption
listeners, persistent, value
 
Fields inherited from class org.jppf.ui.options.AbstractOptionElement
parent, root
 
Fields inherited from class org.jppf.ui.options.AbstractOptionProperties
bordered, componentConstraints, eventsEnabled, finalizer, iconPath, initializer, label, layoutConstraints, name, scripts, scrollable, toolTipText, UIComponent
 
Constructor Summary
JobDataPanel()
          Initialize this panel with the specified information.
 
Method Summary
 void connectionFailed(ClientEvent event)
          Notifiy this listener that a driver connection has failed.
 void createUI()
          Create, initialize and layout the GUI components displayed in this panel.
 void driverAdded(JPPFClientConnection clientConnection)
          Called to notify that a driver was added.
 void driverRemoved(String driverName)
          Called to notify that a driver was removed.
 void jobAdded(String driverName, JobInformation jobInfo)
          Called to notify that a job was submitted to a driver.
 void jobRemoved(String driverName, JobInformation jobInfo)
          Called to notify that a job was removed from a driver.
 void jobUpdated(String driverName, JobInformation jobInfo)
          Called to notify that a job was removed from a driver.
 void newConnection(ClientEvent event)
          Notifiy this listener that a new driver connection was created.
 void refresh()
          Refresh the tree from the latest data found in the server.
 void refreshUI()
          Refreshes the tree table display.
 void setupActions()
          Initialize all actions used in the panel.
 void subJobAdded(String driverName, JobInformation jobInfo, JPPFManagementInfo nodeInfo)
          Called to notify that a sub-job was dispatched to a node.
 void subJobRemoved(String driverName, JobInformation jobInfo, JPPFManagementInfo nodeInfo)
          Called to notify that a sub-job was removed from a node.
 
Methods inherited from class org.jppf.ui.treetable.AbstractTreeTableOption
getActionHandler, getModel, getTreeTable, getTreeTableRoot, localize, saveTableColumnsWidth, setEnabled, setEventsEnabled, setupTableColumns, setupValueChangeNotifications
 
Methods inherited from class org.jppf.ui.options.AbstractOption
addValueChangeListener, fireValueChanged, getValue, isPersistent, layoutComponents, layoutComponents, removeValueChangeListener, setPersistent, setValue
 
Methods inherited from class org.jppf.ui.options.AbstractOptionElement
findAll, findAllWithName, findElement, findFirstWithName, findLastWithName, getChildForName, getParent, getPath, getRoot, getStringPath, setParent, toString
 
Methods inherited from class org.jppf.ui.options.AbstractOptionProperties
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setBordered, setComponentConstraints, setEditable, setFinalizer, setIconPath, setInitializer, setLabel, setLayoutConstraints, setName, setScrollable, setToolTipText, setUIComponent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jppf.ui.actions.ActionHolder
getActionHandler
 
Methods inherited from interface org.jppf.ui.options.OptionElement
findAllWithName, findElement, findFirstWithName, findLastWithName, getParent, getPath, getRoot, getStringPath
 
Methods inherited from interface org.jppf.ui.options.OptionProperties
getComponentConstraints, getFinalizer, getIconPath, getInitializer, getLabel, getLayoutConstraints, getName, getScripts, getToolTipText, getUIComponent, isBordered, isEventsEnabled, isScrollable, setComponentConstraints, setEditable, setLayoutConstraints
 

Constructor Detail

JobDataPanel

public JobDataPanel()
Initialize this panel with the specified information.

Method Detail

refresh

public void refresh()
Refresh the tree from the latest data found in the server. This method will clear the entire tree and repopulate it.


createUI

public void createUI()
Create, initialize and layout the GUI components displayed in this panel.

Specified by:
createUI in class AbstractOptionProperties

driverAdded

public void driverAdded(JPPFClientConnection clientConnection)
Called to notify that a driver was added.

Parameters:
clientConnection - a reference to the driver connection.

driverRemoved

public void driverRemoved(String driverName)
Called to notify that a driver was removed.

Parameters:
driverName - the name of the driver to remove.

jobAdded

public void jobAdded(String driverName,
                     JobInformation jobInfo)
Called to notify that a job was submitted to a driver.

Parameters:
driverName - the name of the driver the job was submitted to.
jobInfo - information about the submitted job.

jobRemoved

public void jobRemoved(String driverName,
                       JobInformation jobInfo)
Called to notify that a job was removed from a driver.

Parameters:
driverName - the name of the driver the job was submitted to.
jobInfo - information about the job.

jobUpdated

public void jobUpdated(String driverName,
                       JobInformation jobInfo)
Called to notify that a job was removed from a driver.

Parameters:
driverName - the name of the driver the job was submitted to.
jobInfo - information about the job.

subJobAdded

public void subJobAdded(String driverName,
                        JobInformation jobInfo,
                        JPPFManagementInfo nodeInfo)
Called to notify that a sub-job was dispatched to a node.

Parameters:
driverName - the name of the driver the job was submitted to.
jobInfo - information about the sub-job.
nodeInfo - information about the node where the sub-job was dispatched.

subJobRemoved

public void subJobRemoved(String driverName,
                          JobInformation jobInfo,
                          JPPFManagementInfo nodeInfo)
Called to notify that a sub-job was removed from a node.

Parameters:
driverName - the name of the driver the job was submitted to.
jobInfo - information about the job.
nodeInfo - information about the node where the sub-job was dispatched.

newConnection

public void newConnection(ClientEvent event)
Notifiy this listener that a new driver connection was created.

Specified by:
newConnection in interface ClientListener
Parameters:
event - the event to notify this listener of.
See Also:
ClientListener.newConnection(org.jppf.client.event.ClientEvent)

connectionFailed

public void connectionFailed(ClientEvent event)
Notifiy this listener that a driver connection has failed.

Specified by:
connectionFailed in interface ClientListener
Parameters:
event - the event to notify this listener of.

refreshUI

public void refreshUI()
Refreshes the tree table display.


setupActions

public void setupActions()
Initialize all actions used in the panel.



Copyright © 2005-2010 JPPF Team.