Package com.nt.udc.admin.client.gui
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class javax.swing.JPanel
JPanel.AccessibleJPanel
Nested classes/interfaces inherited from class javax.swing.JComponent
JComponent.AccessibleJComponent
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
protected boolean
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.nt.udc.gui.SettingsListDetailsPanel
detailsPanel, listPanel, settingsPanel
Fields inherited from class com.nt.udc.gui.OSAAdminBasePanel
panelIsDirty, panelIsShowing, scrollReset
Fields inherited from class javax.swing.JComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Fields inherited from class java.awt.Component
accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
actionPerformed
(ActionEvent event) void
void
Indicates that status of the Admin Server has changed.void
Called after panel is displayed in the Admin GUI.boolean
Called before panel is displayed in the Admin GUI.void
changedUpdate
(DocumentEvent event) protected void
int
void
insertUpdate
(DocumentEvent event) void
itemStateChanged
(ItemEvent event) void
nodeChanged
(com.nt.udc.admin.NMItem nmi) Indicates that the properties of a Node have changed.void
nodeManagerChanged
(com.nt.udc.admin.NMItem nmItem) Indicates that the properties of a Node Manager have changed.void
nodeManagersAdded
(Vector nmList) Indicates that one or more NodeManagers were added.void
nodeManagersRemoved
(Vector nmList) Indicates that one or more NodeManagers were removed.void
nodePerformanceUpdate
(Vector perfs) Node performance data has been updated.void
nodesAdded
(com.nt.udc.admin.NMItem nmi) Indicates that a Node has been added to a particular Node Manager.void
nodesRemoved
(com.nt.udc.admin.NMItem nmi) Indicates that a Node has been removed from a particular Node Manager.protected int
printSummary
(Graphics2D g2, PageFormat pf, int pi, int ppi) Subclasses should override this method to print anything useful.void
removeUpdate
(DocumentEvent event) void
setSelectedNodeIDs
(Vector nodeIDVector) void
systemUpdate
(SystemModel model) Indicates that the system has substantially changed.void
void
void
Methods inherited from class com.nt.udc.gui.SettingsListDetailsPanel
getDetailsPanel, getListPanel, getSettingsPanel
Methods inherited from class com.nt.udc.gui.OSAAdminBasePanel
afterHiding, beforeClosing, beforeHiding, fileChanged, printStringBuffer, setPanelBackgroundRecursively, setPanelBackgroundRecursively, setPanelDirty
Methods inherited from class javax.swing.JPanel
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
Methods inherited from class javax.swing.JComponent
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setMixingCutoutShape, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.nt.udc.util.AcctEventListener
fileChanged
-
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
-
getCurrentPort
public int getCurrentPort() -
getCurrentRealIPAddress
-
afterShowing
public void afterShowing()Description copied from class:com.nt.udc.gui.OSAAdminBasePanel
Called after panel is displayed in the Admin GUI. SetspanelIsShowing
to true.- Specified by:
afterShowing
in interfacecom.nt.udc.gui.OSAAdminPanelInterface
- Overrides:
afterShowing
in classcom.nt.udc.gui.OSAAdminBasePanel
-
addGUIComponents
public void addGUIComponents()- Overrides:
addGUIComponents
in classcom.nt.udc.gui.SettingsListDetailsPanel
-
valueChanged
- Specified by:
valueChanged
in interfaceListSelectionListener
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
itemStateChanged
- Specified by:
itemStateChanged
in interfaceItemListener
-
updateNodeHostList
public void updateNodeHostList() -
fetchNodeHostInfo
protected void fetchNodeHostInfo() -
updateNodeList
public void updateNodeList() -
insertUpdate
- Specified by:
insertUpdate
in interfaceDocumentListener
-
removeUpdate
- Specified by:
removeUpdate
in interfaceDocumentListener
-
changedUpdate
- Specified by:
changedUpdate
in interfaceDocumentListener
-
getSelectedNodeIDs
-
setSelectedNodeIDs
-
printSummary
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 classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
g2
- the context into which the page is drawnpf
- the size and orientation of the page being drawnpi
- the zero based index of the first page to be drawnppi
- the zero based index of the last page to be drawn- Returns:
Printable.PAGE_EXISTS
if the page is rendered successfully, orPrintable.NO_SUCH_PAGE
ifpi
orppi
specifies a non-existent page.
-
nodeManagersAdded
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 interfaceAcctEventListener
- Overrides:
nodeManagersAdded
in classcom.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
Indicates that one or more NodeManagers were removed.- Specified by:
nodeManagersRemoved
in interfaceAcctEventListener
- Overrides:
nodeManagersRemoved
in classcom.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 interfaceAcctEventListener
- Overrides:
nodeManagerChanged
in classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
nmItem
- NMItem object representing the Node Manager that changed.- See Also:
-
nodePerformanceUpdate
Node performance data has been updated.- Specified by:
nodePerformanceUpdate
in interfaceAcctEventListener
- Overrides:
nodePerformanceUpdate
in classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
perfs
- Vector of node performance objects.- See Also:
-
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 interfaceAcctEventListener
- Overrides:
nodesAdded
in classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
nmi
- NMItem object which represents the Node Manager managing the node that was added. The Vector associated withnodeManager
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 interfaceAcctEventListener
- Overrides:
nodesRemoved
in classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
nmi
- NMItem object which represents the Node Manager managing the node that was removed. The Vector associated withnodeManager
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 interfaceAcctEventListener
- Overrides:
nodeChanged
in classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
nmi
- NMItem object which represents the Node Manager whose node changed. The Vector associated withnodeManager
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 interfacecom.nt.udc.gui.OSAAdminPanelInterface
- Overrides:
beforeShowing
in classcom.nt.udc.gui.OSAAdminBasePanel
- Returns:
false
, if the panel should not be displayed.
-
adminServerChanged
Indicates that status of the Admin Server has changed.- Specified by:
adminServerChanged
in interfaceAcctEventListener
- Overrides:
adminServerChanged
in classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
sm
- A StatusMessage object containing the new status of the Admin Server.- See Also:
-
systemUpdate
Indicates that the system has substantially changed.- Specified by:
systemUpdate
in interfaceAcctEventListener
- Overrides:
systemUpdate
in classcom.nt.udc.gui.OSAAdminBasePanel
- Parameters:
model
- SystemModel representing the current state of the system.- See Also:
-