arlut.csd.ganymede
Class GASHAdminFrame

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Window
                    |
                    +--java.awt.Frame
                          |
                          +--javax.swing.JFrame
                                |
                                +--arlut.csd.ganymede.GASHAdminFrame
All Implemented Interfaces:
javax.accessibility.Accessible, java.awt.event.ActionListener, java.util.EventListener, java.awt.image.ImageObserver, java.awt.MenuContainer, javax.swing.RootPaneContainer, rowSelectCallback, java.io.Serializable, javax.swing.WindowConstants

class GASHAdminFrame
extends javax.swing.JFrame
implements java.awt.event.ActionListener, rowSelectCallback

GASHAdminFrame is the main class for the Ganymede admin console. The GASHAdminFrame constructor is the first piece of common code that is executed both in an applet context and as a stand-alone app.

See Also:
Serialized Form

Inner classes inherited from class javax.swing.JFrame
javax.swing.JFrame.AccessibleJFrame
 
Inner classes inherited from class java.awt.Frame
java.awt.Frame.AccessibleAWTFrame
 
Inner classes inherited from class java.awt.Window
java.awt.Window.AccessibleAWTWindow
 
Inner classes inherited from class java.awt.Container
java.awt.Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
java.awt.Component.AccessibleAWTComponent, java.awt.Component.AWTTreeLock
 
Field Summary
(package private)  messageDialog about
           
(package private)  java.lang.String aboutMessage
           
(package private) static iAdmin admin
           
(package private)  javax.swing.JTextField adminField
           
(package private)  javax.swing.JLabel adminLabel
           
(package private)  GASHAdmin adminPanel
           
(package private)  javax.swing.JTextField checkedOutField
           
(package private)  javax.swing.JLabel checkedOutLabel
           
(package private)  javax.swing.JButton clearLogButton
           
(package private)  int[] colWidths
           
(package private)  javax.swing.JMenu controlMenu
           
(package private) static boolean debug
           
(package private) static java.lang.String debugFilename
           
(package private)  javax.swing.JMenu debugMenu
           
(package private)  javax.swing.JMenuItem disableTaskMI
           
(package private)  StringDialog dumpDialog
           
(package private)  javax.swing.JTextField dumpField
           
(package private)  javax.swing.JLabel dumpLabel
           
(package private)  javax.swing.JMenuItem dumpMI
           
(package private)  javax.swing.JMenuItem enableTaskMI
           
(package private)  javax.swing.JMenuItem forceBuildMI
           
(package private)  java.lang.String[] headers
           
(package private)  javax.swing.JMenu helpMenu
           
(package private)  javax.swing.JTextField hostField
           
(package private)  javax.swing.JLabel hostLabel
           
(package private)  javax.swing.JTextField journalField
           
(package private)  javax.swing.JLabel journalLabel
           
(package private)  javax.swing.JMenuItem killAllMI
           
(package private)  javax.swing.JMenuItem killUserMI
           
(package private)  java.lang.String killVictim
           
(package private)  javax.swing.JTextField locksField
           
(package private)  javax.swing.JLabel locksLabel
           
(package private)  javax.swing.JMenuBar mbar
           
(package private)  javax.swing.JTextField memField
           
(package private)  javax.swing.JLabel memLabel
           
(package private)  javax.swing.JPopupMenu popMenu
           
(package private)  java.awt.Image question
           
(package private)  javax.swing.JMenuItem quitMI
           
(package private) static java.lang.String release_date
           
(package private) static java.lang.String release_name
           
(package private) static java.lang.String release_number
           
(package private)  javax.swing.JMenuItem runEmbeddedSweepMI
           
(package private)  javax.swing.JMenuItem runEmbeddedTestMI
           
(package private)  javax.swing.JMenuItem runInvidSweepMI
           
(package private)  javax.swing.JMenuItem runInvidTestMI
           
(package private)  javax.swing.JMenuItem runNowMI
           
(package private)  javax.swing.JMenuItem schemaMI
           
(package private)  javax.swing.JMenuItem showAboutMI
           
(package private)  consoleShutdownDialog shutdownDialog
           
(package private)  javax.swing.JMenuItem shutdownMI
           
(package private)  javax.swing.JTextField startField
           
(package private)  javax.swing.JLabel startLabel
           
(package private)  javax.swing.JTextField stateField
           
(package private)  javax.swing.JLabel stateLabel
           
(package private)  javax.swing.JTextArea statusArea
           
(package private)  javax.swing.JMenuItem stopTaskMI
           
(package private)  rowTable table
           
(package private)  javax.swing.JTabbedPane tabPane
           
(package private)  int[] taskColWidths
           
(package private)  java.lang.String[] taskHeaders
           
(package private)  javax.swing.JPopupMenu taskPopMenu
           
(package private)  rowTable taskTable
           
(package private)  javax.swing.JPanel topPanel
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, defaultCloseOperation, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
base, CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, frameSerializedDataVersion, HAND_CURSOR, icon, ICONIFIED, mbManagement, menuBar, MOVE_CURSOR, N_RESIZE_CURSOR, nameCounter, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, ownedWindows, resizable, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, serialVersionUID, state, SW_RESIZE_CURSOR, TEXT_CURSOR, title, W_RESIZE_CURSOR, WAIT_CURSOR, weakThis
 
Fields inherited from class java.awt.Window
active, dbg, focusMgr, inputContext, inputContextLock, OPENED, ownedWindowList, warningString, windowListener, windowSerializedDataVersion
 
Fields inherited from class java.awt.Container
component, containerListener, containerSerializedDataVersion, dispatcher, layoutMgr, listeningBoundsChildren, listeningChildren, maxSize, ncomponents, printing, printingThreads
 
Fields inherited from class java.awt.Component
actionListenerK, adjustmentListenerK, appContext, background, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, changeSupport, componentListener, componentListenerK, componentOrientation, componentSerializedDataVersion, containerListenerK, cursor, dropTarget, enabled, eventMask, focusListener, focusListenerK, font, foreground, graphicsConfig, hasFocus, height, hierarchyBoundsListener, hierarchyBoundsListenerK, hierarchyListener, hierarchyListenerK, incRate, inputMethodListener, inputMethodListenerK, isInc, isPacked, itemListenerK, keyListener, keyListenerK, LEFT_ALIGNMENT, locale, LOCK, metrics, minSize, mouseListener, mouseListenerK, mouseMotionListener, mouseMotionListenerK, name, nameExplicitlySet, newEventsOnly, ownedWindowK, parent, peer, peerFont, popups, prefSize, privateKey, RIGHT_ALIGNMENT, textListenerK, TOP_ALIGNMENT, valid, visible, width, windowClosingException, windowListenerK, x, y
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GASHAdminFrame(java.lang.String title, GASHAdmin adminPanel)
          Constructor
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent event)
           
(package private)  void disconnect()
          local convenience method to handle disconnecting the admin console
private  void exceptionHandler(java.lang.Throwable ex)
           
protected  void processWindowEvent(java.awt.event.WindowEvent e)
          Method to handle properly logging out if the main admin frame is closed by the window system.
 void rowDoubleSelected(java.lang.Object key)
          Called when a row is double selected (double clicked) in rowTable
 void rowMenuPerformed(java.lang.Object key, java.awt.event.ActionEvent e)
          Called when a row is unselected in rowTable
 void rowSelected(java.lang.Object key)
          Called when a row is selected in rowTable
 void rowUnSelected(java.lang.Object key, boolean finalState)
          Called when a row is unselected in rowTable
 void showAboutMessage()
          Shows the About...
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, createRootPaneException, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, processKeyEvent, remove, setContentPane, setDefaultCloseOperation, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
, addNotify, addToFrameList, constructComponentName, finalize, getCursorType, getFrames, getIconImage, getMenuBar, getState, getTitle, initIDs, isResizable, postProcessKeyEvent, readObject, remove, removeFromFrameList, removeNotify, setCursor, setIconImage, setMenuBar, setResizable, setState, setTitle, writeObject
 
Methods inherited from class java.awt.Window
addOwnedWindow, addWindowListener, adjustListeningChildren, applyResourceBundle, applyResourceBundle, connectOwnedWindow, dispatchEventImpl, dispose, eventEnabled, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, hide, isActive, isShowing, nextFocus, ownedInit, pack, postEvent, postWindowEvent, preProcessKeyEvent, processEvent, removeOwnedWindow, removeWindowListener, resetGC, setCursor, setFocusOwner, setWarningString, show, toBack, toFront, transferFocus
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyOrientation, checkGD, countComponents, createChildHierarchyEvents, createHierarchyEvents, deliverEvent, dispatchEventToSelf, doLayout, findComponentAt, findComponentAt, findComponentAt, getAccessibleAt, getAccessibleChild, getAccessibleChildrenCount, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents_NoClientCode, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getMouseEventTarget, getPreferredSize, getWindow, insets, invalidate, invalidateTree, isAncestorOf, layout, lightweightPaint, lightweightPrint, list, list, locate, minimumSize, numListening, paint, paintComponents, paintHeavyweightComponents, postsOldMouseEvents, preferredSize, print, printComponents, printHeavyweightComponents, processContainerEvent, proxyEnableEvents, proxyRequestFocus, remove, removeAll, removeContainerListener, setFont, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, areInputMethodsEnabled, bounds, checkImage, checkImage, checkWindowClosingException, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getAccessibleIndexInParent, getAccessibleStateSet, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont_NoClientCode, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen_NoTreeLock, getLocationOnScreen, getName, getNativeContainer, getParent_NoClientCode, getParent, getPeer, getSize, getSize, getToolkitImpl, getTreeLock, getWidth, getWindowForObject, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isEnabledImpl, isFocusTraversable, isLightweight, isOpaque, isRecursivelyVisible, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

admin

static iAdmin admin

debug

static final boolean debug

debugFilename

static java.lang.String debugFilename

release_name

static java.lang.String release_name

release_date

static java.lang.String release_date

release_number

static java.lang.String release_number

question

java.awt.Image question

mbar

javax.swing.JMenuBar mbar

controlMenu

javax.swing.JMenu controlMenu

forceBuildMI

javax.swing.JMenuItem forceBuildMI

quitMI

javax.swing.JMenuItem quitMI

dumpMI

javax.swing.JMenuItem dumpMI

killAllMI

javax.swing.JMenuItem killAllMI

schemaMI

javax.swing.JMenuItem schemaMI

shutdownMI

javax.swing.JMenuItem shutdownMI

debugMenu

javax.swing.JMenu debugMenu

runInvidTestMI

javax.swing.JMenuItem runInvidTestMI

runInvidSweepMI

javax.swing.JMenuItem runInvidSweepMI

runEmbeddedTestMI

javax.swing.JMenuItem runEmbeddedTestMI

runEmbeddedSweepMI

javax.swing.JMenuItem runEmbeddedSweepMI

helpMenu

javax.swing.JMenu helpMenu

showAboutMI

javax.swing.JMenuItem showAboutMI

popMenu

javax.swing.JPopupMenu popMenu

killUserMI

javax.swing.JMenuItem killUserMI

topPanel

javax.swing.JPanel topPanel

tabPane

javax.swing.JTabbedPane tabPane

dumpDialog

StringDialog dumpDialog

shutdownDialog

consoleShutdownDialog shutdownDialog

killVictim

java.lang.String killVictim

hostLabel

javax.swing.JLabel hostLabel

hostField

javax.swing.JTextField hostField

adminLabel

javax.swing.JLabel adminLabel

adminField

javax.swing.JTextField adminField

stateLabel

javax.swing.JLabel stateLabel

stateField

javax.swing.JTextField stateField

startLabel

javax.swing.JLabel startLabel

startField

javax.swing.JTextField startField

dumpLabel

javax.swing.JLabel dumpLabel

dumpField

javax.swing.JTextField dumpField

journalLabel

javax.swing.JLabel journalLabel

journalField

javax.swing.JTextField journalField

checkedOutLabel

javax.swing.JLabel checkedOutLabel

checkedOutField

javax.swing.JTextField checkedOutField

locksLabel

javax.swing.JLabel locksLabel

locksField

javax.swing.JTextField locksField

memLabel

javax.swing.JLabel memLabel

memField

javax.swing.JTextField memField

clearLogButton

javax.swing.JButton clearLogButton

statusArea

javax.swing.JTextArea statusArea

table

rowTable table

headers

java.lang.String[] headers

colWidths

int[] colWidths

taskTable

rowTable taskTable

taskHeaders

java.lang.String[] taskHeaders

taskColWidths

int[] taskColWidths

taskPopMenu

javax.swing.JPopupMenu taskPopMenu

runNowMI

javax.swing.JMenuItem runNowMI

stopTaskMI

javax.swing.JMenuItem stopTaskMI

disableTaskMI

javax.swing.JMenuItem disableTaskMI

enableTaskMI

javax.swing.JMenuItem enableTaskMI

adminPanel

GASHAdmin adminPanel

aboutMessage

java.lang.String aboutMessage

about

messageDialog about
Constructor Detail

GASHAdminFrame

public GASHAdminFrame(java.lang.String title,
                      GASHAdmin adminPanel)
Constructor
Method Detail

disconnect

void disconnect()
local convenience method to handle disconnecting the admin console

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent event)
Specified by:
actionPerformed in interface java.awt.event.ActionListener

showAboutMessage

public void showAboutMessage()
Shows the About... dialog.

rowSelected

public void rowSelected(java.lang.Object key)
Description copied from interface: rowSelectCallback
Called when a row is selected in rowTable
Specified by:
rowSelected in interface rowSelectCallback
Following copied from interface: arlut.csd.JTable.rowSelectCallback
Parameters:
key - Hash key for the selected row

rowDoubleSelected

public void rowDoubleSelected(java.lang.Object key)
Description copied from interface: rowSelectCallback
Called when a row is double selected (double clicked) in rowTable
Specified by:
rowDoubleSelected in interface rowSelectCallback
Following copied from interface: arlut.csd.JTable.rowSelectCallback
Parameters:
key - Hash key for the selected row

rowUnSelected

public void rowUnSelected(java.lang.Object key,
                          boolean finalState)
Description copied from interface: rowSelectCallback
Called when a row is unselected in rowTable
Specified by:
rowUnSelected in interface rowSelectCallback
Following copied from interface: arlut.csd.JTable.rowSelectCallback
Parameters:
key - Hash key for the unselected row
endSelected - false if the callback should assume that the final state of the system due to the user's present action will have no row selected

rowMenuPerformed

public void rowMenuPerformed(java.lang.Object key,
                             java.awt.event.ActionEvent e)
Description copied from interface: rowSelectCallback
Called when a row is unselected in rowTable
Specified by:
rowMenuPerformed in interface rowSelectCallback
Following copied from interface: arlut.csd.JTable.rowSelectCallback
Parameters:
key - Hash key for the row on which the popup menu item was performed
event - the original ActionEvent from the popupmenu. See event.getSource() to identify the menu item performed.

processWindowEvent

protected void processWindowEvent(java.awt.event.WindowEvent e)

Method to handle properly logging out if the main admin frame is closed by the window system.

We do an enableEvents(AWT.WINDOW_EVENT_MASK) in the GASHAdminFrame constructor to activate this method.

Overrides:
processWindowEvent in class javax.swing.JFrame

exceptionHandler

private void exceptionHandler(java.lang.Throwable ex)