|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container java.awt.Window java.awt.Frame javax.swing.JFrame org.objectweb.cjdbc.console.gui.CjdbcGui
This class is the main class for the graphical version of the C-JDBC administration console.
Nested Class Summary |
Nested classes inherited from class javax.swing.JFrame |
javax.swing.JFrame.AccessibleJFrame |
Nested classes inherited from class java.awt.Frame |
java.awt.Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
java.awt.Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
(package private) javax.swing.JInternalFrame |
attributeFrame
|
(package private) javax.swing.JScrollPane |
attributePane
|
(package private) javax.swing.JTable |
attributeTable
|
(package private) javax.swing.JPanel |
backendButtons
Panels for the backend panel |
(package private) javax.swing.JPanel |
backendIcons
Panels for the backend panel |
(package private) java.util.Hashtable |
backendList
List of backends [backendName] : [BackendObject] |
(package private) javax.swing.JPanel |
backendPanel
Backend pane |
(package private) java.util.Hashtable |
backendsState
Hastable of backends states: [StateName] / [Panel] |
(package private) BackendTransferListener |
backendTransferListener
Backend transfer listener used for drag and drop |
(package private) javax.swing.JTabbedPane |
centerPane
The center Pane |
(package private) javax.swing.JFileChooser |
configurationFileChooser
the file chooser for configuration files |
(package private) ControllerTransferListener |
configurationFileTransferListener
Configuration File transfer listener used for drag and drop |
(package private) java.util.Hashtable |
controllerList
List of controllers [controllerName] : [ControllerObject] |
(package private) javax.swing.JPanel |
controllerListPanel
Panel for controller list |
(package private) ControllerListPopUpMenu |
controllerListPopUpMenu
The controller list mouse listener |
(package private) java.util.Hashtable |
controllerMBeans
Controller MBeans [URL] / [ControllerJmxClient] |
(package private) java.lang.Object |
credentials
|
(package private) RmiJmxClient |
currentJmxClient
|
(package private) java.util.Hashtable |
databaseList
List of databases [databaseName] : [DatabaseObject] |
(package private) java.util.Hashtable |
databaseMBeans
Virtual database MBeans [DatabaseName] / [VirtualDatabaseJmxClient] |
(package private) javax.swing.JScrollPane |
debugScroll
Scroll panel for selection in center pane |
(package private) java.lang.String |
debugText
The texts of the debug,logging panel |
(package private) javax.swing.JTextArea |
debugTextPane
The debug panel itself |
(package private) javax.swing.JTextArea |
debugTraceTextPane
The panel for exceptions tracing |
(package private) GuiExceptionFrame |
exceptionFrame
Exception frame for reporting errors from the server |
(package private) javax.swing.JPanel |
fileListPanel
The list containing the xml file NAMES, no paths |
(package private) javax.swing.JScrollPane |
fileScroll
Scroll panels from the left pane |
(package private) CjdbcGuiListener |
guiActionListener
GuiAction listener |
(package private) GuiSession |
guiSession
Stored values for session |
(package private) javax.swing.JScrollPane |
helpScroll
Scroll panel for selection in center pane |
(package private) javax.swing.JScrollPane |
infoScroll
Scroll panel for selection in center pane |
(package private) javax.swing.JTextPane |
infoTextPane
The log panel itself |
(package private) GuiInputBackupFrame |
inputBackupFrame
Select backup frame |
(package private) javax.swing.JFileChooser |
jarFileChooser
the file chooser for jar files |
(package private) java.util.Hashtable |
jmxClients
List of jmx clients [url] : [RmiJmxClient] |
(package private) javax.swing.JDesktopPane |
jmxPanel
|
(package private) javax.swing.JScrollPane |
jmxScroll
|
(package private) javax.swing.JScrollPane |
logConfigScroll
Scroll panel for selection in center pane |
(package private) javax.swing.JTextPane |
logConfigTextPane
The panel for the log4j configuration |
(package private) javax.swing.JScrollPane |
loggingScroll
Scroll panel for selection in center pane |
(package private) java.lang.String |
loggingText
The texts of the debug,logging panel |
(package private) javax.swing.JTextArea |
loggingTextPane
The debug panel itself |
(package private) GuiLoggingThread |
logginThread
The thread that connects to the log4j server on a host |
(package private) GuiVirtualDatabaseLoginFrame |
loginFrame
Login frame |
(package private) javax.swing.JInternalFrame |
mbeanFrame
|
(package private) JNewList |
mbeanList
|
(package private) NewBackendFrame |
newBackendFrame
New Backend frame object |
(package private) GuiNewControllerFrame |
newControllerFrame
New controller frame objects |
(package private) javax.swing.JInternalFrame |
operationFrame
|
(package private) javax.swing.JScrollPane |
operationPane
|
(package private) javax.swing.JTable |
operationTable
|
(package private) GuiParsingThread |
parsingThread
The thread that parse the xml panel |
(package private) javax.swing.JFileChooser |
saveFileChooser
the save file chooser for files |
(package private) GuiSelectCheckpointFrame |
selectCheckpointFrame
Select checkpoint frame |
(package private) java.lang.String |
selectedController
|
(package private) java.lang.String |
selectedDatabase
|
(package private) GuiSelectShutdownFrame |
selectShutdownFrame
Select shutdown frame |
(package private) JTextAreaWriter |
traceWriter
Writer to the trace exception area in the backend panel |
(package private) javax.swing.JPanel |
vdbListPanel
The panel for the list of databases |
(package private) javax.swing.JScrollPane |
xmlScroll
Scroll panel for selection in center pane |
(package private) javax.swing.JTextPane |
xmlTextPane
The xml editor panel |
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 | |
CjdbcGui()
Creates a new CjdbcGui.java object |
Method Summary | |
private void |
actionAddObjectToGridLayout(javax.swing.JPanel panel,
javax.swing.JButton button)
|
void |
actionChangeBackendState(BackendObject bo,
java.lang.String newState)
Change the state of a backend object Checks the new state is valid, and then display the backend object into the new panel. |
private java.lang.String |
actionConvertState(java.lang.String jmxState)
Converts a JMX state to a Gui constants values |
private boolean |
actionDisplayConfirmFrame(java.lang.String message)
Display frame to confirm action |
private java.lang.String |
actionDisplayInputBackupFrame(java.lang.String database,
java.lang.String backend)
Display the dump input frame |
private java.lang.String |
actionDisplaySelectCheckpointFrame(java.lang.String database)
|
private ControllerMBean |
actionGetControllerBean(java.lang.String controllerName)
|
private VirtualDatabaseMBean |
actionGetDatabaseBean(java.lang.String databaseName)
|
void |
actionLoadBackend(java.lang.String database,
java.lang.String backendName,
java.lang.String controllerName,
boolean enable)
Create a new database backend object and load its state |
void |
actionLoadBackendActionButton(java.lang.String name)
Load a panel for the backends |
void |
actionLoadBackendPane(boolean recoveryEnabled)
Load standard version for the panel |
private java.util.ArrayList |
actionLoadCheckpointNames(java.lang.String databaseName)
|
private void |
actionLoadController(java.lang.String name)
Load a new controller, the graphic object, the connection state and add it to the controller pane list. |
private void |
actionLoadDatabase(java.lang.String databaseName,
java.lang.String controllerName)
|
private void |
actionLoadDatabaseList(java.lang.String controllerName)
|
(package private) void |
actionLoadXmlList()
|
(package private) java.lang.String |
actionLoadXmlText(java.io.File filePath)
|
private void |
actionRefreshBackendState(BackendObject bob)
|
private java.lang.String |
actionReplaceInConfiguration(java.lang.String logConfiguration,
java.lang.String oldMode,
java.lang.String newMode)
|
void |
actionSetBackendState(java.lang.String backendName)
Set the state of the given backend. |
void |
actionSetBackendState(java.lang.String backendName,
java.lang.String newState)
Change panel of backend |
private void |
actionStartControllerLoggingThread(java.lang.String controllerName)
|
(package private) void |
actionUnloadBackends(java.lang.String controller)
|
void |
appendDebugText(java.lang.String text)
Append debug text to the debug panel |
void |
appendDebugText(java.lang.String text,
java.lang.Exception e)
Same as above and displays the stack trace ... |
private java.lang.String |
generateCheckpoint(java.lang.String backendName)
Generate a checkpoint name from the given backend and the current date. |
void |
getAttributeChangeDialog(javax.management.ObjectName name,
javax.management.MBeanAttributeInfo info)
Opens a window t ochange an attribute |
java.util.Hashtable |
getBackendList()
Returns the backendList value. |
RmiJmxClient |
getCurrentJmxClient()
Returns the currentJmxClient value. |
CjdbcGuiListener |
getGuiActionListener()
Get the action listener for the gui |
GuiSession |
getGuiSession()
Returns the guiSession value. |
java.util.Hashtable |
getJmxClients()
Returns the jmxClients value. |
void |
getOperationCallDialog(javax.management.ObjectName name,
javax.management.MBeanOperationInfo info)
Opens a window to perform a jmx operation |
java.lang.String |
getSelectedController()
Returns the selectedController value. |
private boolean |
isDropInSameColumn(java.lang.String actionName,
java.lang.String backendName)
Check if the target column and the current state are the same |
void |
paintBackendPane()
Validate and Repaint the backend split |
(package private) void |
paintConfigurationPane()
|
(package private) void |
paintControllerPane()
Paint the controller panel |
(package private) void |
paintDatabasePanel()
|
void |
publicActionAddController()
add a Controller to the list. |
void |
publicActionAddControllerView()
View the controller frame to add a new controller reference to the list |
void |
publicActionAddXmlFile()
Show the file chooser to add an xml file to the configuration list |
void |
publicActionBackupBackendPrompt(BackendObject bob)
Execute a backup of the given backend |
void |
publicActionCleanDebugBuffer()
Clean the debug buffer |
void |
publicActioncleanLoggingPane()
Clean the content of the logging text pane and repaint |
void |
publicActionControllerLogConfiguration(java.lang.String controllerName)
Load the controller log4j configuration file in the info buffer |
void |
publicActionControllerRemove(java.lang.String controllerName)
Removes a controller from the gui |
void |
publicActionControllerReport(java.lang.String controllerName)
Get a report for the given controller |
void |
publicActionCreateBackendExecute()
Create the new backend by sending the jmx command |
void |
publicActionDatabaseDisableAll(java.lang.String databaseName)
actionDatabaseDisableAll definition. |
void |
publicActionDatabaseEnableAll(java.lang.String databaseName)
actionDatabaseEnableAll definition. |
void |
publicActionDeleteDump(java.lang.String databaseName,
DumpFileObject dump)
Delete a dump of a database from the virtual database |
void |
publicActionDisplayShutdownFrame(DatabaseObject database)
Display the shutdown dialog and then shutdown the database with the corresponding level |
void |
publicActionExecuteBackendDrop(javax.swing.JButton target,
java.lang.String backendName)
Execute the backend drop action with this gui |
void |
publicActionExecuteBackendDrop(javax.swing.JPanel panel,
java.lang.String backendName)
Execute the backend drop action with this gui |
void |
publicActionExecuteBackendDrop(java.lang.String actionName,
java.lang.String backendName)
Execute the backend drop action with this gui |
void |
publicActionExecuteControllerDrop(java.lang.String filePath,
java.lang.String controllerName)
Load a configuration file on a controller |
void |
publicActionExecuteTransfer(java.lang.String backendName,
java.lang.String controllerName)
Execute a backend transfer from one controller to an other one |
void |
publicActionGetControllerInfo(java.lang.String controllerName)
GetInfo for the given controller |
void |
publicActionLoadAuthenticatedDatabase()
Load the virtual database after authentication. |
void |
publicActionLoadBackendsList(java.lang.String databaseName)
Load the list of backends for the given database |
void |
publicActionLoadControllerList()
Load the controller list. |
void |
publicActionLoadDriver(java.lang.String controllerName)
Add a new driver to the controller. |
void |
publicActionLoadDumpList(java.lang.String databaseName)
Loads the graphic dump list for this databaser |
void |
publicActionLoadXmlController(java.lang.String connectUrl)
Load the xml for the given controller Gives the focus to the xml panel with the new content |
void |
publicActionLoadXmlDatabase(java.lang.String databaseName)
Load the xml configuration of the given database and display the xml buffer |
void |
publicActionNewBackendPrompt(BackendObject bob)
Open the frame to fill in details to create a new backend |
void |
publicActionQuit()
Quit the GUI |
void |
publicActionRefreshCursorShape()
Set the cursor to be a hand |
void |
publicActionRefreshLogs(java.lang.String controllerName)
Fetch the logs from the controller |
void |
publicActionRefreshMBeanAttributes(javax.management.ObjectName mbean)
Refresh MBean attributes. |
void |
publicActionRefreshMBeanMethods(javax.management.ObjectName mbean)
Refresh MBean methods. |
void |
publicActionRefreshMBeans()
Refresh the list of mbeans |
void |
publicActionRemoveBackend(BackendObject bo)
Remove a backend from the backend list, and from the controller |
void |
publicActionRemoveBackendFromGui(java.lang.String backendName)
Remove the backend graphic object from the gui |
void |
publicActionRemoveBackendFromGui(java.lang.String backendName,
java.lang.String controller)
Performs checks before calling |
void |
publicActionRemoveConfigurationFile(ConfigurationFileObject cfo)
Remove a configuration file from the list |
void |
publicActionRestoreBackend(java.lang.String backendName,
java.lang.String dumpName)
Restore a backend from a dump file |
void |
publicActionSaveConfigurationFile()
saveConfigurationFile definition. |
void |
publicActionSelectNewConfigurationFile(java.lang.String file)
Select a new configuration load the content of the xml file into the xmlTextPane panel |
void |
publicActionSelectNewController(java.lang.String connectUrl)
Action when a new controller has been selected |
void |
publicActionSelectNewDatabase(java.lang.String value)
Select a new database action |
void |
publicActionSetCheckpoint(BackendObject bo)
Set the checkpoint of a backend |
void |
publicActionSetLogConfigurationDebug(java.lang.String controllerName,
java.lang.String logConfiguration)
Change the log4j configuration to Debug mode for all loggers |
void |
publicActionSetLogConfigurationInfo(java.lang.String controllerName,
java.lang.String logConfiguration)
Change the log4j configuration to Info mode for all loggers |
void |
publicActionSetLogConfigurationServer(boolean enableServer,
java.lang.String controllerName,
java.lang.String logConfiguration)
Add/remove log4j server output |
void |
publicActionShutdownController(java.lang.String controllerName)
Shutdown the given controller |
void |
publicActionShutdownDatabase(DatabaseObject dob,
int shutdownLevel)
Send a shutdown command to the corresponding database |
void |
publicActionStartMonitor(java.lang.String controllerName,
boolean displayController,
boolean displayVdb,
boolean displayBackends)
Start monitoring console. |
void |
publicActionTestBackendConnection(BackendObject bo)
Test jdbc connection on this backend |
void |
publicActionTileJmxFrames(boolean vertical)
Position the jmx frames on the desktop |
void |
publicActionUnSetCheckpoint(BackendObject bo)
Unset checkpoint of a backend (set it to null) |
void |
publicActionUpdateControllerLogConfiguration(java.lang.String controllerName,
java.lang.String newContent)
Update the controller log4j configuration file, and restart the logger thread |
void |
publicActionViewCache(java.lang.String databaseName)
Display the cache content in a new frame |
void |
publicActionViewCacheStats(java.lang.String databaseName)
Display the cache stats |
void |
publicActionViewRecoveryLog(java.lang.String databaseName)
Display the content of the recovery log in a frame |
void |
publicActionViewSQLStats(java.lang.String databaseName)
Display the SQL stats |
private byte[] |
readDriver(java.lang.String filename)
|
void |
setCurrentJmxClient(RmiJmxClient currentJmxClient)
Sets the currentJmxClient value. |
Methods inherited from class javax.swing.JFrame |
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, 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 |
GuiSession guiSession
java.util.Hashtable databaseMBeans
java.util.Hashtable controllerMBeans
java.util.Hashtable backendsState
java.util.Hashtable backendList
java.util.Hashtable databaseList
java.util.Hashtable controllerList
java.util.Hashtable jmxClients
RmiJmxClient currentJmxClient
java.lang.String selectedController
java.lang.String selectedDatabase
java.lang.Object credentials
JNewList mbeanList
GuiLoggingThread logginThread
javax.swing.JPanel vdbListPanel
javax.swing.JPanel fileListPanel
javax.swing.JPanel controllerListPanel
GuiVirtualDatabaseLoginFrame loginFrame
GuiNewControllerFrame newControllerFrame
GuiExceptionFrame exceptionFrame
NewBackendFrame newBackendFrame
GuiSelectCheckpointFrame selectCheckpointFrame
GuiSelectShutdownFrame selectShutdownFrame
GuiInputBackupFrame inputBackupFrame
BackendTransferListener backendTransferListener
ControllerTransferListener configurationFileTransferListener
CjdbcGuiListener guiActionListener
java.lang.String debugText
java.lang.String loggingText
javax.swing.JTextArea debugTextPane
javax.swing.JTextArea loggingTextPane
javax.swing.JTextPane infoTextPane
GuiParsingThread parsingThread
javax.swing.JTextPane xmlTextPane
javax.swing.JFileChooser configurationFileChooser
javax.swing.JFileChooser jarFileChooser
javax.swing.JFileChooser saveFileChooser
javax.swing.JPanel backendPanel
ControllerListPopUpMenu controllerListPopUpMenu
javax.swing.JTabbedPane centerPane
javax.swing.JScrollPane helpScroll
javax.swing.JScrollPane debugScroll
javax.swing.JScrollPane xmlScroll
javax.swing.JScrollPane loggingScroll
javax.swing.JScrollPane infoScroll
javax.swing.JScrollPane logConfigScroll
javax.swing.JScrollPane fileScroll
javax.swing.JTextArea debugTraceTextPane
JTextAreaWriter traceWriter
javax.swing.JTextPane logConfigTextPane
javax.swing.JPanel backendButtons
javax.swing.JPanel backendIcons
javax.swing.JDesktopPane jmxPanel
javax.swing.JScrollPane jmxScroll
javax.swing.JScrollPane attributePane
javax.swing.JTable attributeTable
javax.swing.JTable operationTable
javax.swing.JScrollPane operationPane
javax.swing.JInternalFrame mbeanFrame
javax.swing.JInternalFrame attributeFrame
javax.swing.JInternalFrame operationFrame
Constructor Detail |
public CjdbcGui()
CjdbcGui.java
object
Method Detail |
private ControllerMBean actionGetControllerBean(java.lang.String controllerName)
private void actionStartControllerLoggingThread(java.lang.String controllerName)
private VirtualDatabaseMBean actionGetDatabaseBean(java.lang.String databaseName)
private void actionLoadDatabaseList(java.lang.String controllerName)
void actionUnloadBackends(java.lang.String controller)
void paintDatabasePanel()
private void actionLoadDatabase(java.lang.String databaseName, java.lang.String controllerName)
private void actionAddObjectToGridLayout(javax.swing.JPanel panel, javax.swing.JButton button)
public void publicActionLoadBackendsList(java.lang.String databaseName)
databaseName
- the database to load the backends frompublic void actionLoadBackend(java.lang.String database, java.lang.String backendName, java.lang.String controllerName, boolean enable)
database
- the virtual database namebackendName
- the backend namecontrollerName
- the controller that owns this backendenable
- if the backend object should be enabled. (not used?)private java.lang.String actionConvertState(java.lang.String jmxState)
jmxState
- the JMX state to convert
GuiConstants
public void actionChangeBackendState(BackendObject bo, java.lang.String newState)
bo
- the backend objectnewState
- new state to assign to the backendpublic void actionSetBackendState(java.lang.String backendName)
backendName
- the backend to set the statepublic void actionSetBackendState(java.lang.String backendName, java.lang.String newState)
backendName
- name of backendnewState
- new statepublic void paintBackendPane()
void paintConfigurationPane()
java.lang.String actionLoadXmlText(java.io.File filePath)
public void appendDebugText(java.lang.String text)
text
- to appendpublic void appendDebugText(java.lang.String text, java.lang.Exception e)
text
- text to displaye
- the exception to get the trace frompublic void publicActionAddXmlFile()
void actionLoadXmlList()
private java.util.ArrayList actionLoadCheckpointNames(java.lang.String databaseName)
public void publicActionLoadControllerList()
actionLoadController
void paintControllerPane()
public void publicActionAddControllerView()
public void publicActionDatabaseEnableAll(java.lang.String databaseName)
databaseName
- the name of the database to operatepublic void actionLoadBackendActionButton(java.lang.String name)
name
- the name of the panelpublic void actionLoadBackendPane(boolean recoveryEnabled)
recoveryEnabled
- more options are available when recovery log is
enabled for the databasepublic void publicActionLoadAuthenticatedDatabase()
public void publicActionQuit()
public void publicActionLoadDriver(java.lang.String controllerName)
controllerName
- name of the controllerprivate byte[] readDriver(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public void publicActionRefreshLogs(java.lang.String controllerName)
controllerName
- the name of the controllerpublic void publicActionCleanDebugBuffer()
public void publicActionSaveConfigurationFile()
public void publicActionAddController()
private void actionLoadController(java.lang.String name)
name
- the name(url) of the controllerpublic void publicActionSelectNewController(java.lang.String connectUrl)
connectUrl
- the url of the controller that was selectedpublic java.lang.String getSelectedController()
public void publicActionLoadDumpList(java.lang.String databaseName)
databaseName
- the virtual database namepublic void publicActionLoadXmlController(java.lang.String connectUrl)
connectUrl
- controllerNamepublic void publicActionSelectNewDatabase(java.lang.String value)
value
- the name of the virtual dababasepublic void publicActionLoadXmlDatabase(java.lang.String databaseName)
databaseName
- virtual database name to get configuration frompublic void publicActionSelectNewConfigurationFile(java.lang.String file)
file
- the path to the xml filepublic void publicActionShutdownDatabase(DatabaseObject dob, int shutdownLevel)
dob
- database object representing the database to shutdownshutdownLevel
- the level to apply for the shutdownpublic void publicActionExecuteBackendDrop(javax.swing.JButton target, java.lang.String backendName)
backendName
- name of the backendtarget
- the drop target used for the Dndprivate java.lang.String actionDisplaySelectCheckpointFrame(java.lang.String database)
private boolean isDropInSameColumn(java.lang.String actionName, java.lang.String backendName)
actionName
- the action from the DnDbackendName
- the name of the backend that is the target of the action
public void publicActionExecuteBackendDrop(java.lang.String actionName, java.lang.String backendName)
actionName
- action name on the backendbackendName
- the drop target used for the Dndprivate void actionRefreshBackendState(BackendObject bob)
private java.lang.String generateCheckpoint(java.lang.String backendName)
backendName
- the backend to generate a checkpoint for
public void publicActionNewBackendPrompt(BackendObject bob)
bob
- the backend to replicatepublic void publicActionRestoreBackend(java.lang.String backendName, java.lang.String dumpName)
backendName
- name of the backenddumpName
- name of the dump filepublic void publicActionBackupBackendPrompt(BackendObject bob)
bob
- the backend objectprivate java.lang.String actionDisplayInputBackupFrame(java.lang.String database, java.lang.String backend)
database
- virtual database to dumpbackend
- backend to dump
public void publicActionRefreshCursorShape()
public void publicActionExecuteControllerDrop(java.lang.String filePath, java.lang.String controllerName)
filePath
- the configuration filecontrollerName
- the name of the controllerpublic void publicActionDatabaseDisableAll(java.lang.String databaseName)
databaseName
- virtual database namepublic void publicActionGetControllerInfo(java.lang.String controllerName)
controllerName
- the controllerNamepublic void publicActionShutdownController(java.lang.String controllerName)
controllerName
- name of the controller to shutdownpublic void publicActionControllerReport(java.lang.String controllerName)
controllerName
- the controller to get the report frompublic void publicActionDeleteDump(java.lang.String databaseName, DumpFileObject dump)
databaseName
- the url of the controllerdump
- the dump objectprivate boolean actionDisplayConfirmFrame(java.lang.String message)
message
- message to confirm
public void publicActionExecuteBackendDrop(javax.swing.JPanel panel, java.lang.String backendName)
panel
- the target of the dropbackendName
- name of the backend that is the target of the droppublic void publicActionControllerLogConfiguration(java.lang.String controllerName)
controllerName
- the controller's urlpublic void publicActionUpdateControllerLogConfiguration(java.lang.String controllerName, java.lang.String newContent)
controllerName
- the controller's urlnewContent
- the new log4j configurationpublic void publicActionSetLogConfigurationDebug(java.lang.String controllerName, java.lang.String logConfiguration)
controllerName
- the name of the controller of this configurationlogConfiguration
- the content as a String
of the log4j
configurationpublic void publicActionSetLogConfigurationServer(boolean enableServer, java.lang.String controllerName, java.lang.String logConfiguration)
enableServer
- true to enablecontrollerName
- of the controller for this configurationlogConfiguration
- logFile nameprivate java.lang.String actionReplaceInConfiguration(java.lang.String logConfiguration, java.lang.String oldMode, java.lang.String newMode) throws java.io.IOException
java.io.IOException
public void publicActionSetLogConfigurationInfo(java.lang.String controllerName, java.lang.String logConfiguration)
controllerName
- the name of the controller of this configurationlogConfiguration
- the content as a String
of the log4j
configurationpublic java.util.Hashtable getBackendList()
public void publicActioncleanLoggingPane()
public void publicActionRemoveConfigurationFile(ConfigurationFileObject cfo)
cfo
- the file object associatedpublic void publicActionControllerRemove(java.lang.String controllerName)
controllerName
- the name of the controllerpublic void publicActionStartMonitor(java.lang.String controllerName, boolean displayController, boolean displayVdb, boolean displayBackends)
controllerName
- the controller to monitordisplayController
- true if controller pane should be displayeddisplayVdb
- true if virtual database pane should be displayeddisplayBackends
- true if backend pane should be displayedpublic void publicActionCreateBackendExecute()
public void publicActionViewCache(java.lang.String databaseName)
databaseName
- database name that contains the cachepublic void publicActionViewSQLStats(java.lang.String databaseName)
databaseName
- virtual database namepublic void publicActionViewCacheStats(java.lang.String databaseName)
databaseName
- virtual database namepublic CjdbcGuiListener getGuiActionListener()
public GuiSession getGuiSession()
public java.util.Hashtable getJmxClients()
public void publicActionRemoveBackendFromGui(java.lang.String backendName)
backendName
- the backend to removepublic void publicActionRemoveBackend(BackendObject bo)
bo
- the BackendObject
that originated the actionpublic void publicActionExecuteTransfer(java.lang.String backendName, java.lang.String controllerName)
backendName
- the name of the backend to transfercontrollerName
- the target controller to transfer topublic void publicActionRemoveBackendFromGui(java.lang.String backendName, java.lang.String controller)
backendName
- the backend name to removecontroller
- the controller that it was removed frompublic void publicActionDisplayShutdownFrame(DatabaseObject database)
database
- the database name we want to shutdown.public void publicActionViewRecoveryLog(java.lang.String databaseName)
databaseName
- the database that containts the recovery log we wantpublic void publicActionSetCheckpoint(BackendObject bo)
bo
- the backend to change the checkpointpublic void publicActionUnSetCheckpoint(BackendObject bo)
bo
- backend objectpublic void publicActionTestBackendConnection(BackendObject bo)
bo
- the backend object to test the connection onpublic void publicActionRefreshMBeans()
public void publicActionTileJmxFrames(boolean vertical)
vertical
- tile the frames vertically if true, horizontally if falsepublic void publicActionRefreshMBeanAttributes(javax.management.ObjectName mbean)
mbean
- the MBean to refreshpublic void publicActionRefreshMBeanMethods(javax.management.ObjectName mbean)
mbean
- the MBean to refreshpublic RmiJmxClient getCurrentJmxClient()
public void setCurrentJmxClient(RmiJmxClient currentJmxClient)
currentJmxClient
- The currentJmxClient to set.public void getOperationCallDialog(javax.management.ObjectName name, javax.management.MBeanOperationInfo info)
info
- an MBeanOperationInfo
objectname
- name of the JMX objectpublic void getAttributeChangeDialog(javax.management.ObjectName name, javax.management.MBeanAttributeInfo info)
info
- an MBeanOperationInfo
objectname
- name of the JMX object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |