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

org.objectweb.cjdbc.console.views.ControllerLoadViewer Class Reference

Inheritance diagram for org.objectweb.cjdbc.console.views.ControllerLoadViewer:

Inheritance graph
[legend]
Collaboration diagram for org.objectweb.cjdbc.console.views.ControllerLoadViewer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ControllerLoadViewer (Object[][] data)
String[] getColumnNames ()
void setLabels ()
int[] getTraceableColumns ()

Protected Member Functions

Object[][] getDataTypes (Object[][] stats)

Static Package Attributes

final int COLUMNS = 6

Detailed Description

JVMLoad data statistics viewer. Quick and dirty implementation.

Author:
Nicolas Modrzyk
Version:
1.0

Definition at line 35 of file ControllerLoadViewer.java.


Constructor & Destructor Documentation

org.objectweb.cjdbc.console.views.ControllerLoadViewer.ControllerLoadViewer Object  data[][]  ) 
 

Create a BackendViewer

Parameters:
data Stats to display in the table

Definition at line 44 of file ControllerLoadViewer.java.

00045   {
00046     super(data);
00047   }


Member Function Documentation

String [] org.objectweb.cjdbc.console.views.ControllerLoadViewer.getColumnNames  )  [virtual]
 

See also:
InfoViewer.getColumnNames()

Implements org.objectweb.cjdbc.console.views.InfoViewer.

Definition at line 73 of file ControllerLoadViewer.java.

00074   {
00075     String[] columnNames = new String[COLUMNS];
00076     columnNames[0] = Translate.get("console.infoviewer.load.column.0");
00077     columnNames[1] = Translate.get("console.infoviewer.load.column.1");
00078     columnNames[2] = Translate.get("console.infoviewer.load.column.2");
00079     columnNames[3] = Translate.get("console.infoviewer.load.column.3");
00080     columnNames[4] = Translate.get("console.infoviewer.load.column.4");
00081     columnNames[5] = Translate.get("console.infoviewer.load.column.5");
00082     return columnNames;
00083   }

Object [][] org.objectweb.cjdbc.console.views.ControllerLoadViewer.getDataTypes Object  stats[][]  )  [protected, virtual]
 

Subclasses should overide this method to get coherent sorting

Parameters:
stats to display
Returns:
same sized objects array but with proper types default is strings only

Implements org.objectweb.cjdbc.console.views.InfoViewer.

Definition at line 49 of file ControllerLoadViewer.java.

00050   {
00051     int iSize = stats.length;
00052     Object[][] ret = new Object[iSize][];
00053     for (int i = 0; i < iSize; i++)
00054     {
00055       String[] aStat = (String[]) stats[i];
00056       int jSize = aStat.length;
00057       ret[i] = new Object[jSize];
00058       ret[i][0] = aStat[0];
00059       for (int j = 0; j < jSize; j++)
00060       {
00061         if (j ==0)
00062           ret[i][j] = new String(aStat[j]);
00063         else
00064           ret[i][j] = new Integer(aStat[j]);
00065       }
00066     }
00067     return ret;
00068   }

int [] org.objectweb.cjdbc.console.views.ControllerLoadViewer.getTraceableColumns  ) 
 

See also:
org.objectweb.cjdbc.console.views.InfoViewer.getTraceableColumns()

Reimplemented from org.objectweb.cjdbc.console.views.InfoViewer.

Definition at line 107 of file ControllerLoadViewer.java.

00108   {
00109     return new int[] {2,3,4,5};
00110   }

void org.objectweb.cjdbc.console.views.ControllerLoadViewer.setLabels  )  [virtual]
 

See also:
InfoViewer.setLabels()

Implements org.objectweb.cjdbc.console.views.InfoViewer.

Definition at line 90 of file ControllerLoadViewer.java.

00091   {
00092     frameTitle = Translate.get("console.infoviewer.load.frame.title");
00093     infoViewerMenuBarString = Translate.get("console.infoviewer.load.menubar");
00094     actionToolTipText = Translate
00095         .get("console.infoviewer.load.action.tooltiptext");
00096     actionErrorMessage = Translate
00097         .get("console.infoviewer.load.action.error.message");
00098     actionSuccessMessage = Translate
00099         .get("console.infoviewer.load.action.success.message");
00100     tableHeaderToolTipText = Translate
00101         .get("console.infoviewer.table.tooltip.text");
00102   }


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