Main Page | Packages | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

org.objectweb.cjdbc.console.gui.CjdbcGui Class Reference

Collaboration diagram for org.objectweb.cjdbc.console.gui.CjdbcGui:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CjdbcGui ()
void publicActionLoadBackendsList (String databaseName)
void actionLoadBackend (String database, String backendName, String controllerName, boolean enable)
void actionChangeBackendState (BackendObject bo, String newState)
void actionSetBackendState (String backendName)
void actionSetBackendState (String backendName, String newState)
void paintBackendPane ()
void appendDebugText (String text)
void appendDebugText (String text, Exception e)
void publicActionAddXmlFile ()
void publicActionLoadControllerList ()
void publicActionAddControllerView ()
void publicActionDatabaseEnableAll (String databaseName)
void actionLoadBackendActionButton (String name)
void actionLoadBackendPane (boolean recoveryEnabled)
void publicActionLoadAuthenticatedDatabase ()
void publicActionQuit ()
void publicActionLoadDriver (String controllerName)
void publicActionRefreshLogs (String controllerName)
void publicActionCleanDebugBuffer ()
void publicActionSaveConfigurationFile ()
void publicActionAddController ()
void publicActionSelectNewController (String connectUrl)
String getSelectedController ()
void publicActionLoadDumpList (String databaseName)
void publicActionLoadXmlController (String connectUrl)
void publicActionSelectNewDatabase (String value)
void publicActionLoadXmlDatabase (String databaseName)
void publicActionSelectNewConfigurationFile (String file)
void publicActionShutdownDatabase (DatabaseObject dob, int shutdownLevel)
void publicActionExecuteBackendDrop (JButton target, String backendName)
void publicActionExecuteBackendDrop (String actionName, String backendName)
void publicActionNewBackendPrompt (BackendObject bob)
void publicActionRestoreBackend (String backendName, String dumpName)
void publicActionBackupBackendPrompt (BackendObject bob)
void publicActionRefreshCursorShape ()
void publicActionExecuteControllerDrop (String filePath, String controllerName)
void publicActionDatabaseDisableAll (String databaseName)
void publicActionGetControllerInfo (String controllerName)
void publicActionShutdownController (String controllerName)
void publicActionControllerReport (String controllerName)
void publicActionDeleteDump (String databaseName, DumpFileObject dump)
void publicActionExecuteBackendDrop (JPanel panel, String backendName)
void publicActionControllerLogConfiguration (String controllerName)
void publicActionUpdateControllerLogConfiguration (String controllerName, String newContent)
void publicActionSetLogConfigurationDebug (String controllerName, String logConfiguration)
void publicActionSetLogConfigurationServer (boolean enableServer, String controllerName, String logConfiguration)
void publicActionSetLogConfigurationInfo (String controllerName, String logConfiguration)
Hashtable getBackendList ()
void publicActioncleanLoggingPane ()
void publicActionRemoveConfigurationFile (ConfigurationFileObject cfo)
void publicActionControllerRemove (String controllerName)
void publicActionStartMonitor (String controllerName, boolean displayController, boolean displayVdb, boolean displayBackends)
void publicActionCreateBackendExecute ()
void publicActionViewCache (String databaseName)
void publicActionViewSQLStats (String databaseName)
void publicActionViewCacheStats (String databaseName)
CjdbcGuiListener getGuiActionListener ()
GuiSession getGuiSession ()
Hashtable getJmxClients ()
void publicActionRemoveBackendFromGui (String backendName)
void publicActionRemoveBackend (BackendObject bo)
void publicActionExecuteTransfer (String backendName, String controllerName)
void publicActionRemoveBackendFromGui (String backendName, String controller)
void publicActionDisplayShutdownFrame (DatabaseObject database)
void publicActionViewRecoveryLog (String databaseName)
void publicActionSetCheckpoint (BackendObject bo)
void publicActionUnSetCheckpoint (BackendObject bo)
void publicActionTestBackendConnection (BackendObject bo)
void publicActionRefreshMBeans ()
void publicActionTileJmxFrames (boolean vertical)
void publicActionRefreshMBeanAttributes (ObjectName mbean)
void publicActionRefreshMBeanMethods (ObjectName mbean)
RmiJmxClient getCurrentJmxClient ()
void setCurrentJmxClient (RmiJmxClient currentJmxClient)
void getOperationCallDialog (ObjectName name, MBeanOperationInfo info)
void getAttributeChangeDialog (ObjectName name, MBeanAttributeInfo info)

Package Functions

void actionUnloadBackends (String controller)
void paintDatabasePanel ()
void paintConfigurationPane ()
String actionLoadXmlText (File filePath)
void actionLoadXmlList ()
void paintControllerPane ()

Package Attributes

GuiSession guiSession
Hashtable databaseMBeans
Hashtable controllerMBeans
Hashtable backendsState
Hashtable backendList
Hashtable databaseList
Hashtable controllerList
Hashtable jmxClients
RmiJmxClient currentJmxClient
String selectedController
String selectedDatabase
Object credentials = null
JNewList mbeanList
GuiLoggingThread logginThread
JPanel vdbListPanel
JPanel fileListPanel
JPanel controllerListPanel
GuiVirtualDatabaseLoginFrame loginFrame
GuiNewControllerFrame newControllerFrame
GuiExceptionFrame exceptionFrame
NewBackendFrame newBackendFrame
GuiSelectCheckpointFrame selectCheckpointFrame
GuiSelectShutdownFrame selectShutdownFrame
GuiInputBackupFrame inputBackupFrame
BackendTransferListener backendTransferListener
ControllerTransferListener configurationFileTransferListener
CjdbcGuiListener guiActionListener
String debugText
String loggingText
JTextArea debugTextPane
JTextArea loggingTextPane
JTextPane infoTextPane
GuiParsingThread parsingThread
JTextPane xmlTextPane
JFileChooser configurationFileChooser
JFileChooser jarFileChooser
JFileChooser saveFileChooser
JPanel backendPanel
ControllerListPopUpMenu controllerListPopUpMenu
JTabbedPane centerPane
JScrollPane helpScroll
JScrollPane debugScroll
JScrollPane xmlScroll
JScrollPane loggingScroll
JScrollPane infoScroll
JScrollPane logConfigScroll
JScrollPane fileScroll
JTextArea debugTraceTextPane
JTextAreaWriter traceWriter
JTextPane logConfigTextPane
JPanel backendButtons
JPanel backendIcons
JDesktopPane jmxPanel
JScrollPane jmxScroll
JScrollPane attributePane
JTable attributeTable
JTable operationTable
JScrollPane operationPane
JInternalFrame mbeanFrame
JInternalFrame attributeFrame
JInternalFrame operationFrame

Detailed Description

This class is the main class for the graphical version of the C-JDBC administration console.

Author:
Nicolas Modrzyk

Emmanuel Cecchet

Version:
1.0

Definition at line 144 of file CjdbcGui.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.gui.CjdbcGui.CjdbcGui  ) 
 

Creates a new CjdbcGui.java object

Definition at line 273 of file CjdbcGui.java.

00274   {
00275     super(GuiTranslate.get("gui.name"));
00276     new Thread(new CjdbcGuiLoader(this)).start();
00277   }


Member Function Documentation

void org.objectweb.cjdbc.console.gui.CjdbcGui.actionChangeBackendState BackendObject  bo,
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. Removes it from the old panel as well. Calls repaint of each panel. This is not connected to the actual database the backend object is referenced from because many states do not exist on the controller

Parameters:
bo the backend object
newState new state to assign to the backend

Definition at line 624 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.backendsState, org.objectweb.cjdbc.console.gui.objects.BackendObject.getState(), and org.objectweb.cjdbc.console.gui.objects.BackendObject.setState().

Referenced by org.objectweb.cjdbc.console.gui.threads.task.RestoreBackendTask.run(), and org.objectweb.cjdbc.console.gui.threads.task.BackupBackendTask.run().

00625   {
00626     // test if the new state is valid
00627     if (!GuiConstants.isValidBackendState(newState))
00628       return;
00629 
00630     // State is valid, process
00631 
00632     // Removed from old panel
00633     String oldState = bo.getState();
00634     JPanel oldpanel = (JPanel) backendsState.get(oldState);
00635     oldpanel.remove(bo);
00636     oldpanel.validate();
00637     oldpanel.repaint();
00638 
00639     // Change the state of the backend object
00640     bo.setState(newState);
00641 
00642     // Add it to thew new state panel
00643     JPanel panel = (JPanel) backendsState.get(newState);
00644     panel.add(bo);
00645     panel.validate();
00646     panel.repaint();
00647   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackend String  database,
String  backendName,
String  controllerName,
boolean  enable
 

Create a new database backend object and load its state

Parameters:
database the virtual database name
backendName the backend name
controllerName the controller that owns this backend
enable if the backend object should be enabled. (not used?)

Definition at line 523 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState(), org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText(), org.objectweb.cjdbc.console.gui.CjdbcGui.backendList, org.objectweb.cjdbc.console.gui.CjdbcGui.backendTransferListener, org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRemoveBackendFromGui(), and org.objectweb.cjdbc.console.gui.objects.BackendObject.setControllerName().

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadBackendsList().

00525   {
00526     BackendObject backend = null;
00527     if (!backendList.containsKey(backendName))
00528     {
00529       appendDebugText("Loading backend:" + backendName + " from controller:"
00530           + controllerName);
00531       try
00532       {
00533         backend = new BackendObject(this, backendTransferListener, database,
00534             backendName, controllerName)
00535         {
00536           public JToolTip createToolTip()
00537           {
00538             return new JMultiLineToolTip();
00539           }
00540         };
00541       }
00542       catch (Exception e)
00543       {
00544         e.printStackTrace();
00545       }
00546       backend.setBorder(BorderFactory.createTitledBorder(
00547           GuiConstants.LOWERED_BORDER, controllerName));
00548       backend.setControllerName(controllerName);
00549       backendList.put(backendName, backend);
00550     }
00551     else
00552     {
00553       backend = (BackendObject) backendList.get(backendName);
00554       backend.setBorder(BorderFactory.createTitledBorder(
00555           GuiConstants.LOWERED_BORDER, controllerName));
00556       backend.setControllerName(controllerName);
00557       backend.setEnabled(controllerName.equals(selectedController));
00558       appendDebugText("ReLoading backend:" + backendName);
00559     }
00560 
00561     try
00562     {
00563       actionSetBackendState(backendName);
00564     }
00565     catch (RuntimeException e)
00566     {
00567       appendDebugText("cannot access mbean anymore");
00568       publicActionRemoveBackendFromGui(backendName);
00569     }
00570   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackendActionButton String  name  ) 
 

Load a panel for the backends

Parameters:
name the name of the panel

Definition at line 991 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.setName().

00992   {// ////////////////////////////////////////////////////////////////////////
00993     // Define backend action buttons
00994     // /////////////////////////////////////////////////////////////////////////
00995     appendDebugText("Loading backend action panel:" + name);
00996     Color color = GuiConstants.getBackendBgColor(name);
00997 
00998     JPanel paneContent = new JPanel(new FlowLayout());
00999     paneContent.setBackground(color);
01000     paneContent.setName(name);
01001     paneContent.setVisible(true);
01002 
01003     JButton paneLabel = new JButton(name);
01004     paneLabel.setActionCommand(name);
01005     paneLabel.setBackground(color);
01006     paneLabel.setSize(100, 50);
01007     paneLabel.setVisible(true);
01008 
01009     DropTarget target1 = new DropTarget(paneLabel, DnDConstants.ACTION_MOVE,
01010         backendTransferListener);
01011     target1.setActive(true);
01012 
01013     DropTarget target2 = new DropTarget(paneContent, DnDConstants.ACTION_MOVE,
01014         backendTransferListener);
01015     target2.setActive(true);
01016 
01017     GridLayout iconLayout = (GridLayout) backendIcons.getLayout();
01018     iconLayout.setColumns(iconLayout.getColumns() + 1);
01019     GridLayout buttonsLayout = (GridLayout) backendButtons.getLayout();
01020     buttonsLayout.setColumns(buttonsLayout.getColumns() + 1);
01021     backendIcons.add(paneContent);
01022     backendButtons.add(paneLabel);
01023     // Adding to the main hashtable of states
01024     backendsState.put(name, paneContent);
01025   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackendPane boolean  recoveryEnabled  ) 
 

Load standard version for the panel

Parameters:
recoveryEnabled more options are available when recovery log is enabled for the database

Definition at line 1033 of file CjdbcGui.java.

01034   {
01035     // ////////////////////////////////////////////////////////////////////////
01036     // Define backend panel
01037     // /////////////////////////////////////////////////////////////////////////
01038     if (backendPanel == null)
01039     {
01040       backendPanel = new JPanel(new BorderLayout());
01041       backendPanel.setEnabled(true);
01042       backendPanel.setBackground(Color.white);
01043       backendPanel.setVisible(true);
01044     }
01045     else
01046     {
01047       backendPanel.remove(backendButtons);
01048       backendPanel.remove(backendIcons);
01049     }
01050 
01051     backendButtons = new JPanel(new GridLayout(1, 0));
01052     backendIcons = new JPanel(new GridLayout(1, 0));
01053     backendIcons.setBackground(Color.white);
01054     backendIcons.setVisible(true);
01055     backendButtons.setVisible(true);
01056 
01057     actionLoadBackendActionButton(GuiConstants.BACKEND_STATE_ENABLED);
01058     if (recoveryEnabled)
01059       actionLoadBackendActionButton(GuiConstants.BACKEND_STATE_RECOVERY);
01060     actionLoadBackendActionButton(GuiConstants.BACKEND_STATE_DISABLED);
01061     if (recoveryEnabled)
01062       actionLoadBackendActionButton(GuiConstants.BACKEND_STATE_BACKUP);
01063     if (recoveryEnabled)
01064       actionLoadBackendActionButton(GuiConstants.BACKEND_STATE_RESTORE);
01065     backendPanel.add(backendIcons, BorderLayout.CENTER);
01066     backendPanel.add(backendButtons, BorderLayout.NORTH);
01067 
01068     centerPane.validate();
01069     centerPane.repaint();
01070     validate();
01071     repaint();
01072   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState String  backendName,
String  newState
 

Change panel of backend

Parameters:
backendName name of backend
newState new state

Definition at line 728 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText(), org.objectweb.cjdbc.console.gui.CjdbcGui.backendList, org.objectweb.cjdbc.console.gui.CjdbcGui.backendsState, org.objectweb.cjdbc.console.gui.objects.BackendObject.getState(), and org.objectweb.cjdbc.console.gui.objects.BackendObject.setState().

00729   {
00730     BackendObject bo = (BackendObject) backendList.get(backendName);
00731     appendDebugText("Setting backend(" + backendName + "):" + bo.getName()
00732         + " to state:" + newState);
00733 
00734     String state = bo.getState();
00735     if (state == null)
00736     {
00737       // state has not been inited
00738     }
00739     else
00740     {
00741       // remove previous state
00742       JPanel panel = (JPanel) backendsState.get(state);
00743       panel.remove(bo);
00744       panel.validate();
00745       panel.repaint();
00746     }
00747 
00748     // Set new state
00749     JPanel panel = (JPanel) backendsState.get(newState);
00750     bo.setState(newState);
00751 
00752     panel.add(bo);
00753     panel.validate();
00754     panel.repaint();
00755 
00756   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState String  backendName  ) 
 

Set the state of the given backend. The state is retrieved via a jmx call on the backend corresponding MBean.

Parameters:
backendName the backend to set the state

Definition at line 655 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText(), org.objectweb.cjdbc.console.gui.CjdbcGui.backendList, org.objectweb.cjdbc.console.gui.objects.BackendObject.getControllerName(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase(), org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getState(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getState(), org.objectweb.cjdbc.console.gui.CjdbcGui.guiSession, org.objectweb.cjdbc.console.gui.CjdbcGui.jmxClients, and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.viewBackendInformation().

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackend().

00656   {
00657     try
00658     {
00659       BackendObject bo = (BackendObject) backendList.get(backendName);
00660       if (bo == null)
00661       {
00662         appendDebugText("Backend (" + backendName + ") cannot be found");
00663         return;
00664       }
00665       String controllerName = bo.getControllerName();
00666       if (controllerName == null)
00667       {
00668         appendDebugText("Backend (" + backendName
00669             + ") has lost its controller reference.");
00670         appendDebugText("Removing backend (" + backendName
00671             + ") from display list.");
00672         backendList.remove(backendName);
00673         return;
00674       }
00675       if (selectedController.equals(controllerName))
00676         bo.setEnabled(true);
00677       else
00678         bo.setEnabled(false);
00679       String state = bo.getState();
00680       appendDebugText("STATE:" + state);
00681       String login = guiSession.getAuthenticatedDatabaseLogin(bo.getDatabase());
00682       String password = guiSession.getAuthenticatedDatabasePassword(bo
00683           .getDatabase());
00684       RmiJmxClient client = (RmiJmxClient) jmxClients.get(controllerName);
00685       DatabaseBackendMBean backend = null;
00686       VirtualDatabaseMBean databaseMBean = null;
00687 
00688       try
00689       {
00690         backend = client.getDatabaseBackendProxy(bo.getDatabase(), backendName,
00691             login, password);
00692         databaseMBean = client.getVirtualDatabaseProxy(bo.getDatabase(), login,
00693             password);
00694       }
00695       catch (Exception e)
00696       {
00697         appendDebugText("Could not change state of backend:" + backendName,
00698             new JmxException("MBean connection was lost"));
00699       }
00700       String newState = actionConvertState(backend.getState());
00701 
00702       actionSetBackendState(backendName, newState);
00703 
00704       // set Tool tip after state
00705       try
00706       {
00707         String[] data = databaseMBean.viewBackendInformation(backendName);
00708         bo.setToolTipText(new BackendToolTip(data).getFormattedToolTip());
00709       }
00710       catch (Exception e)
00711       {
00712         appendDebugText("Tool tip could not be collected for backend:"
00713             + backendName);
00714       }
00715     }
00716     catch (Exception e)
00717     {
00718       appendDebugText("Could not change state of backend:" + backendName, e);
00719     }
00720   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText String  text,
Exception  e
 

Same as above and displays the stack trace ...

Parameters:
text text to display
e the exception to get the trace from

Definition at line 827 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText(), org.objectweb.cjdbc.console.gui.CjdbcGui.exceptionFrame, and org.objectweb.cjdbc.console.gui.CjdbcGui.traceWriter.

00828   {
00829     try
00830     {
00831       if (GuiConstants.DEBUG_LEVEL <= GuiConstants.DEBUG_NO_EXCEPTION_WINDOW)
00832       {
00833         if (e instanceof MBeanException)
00834           exceptionFrame.showException(((MBeanException) e)
00835               .getTargetException());
00836         else
00837           exceptionFrame.showException(e);
00838       }
00839       appendDebugText(text + "[Message:" + e.getMessage() + "]");
00840       traceWriter.write("---- Exception ----\n");
00841       e.printStackTrace(new PrintWriter(traceWriter));
00842       traceWriter.flush();
00843     }
00844     catch (IOException e1)
00845     {
00846       // ignore . . .
00847     }
00848   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText String  text  ) 
 

Append debug text to the debug panel

Parameters:
text to append

Definition at line 815 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.debugText, and org.objectweb.cjdbc.console.gui.CjdbcGui.debugTextPane.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackend(), org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed(), org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState(), org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText(), org.objectweb.cjdbc.console.gui.dnd.listeners.ControllerTransferListener.drop(), org.objectweb.cjdbc.console.gui.dnd.listeners.BackendTransferListener.drop(), org.objectweb.cjdbc.console.gui.CjdbcGuiListener.handleNotification(), org.objectweb.cjdbc.console.gui.CjdbcGuiListener.mouseClicked(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadBackendsList(), org.objectweb.cjdbc.console.gui.threads.task.RestoreBackendTask.run(), and org.objectweb.cjdbc.console.gui.threads.task.BackupBackendTask.run().

00816   {
00817     debugText += text + System.getProperty("line.separator");
00818     debugTextPane.setText(debugText);
00819   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.getAttributeChangeDialog ObjectName  name,
MBeanAttributeInfo  info
 

Opens a window t ochange an attribute

Parameters:
info an MBeanOperationInfo object
name name of the JMX object

Definition at line 2797 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.mouseClicked().

02798   {
02799     new AttributeChangeDialog(this, name, info).setVisible(true);
02800   }

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.getBackendList  ) 
 

Returns the backendList value.

Returns:
Returns the backendList.

Definition at line 2205 of file CjdbcGui.java.

02206   {
02207     return backendList;
02208   }

RmiJmxClient org.objectweb.cjdbc.console.gui.CjdbcGui.getCurrentJmxClient  ) 
 

Returns the currentJmxClient value.

Returns:
Returns the currentJmxClient.

Definition at line 2765 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.frames.jmxdesktop.SetSubjectDialog.actionPerformed(), org.objectweb.cjdbc.console.gui.frames.jmxdesktop.OperationCallDialog.actionPerformed(), org.objectweb.cjdbc.console.gui.frames.jmxdesktop.AttributeChangeDialog.actionPerformed(), and org.objectweb.cjdbc.console.gui.frames.jmxdesktop.AttributeChangeDialog.AttributeChangeDialog().

02766   {
02767     return currentJmxClient;
02768   }

CjdbcGuiListener org.objectweb.cjdbc.console.gui.CjdbcGui.getGuiActionListener  ) 
 

Get the action listener for the gui

Returns:
the listener of events

Definition at line 2372 of file CjdbcGui.java.

02373   {
02374     return guiActionListener;
02375   }

GuiSession org.objectweb.cjdbc.console.gui.CjdbcGui.getGuiSession  ) 
 

Returns the guiSession value.

Returns:
Returns the guiSession.

Definition at line 2382 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.objects.BackendObject.getMbean().

02383   {
02384     return guiSession;
02385   }

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.getJmxClients  ) 
 

Returns the jmxClients value.

Returns:
Returns the jmxClients.

Definition at line 2392 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.objects.BackendObject.getMbean().

02393   {
02394     return jmxClients;
02395   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.getOperationCallDialog ObjectName  name,
MBeanOperationInfo  info
 

Opens a window to perform a jmx operation

Parameters:
info an MBeanOperationInfo object
name name of the JMX object

Definition at line 2786 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.mouseClicked().

02787   {
02788     new OperationCallDialog(this, name, info).setVisible(true);
02789   }

String org.objectweb.cjdbc.console.gui.CjdbcGui.getSelectedController  ) 
 

Returns the selectedController value.

Returns:
Returns the selectedController.

Definition at line 1382 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01383   {
01384     return selectedController;
01385   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.paintBackendPane  ) 
 

Validate and Repaint the backend split

Definition at line 761 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.backendPanel.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadBackendsList(), and org.objectweb.cjdbc.console.gui.threads.task.BackupBackendTask.run().

00762   {
00763     // ////////////////////////////////////////////////////////////////////////
00764     // Paint backends panel
00765     // /////////////////////////////////////////////////////////////////////////
00766     backendPanel.validate();
00767     backendPanel.repaint();
00768   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.paintControllerPane  )  [package]
 

Paint the controller panel

Definition at line 949 of file CjdbcGui.java.

00950   {
00951     controllerListPanel.validate();
00952     controllerListPanel.repaint();
00953   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionAddController  ) 
 

add a Controller to the list.

Definition at line 1289 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01290   {
01291     newControllerFrame.setVisible(false);
01292     String ipAddress = newControllerFrame.getIpAddressBox().getText().trim();
01293     String port = newControllerFrame.getPortNumber().getText().trim();
01294     appendDebugText("Add controller with ip:" + ipAddress + " amd port:" + port);
01295     String name = ipAddress + ":" + port;
01296     if (guiSession.checkControllerInSession(name))
01297     {
01298       String message = GuiTranslate.get("error.controller.already.in.session");
01299       CJDBCException e = new CJDBCException(message);
01300       appendDebugText(message, e);
01301     }
01302     else
01303     {
01304       actionLoadController(name);
01305       paintControllerPane();
01306     }
01307   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionAddControllerView  ) 
 

View the controller frame to add a new controller reference to the list

Definition at line 958 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerListPopUpMenu.actionPerformed(), and org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

00959   {
00960     newControllerFrame.setVisible(true);
00961   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionAddXmlFile  ) 
 

Show the file chooser to add an xml file to the configuration list

See also:
javax.swing.filechooser.FileFilter#accept(java.io.File)

See also:
javax.swing.filechooser.FileFilter#getDescription()

Definition at line 853 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.configurationFileChooser.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

00854   {
00855     if (configurationFileChooser == null)
00856     {
00857       configurationFileChooser = new JFileChooser(".");
00858       configurationFileChooser.setFileFilter(new FileFilter()
00859       {
00860         /**
00861          * @see javax.swing.filechooser.FileFilter#accept(java.io.File)
00862          */
00863         public boolean accept(File f)
00864         {
00865           if (f.getAbsolutePath().endsWith(".xml") || f.isDirectory())
00866             return true;
00867           else
00868             return false;
00869         }
00870 
00871         /**
00872          * @see javax.swing.filechooser.FileFilter#getDescription()
00873          */
00874         public String getDescription()
00875         {
00876           return "Xml Files";
00877         }
00878       });
00879     }
00880     configurationFileChooser.showOpenDialog(this);
00881     File selFile = configurationFileChooser.getSelectedFile();
00882     if (selFile != null)
00883     {
00884       appendDebugText("Selected new file:" + selFile.getAbsolutePath());
00885       guiSession.addFileToConfigurationFiles(selFile);
00886       ConfigurationFileObject cfo = new ConfigurationFileObject(
00887           configurationFileTransferListener, selFile);
00888       ConfigurationFilePopUpMenu cfpum = new ConfigurationFilePopUpMenu(this,
00889           cfo);
00890       cfo.addActionListener(cfpum);
00891       cfo.addMouseListener(cfpum);
00892       actionAddObjectToGridLayout(fileListPanel, cfo);
00893       paintConfigurationPane();
00894     }
00895   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionBackupBackendPrompt BackendObject  bob  ) 
 

Execute a backup of the given backend

Parameters:
bob the backend object

Definition at line 1798 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase().

01799   {
01800     String checkpoint = actionDisplayInputBackupFrame(bob.getDatabase(), bob
01801         .getName());
01802     if (checkpoint == null)
01803     {
01804       appendDebugText("No dump name received, cancelling action...");
01805       return;
01806     }
01807     VirtualDatabaseMBean database = actionGetDatabaseBean(bob.getDatabase());
01808     new Thread(new BackupBackendTask(this, database, bob, checkpoint)).start();
01809   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionCleanDebugBuffer  ) 
 

Clean the debug buffer

Definition at line 1249 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01250   {
01251     debugText = "";
01252     debugTextPane.setText("");
01253   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActioncleanLoggingPane  ) 
 

Clean the content of the logging text pane and repaint

Definition at line 2213 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.LoggingPopUpMenu.actionPerformed(), and org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

02214   {
02215     loggingTextPane.setText("");
02216     loggingTextPane.validate();
02217     loggingTextPane.repaint();
02218   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionControllerLogConfiguration String  controllerName  ) 
 

Load the controller log4j configuration file in the info buffer

Parameters:
controllerName the controller's url

Definition at line 2050 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.viewLogConfigurationFile().

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

02051   {
02052     try
02053     {
02054       ControllerMBean controllerMBean = actionGetControllerBean(controllerName);
02055       logConfigTextPane.setText(controllerMBean.viewLogConfigurationFile());
02056       centerPane.setSelectedComponent(logConfigScroll);
02057       logConfigTextPane.addMouseListener(new LogEditPopUpMenu(this,
02058           controllerName, logConfigTextPane));
02059     }
02060     catch (Exception e)
02061     {
02062       appendDebugText("Failed to get log4j configuration for controller:"
02063           + controllerName, e);
02064     }
02065   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionControllerRemove String  controllerName  ) 
 

Removes a controller from the gui

Parameters:
controllerName the name of the controller

Definition at line 2240 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

02241   {
02242     ControllerObject co = (ControllerObject) controllerList
02243         .remove(controllerName);
02244     if (co != null)
02245     {
02246       controllerListPanel.remove(co);
02247       controllerListPanel.validate();
02248       controllerListPanel.repaint();
02249     }
02250     guiSession.getControllerItems().remove(controllerName);
02251   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionControllerReport String  controllerName  ) 
 

Get a report for the given controller

Parameters:
controllerName the controller to get the report from

Definition at line 1973 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.generateReport().

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

01974   {
01975     try
01976     {
01977       ControllerMBean controllerMBean = actionGetControllerBean(controllerName);
01978       infoTextPane.setText(controllerMBean.generateReport());
01979       centerPane.setSelectedComponent(infoScroll);
01980     }
01981     catch (Exception e)
01982     {
01983       appendDebugText("Failed to get info for controller:" + controllerName, e);
01984     }
01985   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionCreateBackendExecute  ) 
 

Create the new backend by sending the jmx command

Definition at line 2283 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.replicateBackend().

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

02284   {
02285     newBackendFrame.setVisible(false);
02286     BackendObject bob = newBackendFrame.getBob();
02287     VirtualDatabaseMBean database = actionGetDatabaseBean(bob.getDatabase());
02288     String oldname = bob.getName();
02289     String newname = newBackendFrame.getNewName().getText();
02290     String url = newBackendFrame.getNewUrl().getText();
02291     HashMap map = new HashMap();
02292     map.put("url", url);
02293     try
02294     {
02295       database.replicateBackend(oldname, newname, map);
02296     }
02297     catch (Exception e)
02298     {
02299       appendDebugText("Failed to create new backend:" + newname, e);
02300     }
02301   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionDatabaseDisableAll String  databaseName  ) 
 

actionDatabaseDisableAll definition. Call the proper MBean to disable all backends

Parameters:
databaseName virtual database name

Definition at line 1887 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

01888   {
01889     try
01890     {
01891       actionGetDatabaseBean(databaseName).disableAllBackends();
01892       publicActionLoadBackendsList(databaseName);
01893       centerPane.setSelectedComponent(backendPanel);
01894       appendDebugText("Disable All backends for :" + databaseName
01895           + " was a success");
01896     }
01897     catch (Exception e)
01898     {
01899       appendDebugText("Disable All backends for :" + databaseName + " failed.",
01900           e);
01901     }
01902   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionDatabaseEnableAll String  databaseName  ) 
 

actionDatabaseEnableAll definition. Call the proper MBean to enable all backends

Parameters:
databaseName the name of the database to operate

Definition at line 969 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

00970   {
00971     try
00972     {
00973       actionGetDatabaseBean(databaseName).enableAllBackends();
00974       publicActionLoadBackendsList(databaseName);
00975       centerPane.setSelectedComponent(backendPanel);
00976       appendDebugText("Enabled All backends for :" + databaseName
00977           + " was a success");
00978     }
00979     catch (Exception e)
00980     {
00981       appendDebugText("Enabled All backends for :" + databaseName + " failed",
00982           e);
00983     }
00984   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionDeleteDump String  databaseName,
DumpFileObject  dump
 

Delete a dump of a database from the virtual database

Parameters:
databaseName the url of the controller
dump the dump object

Definition at line 1993 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.DumpFileObject.getDumpFile(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.removeDumpFile().

Referenced by org.objectweb.cjdbc.console.gui.popups.DumpPopUpMenu.actionPerformed().

01994   {
01995     boolean confirm = actionDisplayConfirmFrame(GuiTranslate
01996         .get("gui.confirm.delete.dump"));
01997     if (!confirm)
01998     {
01999       appendDebugText("Action is not confirmed, cancelling deletion");
02000       return;
02001     }
02002     VirtualDatabaseMBean database = actionGetDatabaseBean(databaseName);
02003     try
02004     {
02005       database.removeDumpFile(dump.getDumpFile());
02006       appendDebugText("Removed dump file:" + dump.getDumpFile().getName()
02007           + " from controller:" + databaseName);
02008       publicActionLoadDumpList(databaseName);
02009     }
02010     catch (Exception e)
02011     {
02012       appendDebugText("Failed to removed dump file:"
02013           + dump.getDumpFile().getName() + " from controller:" + databaseName,
02014           e);
02015     }
02016   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionDisplayShutdownFrame DatabaseObject  database  ) 
 

Display the shutdown dialog and then shutdown the database with the corresponding level

Parameters:
database the database name we want to shutdown.

Definition at line 2511 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

02512   {
02513     if (selectShutdownFrame == null)
02514     {
02515       selectShutdownFrame = new GuiSelectShutdownFrame(this, guiActionListener);
02516       selectShutdownFrame.setVisible(true);
02517     }
02518     String shutdownLevel = selectShutdownFrame.getValueField().getText();
02519     // Defaults to safe mode
02520     int iLevel = Constants.SHUTDOWN_SAFE;
02521     if (shutdownLevel.equals(GuiCommands.COMMAND_SHUTDOWN_SAFE))
02522       iLevel = Constants.SHUTDOWN_SAFE;
02523     else if (shutdownLevel.equals(GuiCommands.COMMAND_SHUTDOWN_FORCE))
02524       iLevel = Constants.SHUTDOWN_FORCE;
02525     else if (shutdownLevel.equals(GuiCommands.COMMAND_SHUTDOWN_WAIT))
02526       iLevel = Constants.SHUTDOWN_WAIT;
02527     appendDebugText("shudown level of database:" + database.getName() + " is:"
02528         + shutdownLevel);
02529     selectShutdownFrame = null;
02530     publicActionShutdownDatabase(database, iLevel);
02531   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop JPanel  panel,
String  backendName
 

Execute the backend drop action with this gui

Parameters:
panel the target of the drop
backendName name of the backend that is the target of the drop

Definition at line 2040 of file CjdbcGui.java.

02041   {
02042     publicActionExecuteBackendDrop(panel.getName(), backendName);
02043   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop String  actionName,
String  backendName
 

Execute the backend drop action with this gui

Parameters:
actionName action name on the backend
backendName the drop target used for the Dnd

Definition at line 1614 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.disableBackend(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.disableBackendWithCheckpoint(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.enableBackend(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.enableBackendFromCheckpoint(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase(), org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getLastKnownCheckpoint(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getMbean(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.hasRecoveryLog().

01616   {
01617     appendDebugText("Got drop backend action:" + actionName + " from:"
01618         + backendName);
01619 
01620     BackendObject bob = (BackendObject) backendList.get(backendName);
01621     String database = bob.getDatabase();
01622     VirtualDatabaseMBean databaseMBean = actionGetDatabaseBean(bob
01623         .getDatabase());
01624 
01625     /*
01626      * This code does not do anything if
01627      * (actionName.equals(GuiConstants.BACKEND_STATE_RESTORE)) { ControllerMBean
01628      * controller = actionGetControllerBean(databaseMBean
01629      * .viewOwningController()); controller.listAvailableDumpFiles(); //
01630      * GuiSelectDumpFrame dump = new //
01631      * GuiSelectDumpFrame(this,,guiActionListener); }
01632      */
01633 
01634     if (isDropInSameColumn(actionName, backendName))
01635     {
01636       appendDebugText("Drop action is not relevant");
01637       return;
01638     }
01639 
01640     if (actionName.equals(GuiConstants.BACKEND_STATE_ENABLED))
01641     {
01642       try
01643       {
01644         DatabaseBackendMBean bean = bob.getMbean();
01645         String lastcheck = bean.getLastKnownCheckpoint();
01646         if (lastcheck != null)
01647         {
01648           actionSetBackendState(backendName,
01649               GuiConstants.BACKEND_STATE_RECOVERY);
01650           databaseMBean.enableBackendFromCheckpoint(backendName);
01651           return;
01652         }
01653         else
01654         {
01655           String checkpoint = actionDisplaySelectCheckpointFrame(database);
01656           if (checkpoint == null)
01657           {
01658             appendDebugText("Cancelling enable backend...");
01659             return;
01660           }
01661           appendDebugText("Using checkpoint:" + checkpoint
01662               + " to enable backend:" + backendName);
01663           if (checkpoint.equals(GuiConstants.BACKEND_NO_CHECKPOINT))
01664             databaseMBean.enableBackend(backendName);
01665           else
01666             databaseMBean.enableBackendFromCheckpoint(backendName);
01667         }
01668         // actionSetBackendState(backendName);
01669       }
01670       catch (Exception e)
01671       {
01672         appendDebugText("Failed to enable backend", e);
01673       }
01674     }
01675     else if (actionName.equals(GuiConstants.BACKEND_STATE_DISABLED))
01676     {
01677       try
01678       {
01679         // No recovery log defined.
01680         if (!databaseMBean.hasRecoveryLog())
01681           databaseMBean.disableBackend(backendName);
01682         else
01683         {
01684           String checkpoint = generateCheckpoint(backendName);
01685           //          
01686           // actionDisplaySelectCheckpointFrame(database);
01687           // if (checkpoint == null)
01688           // {
01689           // appendDebugText("Cancelling disable backend...");
01690           // return;
01691           // }
01692           appendDebugText("Using autogenerated checkpoint:" + checkpoint
01693               + " to disable backend:" + backendName);
01694           // if (checkpoint.equals(GuiConstants.BACKEND_NO_CHECKPOINT))
01695           // databaseMBean.disableBackend(backendName);
01696           // else
01697           databaseMBean.disableBackendWithCheckpoint(backendName, checkpoint);
01698         }
01699         actionSetBackendState(backendName);
01700       }
01701       catch (Exception e)
01702       {
01703         appendDebugText("Failed to disable backend", e);
01704       }
01705     }
01706     else if (actionName.equals(GuiConstants.BACKEND_STATE_NEW))
01707     {
01708       appendDebugText("Creating new backend from backend:" + bob.getName());
01709       publicActionNewBackendPrompt(bob);
01710     }
01711     else if (actionName.equals(GuiConstants.BACKEND_STATE_BACKUP))
01712     {
01713       publicActionBackupBackendPrompt(bob);
01714     }
01715 
01716     actionRefreshBackendState(bob);
01717   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop JButton  target,
String  backendName
 

Execute the backend drop action with this gui

Parameters:
backendName name of the backend
target the drop target used for the Dnd

Definition at line 1559 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.BackendPopUpMenu.actionPerformed(), and org.objectweb.cjdbc.console.gui.dnd.listeners.BackendTransferListener.drop().

01560   {
01561 
01562     String actionName = target.getActionCommand();
01563     if (actionName.equals(GuiConstants.BACKEND_STATE_RESTORE))
01564       publicActionRestoreBackend(backendName, ((DumpFileObject) target)
01565           .getDumpName());
01566     else
01567       publicActionExecuteBackendDrop(actionName, backendName);
01568   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteControllerDrop String  filePath,
String  controllerName
 

Load a configuration file on a controller

Parameters:
filePath the configuration file
controllerName the name of the controller

Definition at line 1863 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.addVirtualDatabases().

Referenced by org.objectweb.cjdbc.console.gui.dnd.listeners.ControllerTransferListener.drop().

01865   {
01866     File file = new File(filePath);
01867     try
01868     {
01869       ControllerMBean controllerMBean = actionGetControllerBean(controllerName);
01870       controllerMBean.addVirtualDatabases(actionLoadXmlText(file));
01871       appendDebugText("Execute public action on controller drop for:"
01872           + filePath + " and:" + controllerName);
01873       actionLoadDatabaseList(controllerName);
01874     }
01875     catch (Exception e)
01876     {
01877       appendDebugText("Failed to load configuration file :" + file.getName(), e);
01878     }
01879   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteTransfer String  backendName,
String  controllerName
 

Execute a backend transfer from one controller to an other one

Parameters:
backendName the name of the backend to transfer
controllerName the target controller to transfer to

Definition at line 2455 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getControllerName(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase(), org.objectweb.cjdbc.console.gui.objects.BackendObject.setControllerName(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.transferBackend().

Referenced by org.objectweb.cjdbc.console.gui.dnd.listeners.ControllerTransferListener.drop().

02457   {
02458     BackendObject bo = (BackendObject) backendList.get(backendName);
02459     String controllerNameOrigin = bo.getControllerName();
02460     RmiJmxClient jmxClient = (RmiJmxClient) jmxClients
02461         .get(controllerNameOrigin);
02462     String databaseName = bo.getDatabase();
02463     String user = guiSession.getAuthenticatedDatabaseLogin(databaseName);
02464     String password = guiSession.getAuthenticatedDatabasePassword(databaseName);
02465     try
02466     {
02467       VirtualDatabaseMBean mbean = jmxClient.getVirtualDatabaseProxy(
02468           databaseName, user, password);
02469       mbean.transferBackend(backendName, controllerName);
02470       bo.setControllerName(controllerName);
02471       // publicActionRemoveBackendFromGui(backendName);
02472     }
02473     catch (Exception e)
02474     {
02475       appendDebugText("Cannot remove backend:" + backendName, e);
02476     }
02477   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionGetControllerInfo String  controllerName  ) 
 

GetInfo for the given controller

Parameters:
controllerName the controllerName

Definition at line 1909 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.getXml().

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

01910   {
01911     try
01912     {
01913       ControllerMBean controllerMBean = actionGetControllerBean(controllerName);
01914       infoTextPane.setText(controllerMBean.getXml());
01915       centerPane.setSelectedComponent(infoScroll);
01916     }
01917     catch (Exception e)
01918     {
01919       appendDebugText("Failed to get info for controller:" + controllerName, e);
01920     }
01921   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadAuthenticatedDatabase  ) 
 

Load the virtual database after authentication.

Definition at line 1077 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.checkAdminAuthentication(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.hasRecoveryLog(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.viewControllerList().

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01078   {
01079     loginFrame.setVisible(false);
01080     try
01081     {
01082       String databaseName = loginFrame.getDatabaseName();
01083       String login = loginFrame.getLoginBox().getText().trim();
01084       String password = loginFrame.getPasswordBox().getText().trim();
01085 
01086       VirtualDatabaseMBean mbean = null;
01087       try
01088       {
01089         mbean = currentJmxClient.getVirtualDatabaseProxy(databaseName, login,
01090             password);
01091         if (mbean == null)
01092           throw new IOException("MBean connection lost");
01093       }
01094       catch (IOException ioe)
01095       {
01096         appendDebugText(ioe.getMessage());
01097         actionUnloadBackends(currentJmxClient.getRemoteName());
01098         return;
01099       }
01100 
01101       if (!mbean.checkAdminAuthentication(login, password))
01102       {
01103         throw new Exception("Authentication failed");
01104       }
01105 
01106       databaseMBeans.put(databaseName, mbean);
01107       guiSession.addDatabaseToSession(databaseName, login, password);
01108 
01109       String[] list = mbean.viewControllerList();
01110       for (int i = 0; i < list.length; i++)
01111       {
01112         appendDebugText("Found controllerL" + list[i]);
01113         if (!guiSession.checkControllerInSession(list[i]))
01114         {
01115           actionLoadController(list[i]);
01116           RmiJmxClient client = (RmiJmxClient) jmxClients.get(list[i]);
01117           // get the listeners on the virtual database
01118           client.getVirtualDatabaseProxy(databaseName, login, password);
01119           paintControllerPane();
01120         }
01121       }
01122 
01123       boolean recoveryExist = mbean.hasRecoveryLog();
01124       appendDebugText("RecoveryLog is defined for this database:"
01125           + recoveryExist);
01126       actionLoadBackendPane(recoveryExist);
01127 
01128       publicActionLoadBackendsList(databaseName);
01129       actionLoadCheckpointNames(databaseName);
01130       publicActionLoadDumpList(databaseName);
01131     }
01132     catch (Exception e1)
01133     {
01134       appendDebugText("Could not connect to database", e1);
01135     }
01136   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadBackendsList String  databaseName  ) 
 

Load the list of backends for the given database

Parameters:
databaseName the database to load the backends from

Definition at line 464 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackend(), org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.getAllBackendNames(), org.objectweb.cjdbc.common.shared.BackendInfo.getName(), org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.isDistributed(), org.objectweb.cjdbc.console.gui.CjdbcGui.paintBackendPane(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.viewGroupBackends().

Referenced by org.objectweb.cjdbc.console.gui.threads.task.RestoreBackendTask.run().

00465   {
00466     try
00467     {
00468       VirtualDatabaseMBean databaseMBean = actionGetDatabaseBean(databaseName);
00469       // ArrayList list = actionLoadCheckpointNames(databaseName);
00470       ArrayList backends = databaseMBean.getAllBackendNames();
00471       appendDebugText("Local Backend list for controller("
00472           + currentJmxClient.getRemoteName() + ") is:" + backends);
00473       for (int i = 0; i < backends.size(); i++)
00474         actionLoadBackend(databaseName, (String) backends.get(i),
00475             currentJmxClient.getRemoteName(), true);
00476 
00477       if (databaseMBean.isDistributed())
00478       {
00479         databaseMBean = actionGetDatabaseBean(databaseName);
00480         Hashtable map;
00481         try
00482         {
00483           map = databaseMBean.viewGroupBackends();
00484           Enumeration enumeration = map.keys();
00485           while (enumeration.hasMoreElements())
00486           {
00487             String controllerName = (String) enumeration.nextElement();
00488             ArrayList list = (ArrayList) map.get(controllerName);
00489             for (int i = 0; i < list.size(); i++)
00490             {
00491               BackendInfo info = (BackendInfo) list.get(i);
00492               String backendName = info.getName();
00493               actionLoadBackend(databaseName, backendName, controllerName,
00494                   false);
00495             }
00496           }
00497         }
00498         catch (RuntimeException e1)
00499         {
00500           appendDebugText(
00501               "Runtime exception while loading distributed database:"
00502                   + databaseName, e1);
00503         }
00504 
00505       }
00506       paintBackendPane();
00507     }
00508     catch (Exception e)
00509     {
00510       appendDebugText("Could not retrieve backend list for database"
00511           + databaseName, e);
00512     }
00513   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadControllerList  ) 
 

Load the controller list. Removes all the controller icons from the panel. and get all the controllers from the session hashtable Then calls actionLoadController

Definition at line 933 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerListPopUpMenu.actionPerformed().

00934   {
00935     if (controllerListPanel != null)
00936     {
00937       controllerListPanel.removeAll();
00938       ArrayList controllerItems = guiSession.getControllerItems();
00939       int size = controllerItems.size();
00940       for (int i = 0; i < size; i++)
00941         actionLoadController((String) controllerItems.get(i));
00942       paintControllerPane();
00943     }
00944   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadDriver String  controllerName  ) 
 

Add a new driver to the controller. Start the file chooser and use the proper MBean

Parameters:
controllerName name of the controller

See also:
javax.swing.filechooser.FileFilter#accept(java.io.File)

See also:
javax.swing.filechooser.FileFilter#getDescription()

Definition at line 1161 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

01162   {
01163     if (jarFileChooser == null)
01164     {
01165       jarFileChooser = new JFileChooser(".");
01166       jarFileChooser.setFileFilter(new FileFilter()
01167       {
01168         /**
01169          * @see javax.swing.filechooser.FileFilter#accept(java.io.File)
01170          */
01171         public boolean accept(File f)
01172         {
01173           if (f.getAbsolutePath().endsWith(".jar") || f.isDirectory())
01174             return true;
01175           else
01176             return false;
01177         }
01178 
01179         /**
01180          * @see javax.swing.filechooser.FileFilter#getDescription()
01181          */
01182         public String getDescription()
01183         {
01184           return "Jar Files";
01185         }
01186       });
01187     }
01188     jarFileChooser.showOpenDialog(this);
01189     File selFile = jarFileChooser.getSelectedFile();
01190     try
01191     {
01192       if (selFile != null)
01193       {
01194         ControllerMBean controllerMBean = actionGetControllerBean(controllerName);
01195         controllerMBean.addDriver(readDriver(selFile.getAbsolutePath()));
01196       }
01197     }
01198     catch (Exception e)
01199     {
01200       appendDebugText("Could not load driver from jar file:"
01201           + selFile.getName());
01202     }
01203   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadDumpList String  databaseName  ) 
 

Loads the graphic dump list for this databaser

Parameters:
databaseName the virtual database name

Definition at line 1392 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.getAvailableDumpFiles().

01393   {
01394     VirtualDatabaseMBean databaseMBean = actionGetDatabaseBean(databaseName);
01395     try
01396     {
01397       File[] dumps = databaseMBean.getAvailableDumpFiles();
01398       appendDebugText("Loaded dumps for virtual database:" + databaseName);
01399       JPanel dumpPane = (JPanel) backendsState
01400           .get(GuiConstants.BACKEND_STATE_RESTORE);
01401       dumpPane.removeAll();
01402       for (int i = 0; i < dumps.length; i++)
01403       {
01404         appendDebugText("Adding dump:" + dumps[i]);
01405         DumpFileObject dfo = new DumpFileObject(dumps[i])
01406         {
01407           public JToolTip createToolTip()
01408           {
01409             return new JMultiLineToolTip();
01410           }
01411         };
01412         dfo.addMouseListener(new DumpPopUpMenu(this, databaseName, dfo));
01413         DropTarget target = new DropTarget(dfo, DnDConstants.ACTION_MOVE,
01414             backendTransferListener);
01415         dfo.setDropTarget(target);
01416         dumpPane.add(dfo);
01417       }
01418       paintBackendPane();
01419     }
01420     catch (Exception e)
01421     {
01422       e.printStackTrace();
01423       appendDebugText("Failed to load dumps for virtual database:"
01424           + databaseName + " because of:" + e.getMessage());
01425     }
01426   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadXmlController String  connectUrl  ) 
 

Load the xml for the given controller Gives the focus to the xml panel with the new content

Parameters:
connectUrl controllerName

Definition at line 1434 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.getXml().

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

01435   {
01436     try
01437     {
01438       ControllerMBean controllerMBean = actionGetControllerBean(connectUrl);
01439       xmlTextPane.setText(controllerMBean.getXml());
01440       appendDebugText("Loaded xml configuration for controller:" + connectUrl);
01441     }
01442     catch (Exception e)
01443     {
01444       appendDebugText("Failed to get xml configuration for controller:"
01445           + connectUrl);
01446     }
01447   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadXmlDatabase String  databaseName  ) 
 

Load the xml configuration of the given database and display the xml buffer

Parameters:
databaseName virtual database name to get configuration from

Definition at line 1492 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.getXml().

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

01493   {
01494     try
01495     {
01496       VirtualDatabaseMBean databaseMBean = actionGetDatabaseBean(databaseName);
01497       xmlTextPane.setText(XmlTools.prettyXml(databaseMBean.getXml()));
01498       appendDebugText("Loaded xml configuration for database:" + databaseName);
01499       centerPane.setSelectedComponent(xmlScroll);
01500     }
01501     catch (Exception e)
01502     {
01503       appendDebugText("Failed to get xml configuration for database:"
01504           + databaseName, e);
01505     }
01506   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionNewBackendPrompt BackendObject  bob  ) 
 

Open the frame to fill in details to create a new backend

Parameters:
bob the backend to replicate

Definition at line 1754 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.BackendPopUpMenu.actionPerformed().

01755   {
01756     if (newBackendFrame == null)
01757       newBackendFrame = new NewBackendFrame(bob, guiActionListener);
01758     else
01759       newBackendFrame.setBob(bob);
01760     newBackendFrame.setVisible(true);
01761   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionQuit  ) 
 

Quit the GUI

Definition at line 1141 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01142   {
01143     try
01144     {
01145       guiSession.saveSessionToFile(new File(
01146           GuiConstants.CJDBC_DEFAULT_SESSION_FILE));
01147     }
01148     catch (IOException e)
01149     {
01150       System.out.println("Could not save session");
01151     }
01152     System.exit(0);
01153   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRefreshCursorShape  ) 
 

Set the cursor to be a hand

Definition at line 1847 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.dnd.listeners.ControllerTransferListener.drop(), and org.objectweb.cjdbc.console.gui.dnd.listeners.BackendTransferListener.drop().

01848   {
01849     appendDebugText("Refresh cursor for main frame");
01850     Cursor cursor = Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);
01851     setCursor(cursor);
01852     backendPanel.setCursor(cursor);
01853     validate();
01854     repaint();
01855   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRefreshLogs String  controllerName  ) 
 

Fetch the logs from the controller

Parameters:
controllerName the name of the controller

Definition at line 1232 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.generateLogReport().

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

01233   {
01234     try
01235     {
01236       ControllerMBean controllerMBean = actionGetControllerBean(controllerName);
01237       loggingTextPane.setText(controllerMBean.generateLogReport());
01238       appendDebugText("Re-Fetched logs for controller:" + controllerName);
01239     }
01240     catch (Exception e)
01241     {
01242       appendDebugText("Fail to fetch logs for controller:" + controllerName, e);
01243     }
01244   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRefreshMBeanAttributes ObjectName  mbean  ) 
 

Refresh MBean attributes.

Parameters:
mbean the MBean to refresh

Definition at line 2720 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.valueChanged().

02721   {
02722     try
02723     {
02724       appendDebugText("Fetching attributes for mbean:" + mbean);
02725       MBeanInfo info = currentJmxClient.getMBeanInfo(mbean);
02726       MBeanAttributeInfo[] attrInfo = info.getAttributes();
02727 
02728       AttributeModel dataModel = new AttributeModel(attrInfo, currentJmxClient,
02729           mbean);
02730       attributeTable.setModel(dataModel);
02731     }
02732     catch (Exception e)
02733     {
02734       appendDebugText("Could not fetch attributes for mbean:" + mbean);
02735     }
02736   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRefreshMBeanMethods ObjectName  mbean  ) 
 

Refresh MBean methods.

Parameters:
mbean the MBean to refresh

Definition at line 2743 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.valueChanged().

02744   {
02745     try
02746     {
02747       appendDebugText("Fetching methods for mbean:" + mbean);
02748       MBeanInfo info = currentJmxClient.getMBeanInfo(mbean);
02749       MBeanOperationInfo[] operInfo = info.getOperations();
02750 
02751       OperationModel dataModel = new OperationModel(operInfo);
02752       operationTable.setModel(dataModel);
02753     }
02754     catch (Exception e)
02755     {
02756       appendDebugText("Could not fetch methods for mbean:" + mbean);
02757     }
02758   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRefreshMBeans  ) 
 

Refresh the list of mbeans

Definition at line 2644 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.focusGained().

02645   {
02646     Set set;
02647     if (currentJmxClient == null)
02648     {
02649       appendDebugText("Jmx Client has not been set yet");
02650       return;
02651     }
02652     try
02653     {
02654       appendDebugText("Refreshing mbeans for jmx server:"
02655           + currentJmxClient.getRemoteName());
02656       set = currentJmxClient.listCJDBCMBeans();
02657       int size = set.size();
02658       Iterator iter = set.iterator();
02659       Object[] data = new Object[size];
02660       for (int i = 0; i < size; i++)
02661         data[i] = ((ObjectInstance) iter.next()).getObjectName();
02662       mbeanList.setListData(data);
02663       mbeanList.validate();
02664       appendDebugText("Finished Refreshing mbeans for jmx server:"
02665           + currentJmxClient.getRemoteName());
02666     }
02667     catch (Exception e)
02668     {
02669       appendDebugText("Failed Refreshing mbeans for jmx server:"
02670           + currentJmxClient.getRemoteName());
02671     }
02672   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRemoveBackend BackendObject  bo  ) 
 

Remove a backend from the backend list, and from the controller

Parameters:
bo the BackendObject that originated the action

Definition at line 2419 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getControllerName(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.removeBackend().

Referenced by org.objectweb.cjdbc.console.gui.popups.BackendPopUpMenu.actionPerformed().

02420   {
02421     boolean confirm = actionDisplayConfirmFrame(GuiTranslate.get(
02422         "gui.confirm.remove.backend", bo.getName()));
02423     if (!confirm)
02424     {
02425       appendDebugText("Cancelling backend deletion...");
02426       return;
02427     }
02428 
02429     String controllerName = bo.getControllerName();
02430     String databaseName = bo.getDatabase();
02431     String backendName = bo.getName();
02432     RmiJmxClient jmxClient = (RmiJmxClient) jmxClients.get(controllerName);
02433     String user = guiSession.getAuthenticatedDatabaseLogin(databaseName);
02434     String password = guiSession.getAuthenticatedDatabasePassword(databaseName);
02435     try
02436     {
02437       VirtualDatabaseMBean mbean = jmxClient.getVirtualDatabaseProxy(
02438           databaseName, user, password);
02439       mbean.removeBackend(backendName);
02440       publicActionRemoveBackendFromGui(backendName);
02441     }
02442     catch (Exception e)
02443     {
02444       appendDebugText("Cannot remove backend:" + backendName, e);
02445     }
02446 
02447   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRemoveBackendFromGui String  backendName,
String  controller
 

Performs checks before calling <method>publicActionRemoveBackendFromGui </method>

Parameters:
backendName the backend name to remove
controller the controller that it was removed from

Definition at line 2486 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getControllerName().

02488   {
02489     BackendObject bo = (BackendObject) backendList.get(backendName);
02490     if (bo != null)
02491     {
02492       String boController = bo.getControllerName();
02493       if (boController.equals(controller))
02494         publicActionRemoveBackendFromGui(backendName);
02495       else
02496       {
02497         appendDebugText("Call for removing backend:" + backendName
02498             + " from controller:" + controller
02499             + " but backend is on controller:" + boController);
02500       }
02501     }
02502 
02503   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRemoveBackendFromGui String  backendName  ) 
 

Remove the backend graphic object from the gui

Parameters:
backendName the backend to remove

Definition at line 2402 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getState().

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackend().

02403   {
02404     BackendObject bo = (BackendObject) backendList.remove(backendName);
02405     if (bo != null)
02406     {
02407       backendIcons.remove(bo);
02408       JPanel panel = (JPanel) backendsState.get(bo.getState());
02409       panel.remove(bo);
02410       paintBackendPane();
02411     }
02412   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRemoveConfigurationFile ConfigurationFileObject  cfo  ) 
 

Remove a configuration file from the list

Parameters:
cfo the file object associated

Definition at line 2225 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.ConfigurationFileObject.getFilePath().

Referenced by org.objectweb.cjdbc.console.gui.popups.ConfigurationFilePopUpMenu.actionPerformed().

02226   {
02227     Container container = cfo.getParent();
02228     container.remove(cfo);
02229     System.out.println(guiSession.getConfigurationFiles().remove(
02230         new File(cfo.getFilePath())));
02231     container.validate();
02232     container.repaint();
02233   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRestoreBackend String  backendName,
String  dumpName
 

Restore a backend from a dump file

Parameters:
backendName name of the backend
dumpName name of the dump file

Definition at line 1769 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getMbean(), and org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.isReadEnabled().

01770   {
01771     BackendObject bob = (BackendObject) backendList.get(backendName);
01772     try
01773     {
01774       if (bob.getMbean().isReadEnabled())
01775       {
01776         String message = "Cannot restore an enabled backend";
01777         appendDebugText(message, new ConsoleException(message));
01778         return;
01779       }
01780     }
01781     catch (Exception e)
01782     {
01783       appendDebugText(e.getMessage(), e);
01784       return;
01785     }
01786     appendDebugText("Restoring backend:" + backendName + " with dump name:"
01787         + dumpName);
01788 
01789     VirtualDatabaseMBean database = actionGetDatabaseBean(bob.getDatabase());
01790     new Thread(new RestoreBackendTask(this, database, bob, dumpName)).start();
01791   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSaveConfigurationFile  ) 
 

saveConfigurationFile definition. Starts the JFile Chooser and write the xml content to the selected file

Definition at line 1259 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.XmlEditPopUpMenu.actionPerformed(), and org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01260   {
01261     try
01262     {
01263       if (saveFileChooser == null)
01264       {
01265         saveFileChooser = new JFileChooser();
01266         saveFileChooser.showSaveDialog(this);
01267         File selected = saveFileChooser.getSelectedFile();
01268         if (selected != null)
01269         {
01270           BufferedWriter writer = new BufferedWriter(new FileWriter(selected));
01271           writer.write(xmlTextPane.getText());
01272           writer.close();
01273         }
01274         else
01275         {
01276           appendDebugText("Did not select a file was saving...");
01277         }
01278       }
01279     }
01280     catch (Exception e)
01281     {
01282       appendDebugText("Error while writing to file:" + e.getMessage());
01283     }
01284   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSelectNewConfigurationFile String  file  ) 
 

Select a new configuration load the content of the xml file into the xmlTextPane panel

Parameters:
file the path to the xml file

Definition at line 1514 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.ConfigurationFilePopUpMenu.actionPerformed().

01515   {
01516     try
01517     {
01518       xmlTextPane.setText(actionLoadXmlText(new File(file)));
01519       appendDebugText("Loaded xml configuration for file:" + file);
01520       centerPane.setSelectedComponent(xmlScroll);
01521     }
01522     catch (Exception e)
01523     {
01524       appendDebugText("Failed to load xml for file:" + file);
01525     }
01526   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSelectNewController String  connectUrl  ) 
 

Action when a new controller has been selected

Parameters:
connectUrl the url of the controller that was selected

Definition at line 1349 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01350   {
01351     Enumeration enume = controllerList.keys();
01352     String key = "";
01353     ControllerObject controller;
01354     while (enume.hasMoreElements())
01355     {
01356       key = (String) enume.nextElement();
01357       controller = (ControllerObject) controllerList.get(key);
01358       if (key.equalsIgnoreCase(connectUrl))
01359       {
01360         controller.setBorder(GuiConstants.TITLED_BORDER);
01361         controller.setBorderPainted(true);
01362       }
01363       else
01364         controller.setBorderPainted(false);
01365     }
01366     actionGetControllerBean(connectUrl);
01367     selectedController = connectUrl;
01368     actionLoadDatabaseList(connectUrl);
01369     publicActionLoadXmlController(connectUrl);
01370 
01371     if (selectedDatabase != null)
01372       publicActionLoadAuthenticatedDatabase();
01373 
01374     actionStartControllerLoggingThread(connectUrl);
01375   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSelectNewDatabase String  value  ) 
 

Select a new database action

Parameters:
value the name of the virtual dababase

Definition at line 1454 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.viewControllerList().

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

01455   {
01456     selectedDatabase = value;
01457     try
01458     {
01459       VirtualDatabaseMBean databaseClient = actionGetDatabaseBean(value);
01460       if (databaseClient != null)
01461       {
01462         databaseClient.viewControllerList();
01463         publicActionLoadAuthenticatedDatabase();
01464       }
01465       Enumeration enume = databaseList.keys();
01466       String key = "";
01467       DatabaseObject database;
01468       while (enume.hasMoreElements())
01469       {
01470         key = (String) enume.nextElement();
01471         database = (DatabaseObject) databaseList.get(key);
01472         if (key.equalsIgnoreCase(value))
01473         {
01474           database.setBorder(GuiConstants.TITLED_BORDER);
01475           database.setBorderPainted(true);
01476         }
01477         else
01478           database.setBorderPainted(false);
01479       }
01480     }
01481     catch (Exception e)
01482     {
01483       appendDebugText("Failed to get access to database:" + value, e);
01484     }
01485   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSetCheckpoint BackendObject  bo  ) 
 

Set the checkpoint of a backend

Parameters:
bo the backend to change the checkpoint

Definition at line 2559 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getDatabase(), org.objectweb.cjdbc.console.gui.objects.BackendObject.getMbean(), and org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.setLastKnownCheckpoint().

Referenced by org.objectweb.cjdbc.console.gui.popups.BackendPopUpMenu.actionPerformed().

02560   {
02561     String backendName = bo.getName();
02562     String database = bo.getDatabase();
02563     String checkpoint = actionDisplaySelectCheckpointFrame(database);
02564     try
02565     {
02566       appendDebugText("Setting checkpoint for backend:" + backendName + ":"
02567           + checkpoint);
02568       bo.getMbean().setLastKnownCheckpoint(checkpoint);
02569     }
02570     catch (Exception e)
02571     {
02572       appendDebugText("Failed to set checkpoint for backend:" + backendName, e);
02573     }
02574   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSetLogConfigurationDebug String  controllerName,
String  logConfiguration
 

Change the log4j configuration to Debug mode for all loggers

Parameters:
controllerName the name of the controller of this configuration
logConfiguration the content as a String of the log4j configuration

Definition at line 2099 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.LogEditPopUpMenu.actionPerformed().

02101   {
02102     try
02103     {
02104       String newContent = actionReplaceInConfiguration(logConfiguration,
02105           "INFO", "DEBUG");
02106       publicActionUpdateControllerLogConfiguration(controllerName, newContent);
02107     }
02108     catch (Exception e)
02109     {
02110       appendDebugText("Setting log configation to debug failed for controller:"
02111           + controllerName, e);
02112     }
02113   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSetLogConfigurationInfo String  controllerName,
String  logConfiguration
 

Change the log4j configuration to Info mode for all loggers

Parameters:
controllerName the name of the controller of this configuration
logConfiguration the content as a String of the log4j configuration

Definition at line 2183 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.LogEditPopUpMenu.actionPerformed().

02185   {
02186     try
02187     {
02188       String newContent = actionReplaceInConfiguration(logConfiguration,
02189           "DEBUG", "INFO");
02190       publicActionUpdateControllerLogConfiguration(controllerName, newContent);
02191     }
02192     catch (Exception e)
02193     {
02194       appendDebugText("Setting log configation to debug failed for controller:"
02195           + controllerName, e);
02196     }
02197 
02198   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSetLogConfigurationServer boolean  enableServer,
String  controllerName,
String  logConfiguration
 

Add/remove log4j server output

Parameters:
enableServer true to enable
controllerName of the controller for this configuration
logConfiguration logFile name

Definition at line 2122 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.LogEditPopUpMenu.actionPerformed().

02124   {
02125     try
02126     {
02127       String msg = "Setting server configuration to " + enableServer
02128           + " for controller:" + controllerName;
02129       appendDebugText(msg);
02130       String newContent = "";
02131       if (enableServer)
02132       {
02133         // if it was enabled before ?
02134         String tmp = actionReplaceInConfiguration(logConfiguration,
02135             "Console,server", "Console");
02136         newContent = actionReplaceInConfiguration(tmp, "Console,",
02137             "Console,server,");
02138       }
02139       else
02140       {
02141         newContent = actionReplaceInConfiguration(logConfiguration,
02142             "Console,server", "Console");
02143       }
02144       publicActionUpdateControllerLogConfiguration(controllerName, newContent);
02145     }
02146     catch (Exception e)
02147     {
02148       appendDebugText(
02149           "Setting log configation of appender server failed for controller:"
02150               + controllerName, e);
02151     }
02152 
02153   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionShutdownController String  controllerName  ) 
 

Shutdown the given controller

Parameters:
controllerName name of the controller to shutdown

Definition at line 1928 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.getVirtualDatabaseNames(), and org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.shutdown().

Referenced by org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed().

01929   {
01930     ControllerMBean controllerMBean = null;
01931     int shutdownLevel = 2;
01932     try
01933     {
01934       controllerMBean = actionGetControllerBean(controllerName);
01935     }
01936     catch (Exception e)
01937     {
01938       appendDebugText("Failed to get a proxy to shutdown the controller:"
01939           + controllerName, e);
01940     }
01941     try
01942     {
01943       if (controllerMBean != null)
01944       {
01945         ArrayList databases = controllerMBean.getVirtualDatabaseNames();
01946         for (int i = 0; i < databases.size(); i++)
01947         {
01948           DatabaseObject dob = (DatabaseObject) databaseList.get(databases
01949               .get(i));
01950           appendDebugText("Shutting down database:" + dob.getName()
01951               + " with level:" + shutdownLevel);
01952           publicActionShutdownDatabase(dob, shutdownLevel);
01953         }
01954         controllerMBean.shutdown(shutdownLevel);
01955       }
01956       else
01957         appendDebugText("Failed to get a proxy to shutdown the controller:"
01958             + controllerName);
01959     }
01960     catch (Exception e)
01961     {
01962       // lost connection expected
01963     }
01964     publicActionLoadControllerList();
01965 
01966   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionShutdownDatabase DatabaseObject  dob,
int  shutdownLevel
 

Send a shutdown command to the corresponding database

Parameters:
dob database object representing the database to shutdown
shutdownLevel the level to apply for the shutdown

Definition at line 1534 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.DatabaseObject.getControllerName(), and org.objectweb.cjdbc.common.jmx.mbeans.VirtualDatabaseMBean.shutdown().

01535   {
01536     try
01537     {
01538       String databaseName = dob.getName();
01539       VirtualDatabaseMBean vdbMBean = actionGetDatabaseBean(databaseName);
01540       vdbMBean.shutdown(shutdownLevel);
01541       controllerListPanel.remove(dob);
01542       guiSession.getDatabaseItems().remove(databaseName);
01543       String controllerName = dob.getControllerName();
01544       actionUnloadBackends(controllerName);
01545       actionLoadDatabaseList(controllerName);
01546     }
01547     catch (Exception e)
01548     {
01549       appendDebugText("Failed to shutdown database", e);
01550     }
01551   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionStartMonitor String  controllerName,
boolean  displayController,
boolean  displayVdb,
boolean  displayBackends
 

Start monitoring console.

Parameters:
controllerName the controller to monitor
displayController true if controller pane should be displayed
displayVdb true if virtual database pane should be displayed
displayBackends true if backend pane should be displayed

Definition at line 2261 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed(), org.objectweb.cjdbc.console.gui.popups.ControllerPopUpMenu.actionPerformed(), and org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

02263   {
02264     appendDebugText("Creating monitoring console for controller:"
02265         + controllerName);
02266     try
02267     {
02268       new MonitoringConsole(controllerName, displayController
02269           ? actionGetControllerBean(controllerName)
02270           : null, displayVdb ? actionGetDatabaseBean(selectedDatabase) : null,
02271           displayBackends);
02272     }
02273     catch (Exception e)
02274     {
02275       appendDebugText("Loading of monitoring console failed for controller:"
02276           + controllerName, e);
02277     }
02278   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionTestBackendConnection BackendObject  bo  ) 
 

Test jdbc connection on this backend

Parameters:
bo the backend object to test the connection on

Definition at line 2613 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getMbean(), and org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.isJDBCConnected().

Referenced by org.objectweb.cjdbc.console.gui.popups.BackendPopUpMenu.actionPerformed().

02614   {
02615     try
02616     {
02617       DatabaseBackendMBean bean = bo.getMbean();
02618       boolean ok = bean.isJDBCConnected();
02619       String message = "Backend " + bo.getName();
02620       if (ok)
02621         message += " has ";
02622       else
02623         message += " does not have ";
02624       message += "JDBC Connectivity.";
02625 
02626       appendDebugText("Result of JDBC Connect[" + bo.getName() + "]:" + ok);
02627 
02628       Icon icon = (ok)
02629           ? GuiIcons.BACKEND_ENABLED_ICON
02630           : GuiIcons.BACKEND_DISABLED_ICON;
02631       JOptionPane.showMessageDialog(this, message, bo.getName(),
02632           JOptionPane.INFORMATION_MESSAGE, icon);
02633     }
02634     catch (Exception e)
02635     {
02636       appendDebugText(
02637           "Cannot determine if backend has still JDBC connectivity", e);
02638     }
02639   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionTileJmxFrames boolean  vertical  ) 
 

Position the jmx frames on the desktop

Parameters:
vertical tile the frames vertically if true, horizontally if false

Definition at line 2679 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.focusGained().

02680   {
02681     Dimension dim = jmxPanel.getSize();
02682     double height = dim.getHeight();
02683     double width = dim.getWidth();
02684     if (vertical)
02685       width = width / 3;
02686     else
02687       height = height / 3;
02688 
02689     Dimension newDim = new Dimension((int) width, (int) height);
02690     attributeFrame.setSize(newDim);
02691     operationFrame.setSize(newDim);
02692     mbeanFrame.setSize(newDim);
02693 
02694     int x = (int) jmxPanel.getLocation().getX();
02695     int y = 0; // problem with y value
02696 
02697     mbeanFrame.setLocation(x, y);
02698     if (vertical)
02699     {
02700       mbeanFrame.setLocation(x, y);
02701       attributeFrame.setLocation((int) (x + width), y);
02702       operationFrame.setLocation((int) (x + 2 * width), y);
02703     }
02704     else
02705     {
02706       mbeanFrame.setLocation(x, y);
02707       attributeFrame.setLocation(x, (int) (y + height));
02708       operationFrame.setLocation(x, (int) (y + 2 * height));
02709     }
02710 
02711     jmxPanel.validate();
02712 
02713   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionUnSetCheckpoint BackendObject  bo  ) 
 

Unset checkpoint of a backend (set it to null)

Parameters:
bo backend object

Definition at line 2581 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.gui.objects.BackendObject.getMbean(), and org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.setLastKnownCheckpoint().

Referenced by org.objectweb.cjdbc.console.gui.popups.BackendPopUpMenu.actionPerformed().

02582   {
02583     String backendName = bo.getName();
02584     boolean confirm = actionDisplayConfirmFrame(GuiTranslate.get(
02585         "gui.confirm.unset.backend.checkpoint", backendName));
02586     if (!confirm)
02587     {
02588       appendDebugText("Cancelling backend null checkpoint...");
02589       return;
02590     }
02591     try
02592     {
02593       appendDebugText("UnSetting checkpoint for backend:" + backendName);
02594       bo.getMbean().setLastKnownCheckpoint(null);
02595     }
02596     catch (Exception e)
02597     {
02598       appendDebugText("Failed to unset checkpoint for backend:" + backendName,
02599           e);
02600     }
02601     finally
02602     {
02603       actionRefreshBackendState(bo);
02604     }
02605 
02606   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionUpdateControllerLogConfiguration String  controllerName,
String  newContent
 

Update the controller log4j configuration file, and restart the logger thread

Parameters:
controllerName the controller's url
newContent the new log4j configuration

Definition at line 2074 of file CjdbcGui.java.

References org.objectweb.cjdbc.common.jmx.mbeans.ControllerMBean.updateLogConfigurationFile().

Referenced by org.objectweb.cjdbc.console.gui.popups.LogEditPopUpMenu.actionPerformed().

02076   {
02077     try
02078     {
02079       appendDebugText("Updating log4j configuration for controller:"
02080           + controllerName);
02081       ControllerMBean controllerMBean = actionGetControllerBean(controllerName);
02082       controllerMBean.updateLogConfigurationFile(newContent);
02083       actionStartControllerLoggingThread(controllerName);
02084     }
02085     catch (Exception e)
02086     {
02087       appendDebugText("Failed to update log4j configuration for controller:"
02088           + controllerName, e);
02089     }
02090   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionViewCache String  databaseName  ) 
 

Display the cache content in a new frame

Parameters:
databaseName database name that contains the cache

Definition at line 2308 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.views.InfoViewer.display().

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

02309   {
02310     try
02311     {
02312       DataCollectorMBean collector = currentJmxClient.getDataCollectorProxy();
02313       CacheViewer viewer = new CacheViewer(collector
02314           .retrieveCacheData(databaseName));
02315       viewer.display();
02316     }
02317     catch (Exception e)
02318     {
02319       appendDebugText("Failed to collect cache data for database:"
02320           + databaseName, e);
02321     }
02322   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionViewCacheStats String  databaseName  ) 
 

Display the cache stats

Parameters:
databaseName virtual database name

Definition at line 2351 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.views.InfoViewer.display().

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

02352   {
02353     try
02354     {
02355       DataCollectorMBean collector = currentJmxClient.getDataCollectorProxy();
02356       CacheStatsViewer viewer = new CacheStatsViewer(collector
02357           .retrieveCacheStatsData(databaseName));
02358       viewer.display();
02359     }
02360     catch (Exception e)
02361     {
02362       appendDebugText("Failed to collect cache stats for database:"
02363           + databaseName, e);
02364     }
02365   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionViewRecoveryLog String  databaseName  ) 
 

Display the content of the recovery log in a frame

Parameters:
databaseName the database that containts the recovery log we want

Definition at line 2538 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.views.InfoViewer.display().

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

02539   {
02540     try
02541     {
02542       DataCollectorMBean collector = currentJmxClient.getDataCollectorProxy();
02543       RecoveryLogViewer viewer = new RecoveryLogViewer(collector
02544           .retrieveRecoveryLogData(databaseName));
02545       viewer.display();
02546     }
02547     catch (Exception e)
02548     {
02549       appendDebugText("Failed to collect cache stats for database:"
02550           + databaseName, e);
02551     }
02552   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionViewSQLStats String  databaseName  ) 
 

Display the SQL stats

Parameters:
databaseName virtual database name

Definition at line 2329 of file CjdbcGui.java.

References org.objectweb.cjdbc.console.views.InfoViewer.display().

Referenced by org.objectweb.cjdbc.console.gui.popups.DatabasePopUpMenu.actionPerformed().

02330   {
02331     try
02332     {
02333       DataCollectorMBean collector = currentJmxClient.getDataCollectorProxy();
02334       SQLStatViewer viewer = new SQLStatViewer(collector
02335           .retrieveSQLStats(databaseName));
02336       viewer.display();
02337     }
02338     catch (Exception e)
02339     {
02340       appendDebugText(
02341           "Failed to collect sql data for database:" + databaseName, e);
02342     }
02343 
02344   }

void org.objectweb.cjdbc.console.gui.CjdbcGui.setCurrentJmxClient RmiJmxClient  currentJmxClient  ) 
 

Sets the currentJmxClient value.

Parameters:
currentJmxClient The currentJmxClient to set.

Definition at line 2775 of file CjdbcGui.java.

02776   {
02777     this.currentJmxClient = currentJmxClient;
02778   }


Member Data Documentation

JPanel org.objectweb.cjdbc.console.gui.CjdbcGui.backendButtons [package]
 

Panels for the backend panel

Definition at line 257 of file CjdbcGui.java.

JPanel org.objectweb.cjdbc.console.gui.CjdbcGui.backendIcons [package]
 

Panels for the backend panel

Definition at line 257 of file CjdbcGui.java.

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.backendList [package]
 

List of backends [backendName] : [BackendObject]

Definition at line 158 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackend(), and org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState().

JPanel org.objectweb.cjdbc.console.gui.CjdbcGui.backendPanel [package]
 

Backend pane

Definition at line 240 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.paintBackendPane().

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.backendsState [package]
 

Hastable of backends states: [StateName] / [Panel]

Definition at line 156 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionChangeBackendState(), and org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState().

BackendTransferListener org.objectweb.cjdbc.console.gui.CjdbcGui.backendTransferListener [package]
 

Backend transfer listener used for drag and drop

Definition at line 212 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionLoadBackend().

JTabbedPane org.objectweb.cjdbc.console.gui.CjdbcGui.centerPane [package]
 

The center Pane

Definition at line 244 of file CjdbcGui.java.

JFileChooser org.objectweb.cjdbc.console.gui.CjdbcGui.configurationFileChooser [package]
 

the file chooser for configuration files

Definition at line 234 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionAddXmlFile().

ControllerTransferListener org.objectweb.cjdbc.console.gui.CjdbcGui.configurationFileTransferListener [package]
 

Configuration File transfer listener used for drag and drop

Definition at line 214 of file CjdbcGui.java.

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.controllerList [package]
 

List of controllers [controllerName] : [ControllerObject]

Definition at line 162 of file CjdbcGui.java.

JPanel org.objectweb.cjdbc.console.gui.CjdbcGui.controllerListPanel [package]
 

Panel for controller list

Definition at line 188 of file CjdbcGui.java.

ControllerListPopUpMenu org.objectweb.cjdbc.console.gui.CjdbcGui.controllerListPopUpMenu [package]
 

The controller list mouse listener

Definition at line 242 of file CjdbcGui.java.

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.controllerMBeans [package]
 

Controller MBeans [URL] / [ControllerJmxClient]

Definition at line 154 of file CjdbcGui.java.

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.databaseList [package]
 

List of databases [databaseName] : [DatabaseObject]

Definition at line 160 of file CjdbcGui.java.

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.databaseMBeans [package]
 

Virtual database MBeans [DatabaseName] / [VirtualDatabaseJmxClient]

Definition at line 152 of file CjdbcGui.java.

JScrollPane org.objectweb.cjdbc.console.gui.CjdbcGui.debugScroll [package]
 

Scroll panel for selection in center pane

Definition at line 246 of file CjdbcGui.java.

String org.objectweb.cjdbc.console.gui.CjdbcGui.debugText [package]
 

The texts of the debug,logging panel

Definition at line 224 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText().

JTextArea org.objectweb.cjdbc.console.gui.CjdbcGui.debugTextPane [package]
 

The debug panel itself

Definition at line 226 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText().

JTextArea org.objectweb.cjdbc.console.gui.CjdbcGui.debugTraceTextPane [package]
 

The panel for exceptions tracing

Definition at line 251 of file CjdbcGui.java.

GuiExceptionFrame org.objectweb.cjdbc.console.gui.CjdbcGui.exceptionFrame [package]
 

Exception frame for reporting errors from the server

Definition at line 198 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText().

JPanel org.objectweb.cjdbc.console.gui.CjdbcGui.fileListPanel [package]
 

The list containing the xml file NAMES, no paths

Definition at line 186 of file CjdbcGui.java.

JScrollPane org.objectweb.cjdbc.console.gui.CjdbcGui.fileScroll [package]
 

Scroll panels from the left pane

Definition at line 249 of file CjdbcGui.java.

CjdbcGuiListener org.objectweb.cjdbc.console.gui.CjdbcGui.guiActionListener [package]
 

GuiAction listener

Definition at line 217 of file CjdbcGui.java.

GuiSession org.objectweb.cjdbc.console.gui.CjdbcGui.guiSession [package]
 

Stored values for session

Definition at line 150 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState().

JScrollPane org.objectweb.cjdbc.console.gui.CjdbcGui.helpScroll [package]
 

Scroll panel for selection in center pane

Definition at line 246 of file CjdbcGui.java.

JScrollPane org.objectweb.cjdbc.console.gui.CjdbcGui.infoScroll [package]
 

Scroll panel for selection in center pane

Definition at line 246 of file CjdbcGui.java.

JTextPane org.objectweb.cjdbc.console.gui.CjdbcGui.infoTextPane [package]
 

The log panel itself

Definition at line 228 of file CjdbcGui.java.

GuiInputBackupFrame org.objectweb.cjdbc.console.gui.CjdbcGui.inputBackupFrame [package]
 

Select backup frame

Definition at line 206 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

JFileChooser org.objectweb.cjdbc.console.gui.CjdbcGui.jarFileChooser [package]
 

the file chooser for jar files

Definition at line 236 of file CjdbcGui.java.

Hashtable org.objectweb.cjdbc.console.gui.CjdbcGui.jmxClients [package]
 

List of jmx clients [url] : [RmiJmxClient]

Definition at line 165 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState().

JScrollPane org.objectweb.cjdbc.console.gui.CjdbcGui.logConfigScroll [package]
 

Scroll panel for selection in center pane

Definition at line 246 of file CjdbcGui.java.

JTextPane org.objectweb.cjdbc.console.gui.CjdbcGui.logConfigTextPane [package]
 

The panel for the log4j configuration

Definition at line 255 of file CjdbcGui.java.

JScrollPane org.objectweb.cjdbc.console.gui.CjdbcGui.loggingScroll [package]
 

Scroll panel for selection in center pane

Definition at line 246 of file CjdbcGui.java.

String org.objectweb.cjdbc.console.gui.CjdbcGui.loggingText [package]
 

The texts of the debug,logging panel

Definition at line 224 of file CjdbcGui.java.

JTextArea org.objectweb.cjdbc.console.gui.CjdbcGui.loggingTextPane [package]
 

The debug panel itself

Definition at line 226 of file CjdbcGui.java.

GuiLoggingThread org.objectweb.cjdbc.console.gui.CjdbcGui.logginThread [package]
 

The thread that connects to the log4j server on a host

Definition at line 178 of file CjdbcGui.java.

GuiVirtualDatabaseLoginFrame org.objectweb.cjdbc.console.gui.CjdbcGui.loginFrame [package]
 

Login frame

Definition at line 194 of file CjdbcGui.java.

NewBackendFrame org.objectweb.cjdbc.console.gui.CjdbcGui.newBackendFrame [package]
 

New Backend frame object

Definition at line 200 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

GuiNewControllerFrame org.objectweb.cjdbc.console.gui.CjdbcGui.newControllerFrame [package]
 

New controller frame objects

Definition at line 196 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

GuiParsingThread org.objectweb.cjdbc.console.gui.CjdbcGui.parsingThread [package]
 

The thread that parse the xml panel

Definition at line 230 of file CjdbcGui.java.

JFileChooser org.objectweb.cjdbc.console.gui.CjdbcGui.saveFileChooser [package]
 

the save file chooser for files

Definition at line 238 of file CjdbcGui.java.

GuiSelectCheckpointFrame org.objectweb.cjdbc.console.gui.CjdbcGui.selectCheckpointFrame [package]
 

Select checkpoint frame

Definition at line 202 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

GuiSelectShutdownFrame org.objectweb.cjdbc.console.gui.CjdbcGui.selectShutdownFrame [package]
 

Select shutdown frame

Definition at line 204 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGuiListener.actionPerformed().

JTextAreaWriter org.objectweb.cjdbc.console.gui.CjdbcGui.traceWriter [package]
 

Writer to the trace exception area in the backend panel

Definition at line 253 of file CjdbcGui.java.

Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.appendDebugText().

JPanel org.objectweb.cjdbc.console.gui.CjdbcGui.vdbListPanel [package]
 

The panel for the list of databases

Definition at line 184 of file CjdbcGui.java.

JScrollPane org.objectweb.cjdbc.console.gui.CjdbcGui.xmlScroll [package]
 

Scroll panel for selection in center pane

Definition at line 246 of file CjdbcGui.java.

JTextPane org.objectweb.cjdbc.console.gui.CjdbcGui.xmlTextPane [package]
 

The xml editor panel

Definition at line 232 of file CjdbcGui.java.


The documentation for this class was generated from the following file:
Generated on Mon Apr 11 22:02:16 2005 for C-JDBC by  doxygen 1.3.9.1