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.


Field Summary
(package private)  arlut.csd.JDialog.messageDialog about
           
(package private)  java.lang.String aboutMessage
           
(package private) static arlut.csd.ganymede.iAdmin admin
           
(package private)  javax.swing.JTextField adminField
           
(package private)  javax.swing.JLabel adminLabel
           
(package private)  arlut.csd.ganymede.GASHAdmin adminPanel
           
(package private)  javax.swing.JTextField checkedOutField
           
(package private)  javax.swing.JLabel checkedOutLabel
           
(package private)  javax.swing.JMenuItem clearLogMI
           
(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)  arlut.csd.JDialog.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)  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)  arlut.csd.ganymede.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)  arlut.csd.JTable.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)  arlut.csd.JTable.rowTable taskTable
           
(package private)  javax.swing.JPanel topPanel
           
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Window
 
Fields inherited from class java.awt.Container
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
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, arlut.csd.ganymede.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, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isFocusableWindow, isFocusCycleRoot, isFocused, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, transferFocusBackward, 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, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, 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, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Field Detail

admin

static arlut.csd.ganymede.iAdmin admin

debug

static final boolean debug
See Also:
Constant Field Values

debugFilename

static java.lang.String debugFilename

question

java.awt.Image question

mbar

javax.swing.JMenuBar mbar

controlMenu

javax.swing.JMenu controlMenu

forceBuildMI

javax.swing.JMenuItem forceBuildMI

clearLogMI

javax.swing.JMenuItem clearLogMI

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

arlut.csd.JDialog.StringDialog dumpDialog

shutdownDialog

arlut.csd.ganymede.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

statusArea

javax.swing.JTextArea statusArea

table

arlut.csd.JTable.rowTable table

headers

java.lang.String[] headers

colWidths

int[] colWidths

taskTable

arlut.csd.JTable.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

arlut.csd.ganymede.GASHAdmin adminPanel

aboutMessage

java.lang.String aboutMessage

about

arlut.csd.JDialog.messageDialog about
Constructor Detail

GASHAdminFrame

public GASHAdminFrame(java.lang.String title,
                      arlut.csd.ganymede.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
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
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
Parameters:
key - Hash key for the unselected row
finalState - 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
Parameters:
key - Hash key for the row on which the popup menu item was performed
e - 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)