Class NodePerformancePanel

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
com.nt.udc.gui.OSAAdminBasePanel
com.nt.udc.gui.SettingsListDetailsPanel
com.nt.udc.admin.client.gui.NodePerformancePanel
All Implemented Interfaces:
com.nt.udc.gui.OSAAdminPanelInterface, AcctEventListener, ActionListener, ItemListener, ImageObserver, MenuContainer, Serializable, Remote, EventListener, Accessible, DocumentListener, ListSelectionListener

public class NodePerformancePanel extends com.nt.udc.gui.SettingsListDetailsPanel implements ActionListener, ListSelectionListener, ItemListener, DocumentListener, AcctEventListener
See Also:
  • Field Details

    • hostFieldsDirty

      protected boolean hostFieldsDirty
    • nodeFieldsDirty

      protected boolean nodeFieldsDirty
    • NODE_HOST_TABLE_COLUMN_COUNT

      public static final int NODE_HOST_TABLE_COLUMN_COUNT
      See Also:
    • NM_NAME_COLUMN

      public static final int NM_NAME_COLUMN
      See Also:
    • NM_DISPLAY_IP_COLUMN

      public static final int NM_DISPLAY_IP_COLUMN
      See Also:
    • NM_PORT_COLUMN

      public static final int NM_PORT_COLUMN
      See Also:
    • NM_STATUS_COLUMN

      public static final int NM_STATUS_COLUMN
      See Also:
    • NM_REAL_IP_COLUMN

      public static final int NM_REAL_IP_COLUMN
      See Also:
    • NODE_TABLE_COLUMN_COUNT

      public static final int NODE_TABLE_COLUMN_COUNT
      See Also:
    • NODE_DISPLAY_NAME_COLUMN

      public static final int NODE_DISPLAY_NAME_COLUMN
      See Also:
    • NODE_UP_TIME_COLUMN

      public static final int NODE_UP_TIME_COLUMN
      See Also:
    • NAR_CURRENT_COUNT_COLUMN

      public static final int NAR_CURRENT_COUNT_COLUMN
      See Also:
    • NAR_CURRENT_RATE_COLUMN

      public static final int NAR_CURRENT_RATE_COLUMN
      See Also:
    • NAR_COUNT_COLUMN

      public static final int NAR_COUNT_COLUMN
      See Also:
    • NAR_AVG_RATE_COLUMN

      public static final int NAR_AVG_RATE_COLUMN
      See Also:
    • NODE_ID_COLUMN

      public static final int NODE_ID_COLUMN
      See Also:
    • TXN_TABLE_COLUMN_COUNT

      public static final int TXN_TABLE_COLUMN_COUNT
      See Also:
    • TXN_TRANSACTION_ID_COLUMN

      public static final int TXN_TRANSACTION_ID_COLUMN
      See Also:
    • TXN_FILE_NAME_COLUMN

      public static final int TXN_FILE_NAME_COLUMN
      See Also:
    • TXN_STATUS_COLUMN

      public static final int TXN_STATUS_COLUMN
      See Also:
    • TXN_RECORDS_IN_COLUMN

      public static final int TXN_RECORDS_IN_COLUMN
      See Also:
    • TXN_FAILURE_COUNT_COLUMN

      public static final int TXN_FAILURE_COUNT_COLUMN
      See Also:
    • TXN_RECORDS_OUT_COLUMN

      public static final int TXN_RECORDS_OUT_COLUMN
      See Also:
    • TXN_HIDDEN_FILEPATH_COLUMN

      public static final int TXN_HIDDEN_FILEPATH_COLUMN
      See Also:
  • Constructor Details

    • NodePerformancePanel

      public NodePerformancePanel()
  • Method Details

    • getCurrentIPAddress

      public String getCurrentIPAddress()
    • getCurrentPort

      public int getCurrentPort()
    • getCurrentRealIPAddress

      public String getCurrentRealIPAddress()
    • afterShowing

      public void afterShowing()
      Description copied from class: com.nt.udc.gui.OSAAdminBasePanel
      Called after panel is displayed in the Admin GUI. Sets panelIsShowing to true.
      Specified by:
      afterShowing in interface com.nt.udc.gui.OSAAdminPanelInterface
      Overrides:
      afterShowing in class com.nt.udc.gui.OSAAdminBasePanel
    • addGUIComponents

      public void addGUIComponents()
      Overrides:
      addGUIComponents in class com.nt.udc.gui.SettingsListDetailsPanel
    • valueChanged

      public void valueChanged(ListSelectionEvent e)
      Specified by:
      valueChanged in interface ListSelectionListener
    • actionPerformed

      public void actionPerformed(ActionEvent event)
      Specified by:
      actionPerformed in interface ActionListener
    • itemStateChanged

      public void itemStateChanged(ItemEvent event)
      Specified by:
      itemStateChanged in interface ItemListener
    • updateNodeHostList

      public void updateNodeHostList()
    • fetchNodeHostInfo

      protected void fetchNodeHostInfo()
    • updateNodeList

      public void updateNodeList()
    • insertUpdate

      public void insertUpdate(DocumentEvent event)
      Specified by:
      insertUpdate in interface DocumentListener
    • removeUpdate

      public void removeUpdate(DocumentEvent event)
      Specified by:
      removeUpdate in interface DocumentListener
    • changedUpdate

      public void changedUpdate(DocumentEvent event)
      Specified by:
      changedUpdate in interface DocumentListener
    • getSelectedNodeIDs

      public Vector getSelectedNodeIDs()
    • setSelectedNodeIDs

      public void setSelectedNodeIDs(Vector nodeIDVector)
    • printSummary

      protected int printSummary(Graphics2D g2, PageFormat pf, int pi, int ppi)
      Description copied from class: com.nt.udc.gui.OSAAdminBasePanel
      Subclasses should override this method to print anything useful. This version just prints the string "Summary" in large letters. 6/14/01 -- No longer prints the string "Summary" if not overridden If a subclass does not override this method, nothing should be printed. --Sam
      Overrides:
      printSummary in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      g2 - the context into which the page is drawn
      pf - the size and orientation of the page being drawn
      pi - the zero based index of the first page to be drawn
      ppi - the zero based index of the last page to be drawn
      Returns:
      Printable.PAGE_EXISTS if the page is rendered successfully, or Printable.NO_SUCH_PAGE if pi or ppi specifies a non-existent page.
    • nodeManagersAdded

      public void nodeManagersAdded(Vector nmList)
      Indicates that one or more NodeManagers were added. The Vector associated with each NMItem object will represent all the nodes that are being managed by that Node Manager.
      Specified by:
      nodeManagersAdded in interface AcctEventListener
      Overrides:
      nodeManagersAdded in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      nmList - Vector of NMItem objects, each representing a Node Manager that was added. Each NMItem's child (node) Vector will contain all nodes managed by that Node Manager.
      See Also:
    • nodeManagersRemoved

      public void nodeManagersRemoved(Vector nmList)
      Indicates that one or more NodeManagers were removed.
      Specified by:
      nodeManagersRemoved in interface AcctEventListener
      Overrides:
      nodeManagersRemoved in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      nmList - Vector of NMItem objects representing the Node Managers that were removed.
      See Also:
    • nodeManagerChanged

      public void nodeManagerChanged(com.nt.udc.admin.NMItem nmItem)
      Indicates that the properties of a Node Manager have changed.
      Specified by:
      nodeManagerChanged in interface AcctEventListener
      Overrides:
      nodeManagerChanged in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      nmItem - NMItem object representing the Node Manager that changed.
      See Also:
    • nodePerformanceUpdate

      public void nodePerformanceUpdate(Vector perfs)
      Node performance data has been updated.
      Specified by:
      nodePerformanceUpdate in interface AcctEventListener
      Overrides:
      nodePerformanceUpdate in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      perfs - Vector of node performance objects.
      See Also:
      • invalid reference
        com.nt.udc.util.AcctEventListener#nodePerformanceUpdate(SystemModel)
    • nodesAdded

      public void nodesAdded(com.nt.udc.admin.NMItem nmi)
      Description copied from interface: AcctEventListener
      Indicates that a Node has been added to a particular Node Manager.
      Specified by:
      nodesAdded in interface AcctEventListener
      Overrides:
      nodesAdded in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      nmi - NMItem object which represents the Node Manager managing the node that was added. The Vector associated with nodeManager will contain only the node that was added.
      See Also:
    • nodesRemoved

      public void nodesRemoved(com.nt.udc.admin.NMItem nmi)
      Description copied from interface: AcctEventListener
      Indicates that a Node has been removed from a particular Node Manager.
      Specified by:
      nodesRemoved in interface AcctEventListener
      Overrides:
      nodesRemoved in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      nmi - NMItem object which represents the Node Manager managing the node that was removed. The Vector associated with nodeManager will contain only the node(s) that was(were) removed.
      See Also:
    • nodeChanged

      public void nodeChanged(com.nt.udc.admin.NMItem nmi)
      Description copied from interface: AcctEventListener
      Indicates that the properties of a Node have changed.
      Specified by:
      nodeChanged in interface AcctEventListener
      Overrides:
      nodeChanged in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      nmi - NMItem object which represents the Node Manager whose node changed. The Vector associated with nodeManager will contain the node that changed.
      See Also:
    • beforeShowing

      public boolean beforeShowing()
      Description copied from class: com.nt.udc.gui.OSAAdminBasePanel
      Called before panel is displayed in the Admin GUI. That is, when the user selects the desired panel, but before it is actually displayed.
      This is useful for performing any updates that may need to be made (for example, a read from the Admin Server) to the data in the panel before it is actually displayed.
      Specified by:
      beforeShowing in interface com.nt.udc.gui.OSAAdminPanelInterface
      Overrides:
      beforeShowing in class com.nt.udc.gui.OSAAdminBasePanel
      Returns:
      false, if the panel should not be displayed.
    • adminServerChanged

      public void adminServerChanged(StatusMessage sm)
      Indicates that status of the Admin Server has changed.
      Specified by:
      adminServerChanged in interface AcctEventListener
      Overrides:
      adminServerChanged in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      sm - A StatusMessage object containing the new status of the Admin Server.
      See Also:
    • systemUpdate

      public void systemUpdate(SystemModel model)
      Indicates that the system has substantially changed.
      Specified by:
      systemUpdate in interface AcctEventListener
      Overrides:
      systemUpdate in class com.nt.udc.gui.OSAAdminBasePanel
      Parameters:
      model - SystemModel representing the current state of the system.
      See Also: