mc4j-cvs Mailing List for MC4J JMX Console (Page 12)
Brought to you by:
ghinkl
You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
(7) |
Apr
(135) |
May
(32) |
Jun
(34) |
Jul
|
Aug
|
Sep
(7) |
Oct
(139) |
Nov
(11) |
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(34) |
Feb
(1) |
Mar
(12) |
Apr
|
May
(87) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(27) |
Nov
(49) |
Dec
(13) |
2006 |
Jan
|
Feb
|
Mar
|
Apr
(252) |
May
(16) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
|
Feb
|
Mar
(2) |
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
(3) |
Oct
|
Nov
(1) |
Dec
|
2009 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
(1) |
Jun
(2) |
Jul
(15) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
2010 |
Jan
|
Feb
(2) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
(6) |
Sep
(1) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
From: Greg H. <gh...@us...> - 2006-04-12 17:28:43
|
Update of /cvsroot/mc4j/mc4j/lib/boot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/lib/boot Added Files: Tag: ems_module_separation looks-1.3.1.jar Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: looks-1.3.1.jar --- (This appears to be a binary file; contents omitted.) |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:43
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/src/org/mc4j/console Modified Files: Tag: ems_module_separation ConnectAction.java IConnectionNode.java ManagementNode.java Welcome.html mc4j-mf-layer.xml Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. Index: ConnectAction.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/ConnectAction.java,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** ConnectAction.java 5 Oct 2004 05:16:19 -0000 1.15 --- ConnectAction.java 12 Apr 2006 17:28:39 -0000 1.15.2.1 *************** *** 17,24 **** package org.mc4j.console; ! import java.awt.Dialog; ! ! import javax.swing.SwingUtilities; ! import org.openide.DialogDisplayer; import org.openide.ErrorManager; --- 17,24 ---- package org.mc4j.console; ! import org.mc4j.console.connection.ConnectionNode; ! import org.mc4j.console.connection.persistence.ConnectionSetDatabase; ! import org.mc4j.console.connection.wizard.ConnectionDescriptor; ! import org.mc4j.ems.connection.settings.ConnectionSettings; import org.openide.DialogDisplayer; import org.openide.ErrorManager; *************** *** 28,34 **** import org.openide.util.actions.NodeAction; ! import org.mc4j.console.connection.persistence.ConnectionSetDatabase; ! import org.mc4j.console.connection.persistence.ConnectionSettings; ! import org.mc4j.console.connection.wizard.ConnectionDescriptor; /** --- 28,33 ---- import org.openide.util.actions.NodeAction; ! import javax.swing.*; ! import java.awt.*; /** *************** *** 49,53 **** final ConnectionDescriptor desc = new ConnectionDescriptor(); ! desc.getSettings().setLibraryURI(((ManagementNode)node).getLibraryURI()); final Dialog dlg = DialogDisplayer.getDefault().createDialog(desc); --- 48,53 ---- final ConnectionDescriptor desc = new ConnectionDescriptor(); ! // desc.getSettings().setLibraryURI(((ManagementNode)node).getLibraryURI()); ! final Dialog dlg = DialogDisplayer.getDefault().createDialog(desc); *************** *** 71,75 **** ConnectionSetDatabase.addNode(settings); ! IConnectionNode connectionNode = ManagementNode.buildConnection(settings); try { --- 71,76 ---- ConnectionSetDatabase.addNode(settings); ! IConnectionNode connectionNode = new ConnectionNode(settings); ! //ManagementNode.buildConnection(settings); try { Index: IConnectionNode.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/IConnectionNode.java,v retrieving revision 1.9 retrieving revision 1.9.2.1 diff -C2 -d -r1.9 -r1.9.2.1 *** IConnectionNode.java 13 Oct 2004 05:05:33 -0000 1.9 --- IConnectionNode.java 12 Apr 2006 17:28:39 -0000 1.9.2.1 *************** *** 17,21 **** package org.mc4j.console; ! import org.mc4j.console.connection.persistence.ConnectionSettings; /** --- 17,21 ---- package org.mc4j.console; ! import org.mc4j.ems.connection.settings.ConnectionSettings; /** Index: ManagementNode.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/ManagementNode.java,v retrieving revision 1.28 retrieving revision 1.28.2.1 diff -C2 -d -r1.28 -r1.28.2.1 *** ManagementNode.java 14 Mar 2005 15:16:18 -0000 1.28 --- ManagementNode.java 12 Apr 2006 17:28:39 -0000 1.28.2.1 *************** *** 17,40 **** package org.mc4j.console; ! import org.mc4j.console.connection.install.ConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.GeronimoConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.J2SE5ConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.JBossConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.JDMKConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.JSR160ConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.Mx4jConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.Oc4jConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.PramatiConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.SJSASConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.Tomcat55ConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.Weblogic9ConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.Weblogic9Jsr77ConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.WeblogicConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.WebsphereConnectionTypeDescriptor; ! import org.mc4j.console.connection.install.WebsphereStudioConnectionTypeDescriptor; import org.mc4j.console.connection.persistence.ConnectionSetDatabase; ! import org.mc4j.console.connection.persistence.ConnectionSettings; import org.openide.ErrorManager; - import org.openide.modules.InstalledFileLocator; import org.openide.nodes.AbstractNode; import org.openide.nodes.Children; --- 17,26 ---- package org.mc4j.console; ! ! import org.mc4j.console.connection.ConnectionNode; import org.mc4j.console.connection.persistence.ConnectionSetDatabase; ! import org.mc4j.ems.connection.settings.ConnectionSettings; ! import org.mc4j.ems.connection.support.metadata.ConnectionTypeDescriptor; import org.openide.ErrorManager; import org.openide.nodes.AbstractNode; import org.openide.nodes.Children; *************** *** 47,51 **** import java.io.File; import java.io.FileFilter; - import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; --- 33,36 ---- *************** *** 95,99 **** return null; } else { ! return new Action[] { NodeAction.get(ConnectAction.class) }; --- 80,84 ---- return null; } else { ! return new Action[]{ NodeAction.get(ConnectAction.class) }; *************** *** 116,139 **** ConnectionSettings desc = (ConnectionSettings) iter.next(); ! IConnectionNode connectionNode = null; ! ! ! //IOProvider.getDefault().getStdOut().println( ! // "[" + installType + "] Reconnecting to saved connection: " + ! // desc.getConnectionName() + "@" + desc.getServerUrl()); ! ! this.libraryURI = desc.getLibraryURI(); ! ! try { ! // Load each connection and try-catch so that one connection problem ! // won't screw up the rest ! connectionNode = buildConnection(desc); ! this.getChildren().add( new Node[] { (Node) connectionNode }); ! } catch(Exception e) { ! // Lets just kill it ! ConnectionSetDatabase.removeNode(desc); ! //ErrorManager.getDefault().notify(e); ! } --- 101,107 ---- ConnectionSettings desc = (ConnectionSettings) iter.next(); ! ConnectionNode connectionNode = new ConnectionNode(desc); ! this.getChildren().add(new Node[]{(Node) connectionNode}); *************** *** 153,175 **** - public static final ConnectionTypeDescriptor[] CONNECTION_DESCRIPTORS = - new ConnectionTypeDescriptor[] { - new JBossConnectionTypeDescriptor(), - new Tomcat55ConnectionTypeDescriptor(), - new JDMKConnectionTypeDescriptor(), - new J2SE5ConnectionTypeDescriptor(), - new JSR160ConnectionTypeDescriptor(), - new GeronimoConnectionTypeDescriptor(), - new Mx4jConnectionTypeDescriptor(), - new Oc4jConnectionTypeDescriptor(), - new PramatiConnectionTypeDescriptor(), - new SJSASConnectionTypeDescriptor(), - new WeblogicConnectionTypeDescriptor(), - new Weblogic9ConnectionTypeDescriptor(), - new Weblogic9Jsr77ConnectionTypeDescriptor(), - new WebsphereConnectionTypeDescriptor(), - new WebsphereStudioConnectionTypeDescriptor()}; public static ClassLoader buildClassLoader(ConnectionSettings settings) { // TODO GH: Build a factory --- 121,128 ---- + /* + public static ClassLoader buildClassLoader(ConnectionSettings settings) { // TODO GH: Build a factory *************** *** 177,181 **** File[] cpEntries = settings.getClassPathEntries(); ! int cpEntriesLength = (cpEntries==null?0:cpEntries.length); File[] extrasFiles = getExtras(settings.getConnectionType()); URL[] cpURLs = new URL[cpEntriesLength + extrasFiles.length]; --- 130,134 ---- File[] cpEntries = settings.getClassPathEntries(); ! int cpEntriesLength = (cpEntries == null ? 0 : cpEntries.length); File[] extrasFiles = getExtras(settings.getConnectionType()); URL[] cpURLs = new URL[cpEntriesLength + extrasFiles.length]; *************** *** 209,212 **** --- 162,166 ---- return null; } + */ /** *************** *** 223,227 **** protected synchronized Class loadClass(String name, boolean resolve) ! throws ClassNotFoundException { Class c = findLoadedClass(name); if (c == null) { --- 177,181 ---- protected synchronized Class loadClass(String name, boolean resolve) ! throws ClassNotFoundException { Class c = findLoadedClass(name); if (c == null) { *************** *** 232,236 **** } catch (SecurityException se) { int i = name.lastIndexOf('.'); ! String pkgname = name.substring(0, i); // Check if package already loaded. Package pkg = getPackage(pkgname); --- 186,190 ---- } catch (SecurityException se) { int i = name.lastIndexOf('.'); ! String pkgname = name.substring(0, i); // Check if package already loaded. Package pkg = getPackage(pkgname); *************** *** 242,247 **** resolveClass(c); } ! } catch(ClassNotFoundException cnfe) { ! c = super.loadClass(name,resolve); } } else { --- 196,201 ---- resolveClass(c); } ! } catch (ClassNotFoundException cnfe) { ! c = super.loadClass(name, resolve); } } else { *************** *** 298,302 **** try { ! ClassLoader loader = buildClassLoader(settings); Class clazz = Class.forName(className, true, loader); --- 252,256 ---- try { ! ClassLoader loader = null;//buildClassLoader(settings); Class clazz = Class.forName(className, true, loader); *************** *** 316,328 **** public static File[] getExtras(final ConnectionTypeDescriptor serverType) { - File extrasFile = - InstalledFileLocator.getDefault().locate("mc4jlib/mc4j_common.jar","org.mc4j.console",false); - if (!extrasFile.exists()) { - ErrorManager.getDefault().notify( - new RuntimeException("Unable to locate mc4j_common.jar in the mc4jlib folder") - ); - } ! File mc4jLibDir = extrasFile.getParentFile(); File[] commonLibs = mc4jLibDir.listFiles(new FileFilter() { --- 270,275 ---- public static File[] getExtras(final ConnectionTypeDescriptor serverType) { ! File mc4jLibDir = new File("mc4jlib");//extrasFile.getParentFile(); File[] commonLibs = mc4jLibDir.listFiles(new FileFilter() { *************** *** 335,343 **** - File[] tempDirs = mc4jLibDir.listFiles(new FileFilter() { public boolean accept(File file) { return (file.isDirectory() && ! file.getName().equals(serverType.getExtrasLibrary())); } }); --- 282,289 ---- File[] tempDirs = mc4jLibDir.listFiles(new FileFilter() { public boolean accept(File file) { return (file.isDirectory() && ! file.getName().equals(serverType.getExtrasLibrary())); } }); *************** *** 359,366 **** File[] results = new File[commonLibs.length + serverLibs.length + 1]; ! System.arraycopy(commonLibs,0,results,0,commonLibs.length); ! System.arraycopy(serverLibs,0,results,commonLibs.length,serverLibs.length); ! results[results.length-1] = new File("dashboards"); return results; --- 305,312 ---- File[] results = new File[commonLibs.length + serverLibs.length + 1]; ! System.arraycopy(commonLibs, 0, results, 0, commonLibs.length); ! System.arraycopy(serverLibs, 0, results, commonLibs.length, serverLibs.length); ! results[results.length - 1] = new File("dashboards"); return results; *************** *** 368,372 **** - public ClassLoader getDelegatedClassLoader() { return delegatedClassLoader; --- 314,317 ---- Index: Welcome.html =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/Welcome.html,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** Welcome.html 19 Jan 2005 14:11:44 -0000 1.2 --- Welcome.html 12 Apr 2006 17:28:39 -0000 1.2.2.1 *************** *** 9,13 **** <tr> <td width="100%"> ! <span style="font-size: 24pt; font-family: Arial Black; color: #FFFFFF">MC4J 1.2 beta 8</span> </td> --- 9,13 ---- <tr> <td width="100%"> ! <span style="font-size: 24pt; font-family: Arial Black; color: #FFFFFF">MC4J 1.2 beta 9</span> </td> *************** *** 24,34 **** <h2>New features</h2> <ul> ! <li>WebSphere 5 support fixed</li> ! <li>WebSphere 6 support added</li> ! <li>WebLogic 9 support added</li> ! <li>JSR-77 support updates and bug fixes</li> ! <li>Better query nodes (Still not persistent)</li> ! <li>Sun Java App server support added</li> ! <li>Upgraded to NB Platform 4.0 Final</li> </ul> </td> --- 24,29 ---- <h2>New features</h2> <ul> ! <li>WebLogic 8, 7 and 6 support fixed</li> ! <li>WebSphere Studio test environment support fixed</li> </ul> </td> Index: mc4j-mf-layer.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/mc4j-mf-layer.xml,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** mc4j-mf-layer.xml 13 Oct 2004 05:05:33 -0000 1.4 --- mc4j-mf-layer.xml 12 Apr 2006 17:28:39 -0000 1.4.2.1 *************** *** 4,8 **** --- 4,10 ---- <folder name="Menu"> + <!-- <file name="File_hidden"/> + --> <file name="BuildProject_hidden"/> <file name="Edit_hidden"/> *************** *** 10,14 **** - <folder name="Management"> <file name="org-mc4j-console-CreateConnectionAction.instance"> --- 12,15 ---- *************** *** 44,52 **** <file name="properties.wsmode" url="Windows2/Modes/properties.wsmode"/> <folder name="properties"> ! <file name="properties.wstcref" url="Windows2/Modes/properties/properties.wstcref" /> </folder> ! <file name="editor.wsmode" url="Windows2/Modes/editor.wsmode" /> <folder name="editor"> <file name="welcomepanel.wstcref" url="Windows2/Modes/editor/welcomepanel.wstcref"/> --- 45,53 ---- <file name="properties.wsmode" url="Windows2/Modes/properties.wsmode"/> <folder name="properties"> ! <file name="properties.wstcref" url="Windows2/Modes/properties/properties.wstcref"/> </folder> ! <file name="editor.wsmode" url="Windows2/Modes/editor.wsmode"/> <folder name="editor"> <file name="welcomepanel.wstcref" url="Windows2/Modes/editor/welcomepanel.wstcref"/> *************** *** 69,73 **** <folder name="Toolbars"> ! <!-- Specifying the file Standard.xml in this place in your layer will override the default toolbar configuration. --- 70,74 ---- <folder name="Toolbars"> ! <!-- Specifying the file Standard.xml in this place in your layer will override the default toolbar configuration. *************** *** 98,102 **** </file> ! <!-- <file name="org-mc4j-console-mejb-view-ShowMEJBViewAction.instance"> <attr name="name" stringvalue="org-mc4j-console-mejb-view-MEJBView"/> --- 99,103 ---- </file> ! <!-- <file name="org-mc4j-console-mejb-view-ShowMEJBViewAction.instance"> <attr name="name" stringvalue="org-mc4j-console-mejb-view-MEJBView"/> *************** *** 115,117 **** --- 116,125 ---- </folder> <!-- Toolbars --> + + <folder name="Shortcuts"> + <file name="D-W.instance"> + <attr name="instanceClass" + stringvalue="org.netbeans.core.actions.SystemExit"/> + </file> + </folder> </filesystem> |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:42
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components/log In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/src/org/mc4j/chires/components/log Added Files: Tag: ems_module_separation LogView.java Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: LogView.java --- /* * Copyright 2002-2004 Greg Hinkle * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.mc4j.chires.components.log; import org.mc4j.console.dashboard.components.BeanComponent; import org.mc4j.ems.connection.bean.EmsBean; import org.jdesktop.swing.JXTable; import java.util.Map; /** * @author Greg Hinkle (gh...@us...), Jan 31, 2005 * @version $Revision: 1.1.2.1 $($Author: ghinkl $ / $Date: 2006/04/12 17:28:36 $) */ public class LogView extends JXTable implements BeanComponent { // private void MBeanServer server; public void setBean(EmsBean emsBean) { // Map notificationNodes = emsBean.getNotificationNodeMap(); // for (Iterator iterator = notificationNodes.entrySet().iterator(); iterator.hasNext();) { // Map.Entry entry = (Map.Entry) iterator.next(); // String notificationName = (String) entry.getKey(); // NotificationNode notificationNode = (NotificationNode) entry.getValue(); // notificationNode.Li //} // this.server.addNotificationListener( // this.objectName, // this.listener, // filters[i], // null); } public void setContext(Map context) { } public void refresh() { } } |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:42
|
Update of /cvsroot/mc4j/mc4j/src/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/src/images Added Files: Tag: ems_module_separation AnimatedLogoMC4J2_64.gif AnimatedLogoStoppedMC4J2_64.gif GraphElements.gif GraphSettings2.gif Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: GraphSettings2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: AnimatedLogoMC4J2_64.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: GraphElements.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: AnimatedLogoStoppedMC4J2_64.gif --- (This appears to be a binary file; contents omitted.) |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:41
|
Update of /cvsroot/mc4j/mc4j/application/dist/org/mc4j/console/Windows2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dist/org/mc4j/console/Windows2 Added Files: Tag: ems_module_separation WindowManager.wswmgr Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: WindowManager.wswmgr --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE windowmanager PUBLIC "-//NetBeans//DTD Window Manager Properties 2.1//EN" "http://www.netbeans.org/dtds/windowmanager-properties2_1.dtd"> <windowmanager version="2.1"> <!-- size and location of the main window --> <main-window> <joined-properties centered-vertically="true" centered-horizontally="true" relative-width="0.8" relative-height="0.8"/> </main-window> <editor-area state="joined" frame-state="0"> <constraints> <path orientation="vertical" number="20" weight="0.7" /> <path orientation="horizontal" number="20" weight="0.6" /> </constraints> </editor-area> <!-- size of the screen last displayed on --> <screen width="1024" height="768"/> <!-- reference to active mode --> <active-mode name="explorer"/> <!-- reference to maximized mode --> <!--<maximized-mode name="explorer"/>--> <!-- reference to toolbar configuration --> <toolbar configuration="Standard"/> </windowmanager> |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:41
|
Update of /cvsroot/mc4j/mc4j/application/dist In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dist Added Files: Tag: ems_module_separation ide.policy manifest.mf module_manifest.mf Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: manifest.mf --- Manifest-Version: 1.0 Class-Path: animation-1.1.3.jar javax77.jar jcommon-0.9.3.jar jdnc-0_6-all.jar jfreechart-0.9.18.jar log4j-1.2.8.jar utilConcurrent1.3.2.jar zql.jar Specified-By: org/mc4j/console/mc4j.jarContent OpenIDE-Module-Layer: org/mc4j/console/mf-layer.xml OpenIDE-Module-Name: MC4J Management Console OpenIDE-Module-Short-Description: MC4J - Remote JMX Management OpenIDE-Module-Implementation-Version: 1.0.12 OpenIDE-Module-Long-Description: The MC4J module supports remote manag ement of JMX compliant services. Created-By: NetBeans OpenIDE-Module-Specification-Version: 1.0.12 OpenIDE-Module-Display-Category: Infrastructure OpenIDE-Module: org.mc4j.console Name: org/mc4j/console/ManagementNode.class OpenIDE-Module-Class: Node Type: roots --- NEW FILE: module_manifest.mf --- Manifest-Version: 1.0 Class-Path: ext/org-mc4j-ems.jar ext/ognl-2.6.7.jar ext/swingx.jar ext/forms-1.0.5.jar ext/commons-logging.jar ext/animation-1.1.3.jar ext/javax77.jar ext/jcommon-1.0.0.jar ext/jfreechart-1.0.1.jar ext/log4j-1.2.8.jar ext/utilConcurrent1.3.2.jar ext/zql.jar OpenIDE-Module-Long-Description: The MC4J JMX Management Tool OpenIDE-Module-Name: MC4J Management Console OpenIDE-Module-Display-Category: Infrastructure Created-By: NetBeans OpenIDE-Module-Specification-Version: 1.3.0 OpenIDE-Module-IDE-Dependencies: IDE/1 > 4.43 OpenIDE-Module-Module-Dependencies: org.netbeans.core/2 > 3.1, org.openide.loaders, org.openide.io, org.netbeans.core.output2/1 OpenIDE-Module-Requires: org.openide.modules.InstalledFileLocator OpenIDE-Module: org.mc4j.console OpenIDE-Module-Short-Description: MC4J - Remote JMX Management OpenIDE-Module-Implementation-Version: 1.4.0 OpenIDE-Module-Layer: org/mc4j/console/mc4j-mf-layer.xml OpenIDE-Module-Public-Packages: - --- NEW FILE: ide.policy --- grant { permission java.security.AllPermission; }; |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:40
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/connection/proxy In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/src/org/mc4j/console/connection/proxy Removed Files: Tag: ems_module_separation GenericMBeanServerProxy.java Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- GenericMBeanServerProxy.java DELETED --- |
Update of /cvsroot/mc4j/mc4j/application/dist/org/mc4j/console/Windows2/Components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dist/org/mc4j/console/Windows2/Components Added Files: Tag: ems_module_separation connectionexplorer.settings monitorexplorer.settings output.settings properties.settings welcomepanel.settings Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: monitorexplorer.settings --- <?xml version="1.0"?> <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"> <settings version="1.0"> <instanceof class="org.mc4j.console.ConnectionExplorer"/> <instanceof class="org.openide.windows.TopComponent"/> <instanceof class="javax.swing.JComponent"/> <instanceof class="java.awt.Component"/> <instanceof class="java.awt.Container"/> <instance class="org.mc4j.console.bean.attribute.watch.MonitorTopComponent" method="getInstance"/> </settings> --- NEW FILE: connectionexplorer.settings --- <?xml version="1.0"?> <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"> <settings version="1.0"> <instanceof class="org.mc4j.console.ConnectionExplorer"/> <instanceof class="org.openide.windows.TopComponent"/> <instanceof class="javax.swing.JComponent"/> <instanceof class="java.awt.Component"/> <instanceof class="java.awt.Container"/> <instanceof class="org.openide.explorer.ExplorerManager$Provider"/> <instanceof class="org.openide.explorer.ExplorerPanel"/> <instance class="org.mc4j.console.ConnectionExplorer" method="getInstance"/> </settings> --- NEW FILE: output.settings --- <?xml version="1.0"?> <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"> <settings version="1.0"> <instanceof class="org.openide.windows.TopComponent"/> <instanceof class="org.netbeans.core.output2.OutputWindow"/> <instance class="org.netbeans.core.output2.OutputWindow" method="getDefault"/> </settings> --- NEW FILE: welcomepanel.settings --- <?xml version="1.0"?> <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"> <settings version="1.0"> <instanceof class="org.mc4j.console.welcome.WelcomeTopComponent"/> <instanceof class="org.openide.windows.TopComponent"/> <instanceof class="javax.swing.JComponent"/> <instanceof class="java.awt.Component"/> <instanceof class="java.awt.Container"/> <instance class="org.mc4j.console.welcome.WelcomeTopComponent" method="getInstance"/> </settings> --- NEW FILE: properties.settings --- <?xml version="1.0"?> <!DOCTYPE settings PUBLIC "-//NetBeans//DTD Session settings 1.0//EN" "http://www.netbeans.org/dtds/sessionsettings-1_0.dtd"> <settings version="1.0"> <instanceof class="org.openide.windows.TopComponent"/> <instanceof class="org.netbeans.core.NbSheet"/> <instance class="org.netbeans.core.NbSheet" method="getDefault"/> </settings> |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:40
|
Update of /cvsroot/mc4j/mc4j/application/dashboards/hibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dashboards/hibernate Added Files: Tag: ems_module_separation Hibernate_EntitiesTable.xml Hibernate_Overview.xml Hibernate_QueriesTable.xml Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: Hibernate_QueriesTable.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Dashboard PUBLIC "-//MC4J//DTD Dashboard 2.0//EN" "http://mc4j.org/Dashboard_2_0.dtd"> <Dashboard version="2.0" name="Hibernate Query Statistics" standardHeader="true" autoRefresh="true" refreshControl="true"> <Description>This dashboard shows statistics on hibernate queries.</Description> <DashboardMatch type="Global" location="/Hibernate/"> <BeanMatch id="StatisticsBean" type="Single"> <Condition type="BeanObjectNameRegexCondition" filter="Hibernate"/> <Condition type="BeanObjectNameRegexCondition" filter="type=statistics"/> </BeanMatch> </DashboardMatch> <LayoutManager type="java.awt.BorderLayout"/> <Content> <Component type="org.mc4j.console.dashboard.components.OperationResultTableComponent"> <Attribute name="bean" value="StatisticsBean"/> <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="background" value="(Literal)0xFFFFFF"/> <Attribute name="preferredSize" value="100,100"/> <Attribute name="operationName" value="(Literal)getQueryStatistics"/> <Attribute name="attributeKeyListName" value="(Literal)Queries"/> <Attribute name="keyLabel" value="(Literal)Query"/> <Attribute name="AttributeName" value="(Literal)KEY"/> <Attribute name="AttributeName" value="(Literal)executionCount"/> <Attribute name="AttributeName" value="(Literal)cacheHitCount"/> <Attribute name="AttributeName" value="(Literal)cachePutCount"/> <Attribute name="AttributeName" value="(Literal)cacheMissCount"/> <Attribute name="AttributeName" value="(Literal)executionRowCount"/> <Attribute name="AttributeName" value="(Literal)executionAvgTime"/> <Attribute name="AttributeName" value="(Literal)executionMaxTime"/> <Attribute name="AttributeName" value="(Literal)executionMinTime"/> </Component> </Content> </Dashboard> --- NEW FILE: Hibernate_EntitiesTable.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Dashboard PUBLIC "-//MC4J//DTD Dashboard 2.0//EN" "http://mc4j.org/Dashboard_2_0.dtd"> <Dashboard version="2.0" name="Hibernate Entity Statistics" standardHeader="true" autoRefresh="true" refreshControl="true"> <Description>This dashboard shows statistics on hibernate entities.</Description> <DashboardMatch type="Global" location="/Hibernate/"> <BeanMatch id="StatisticsBean" type="Single"> <Condition type="BeanObjectNameRegexCondition" filter="Hibernate"/> <Condition type="BeanObjectNameRegexCondition" filter="type=statistics"/> </BeanMatch> </DashboardMatch> <LayoutManager type="java.awt.BorderLayout"/> <Content> <Component type="org.mc4j.console.dashboard.components.OperationResultTableComponent"> <Attribute name="bean" value="StatisticsBean"/> <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="background" value="(Literal)0xFFFFFF"/> <Attribute name="preferredSize" value="100,100"/> <Attribute name="operationName" value="(Literal)getEntityStatistics"/> <Attribute name="attributeKeyListName" value="(Literal)EntityNames"/> <Attribute name="keyLabel" value="(Literal)Entity"/> <Attribute name="AttributeName" value="(Literal)KEY"/> <Attribute name="AttributeName" value="(Literal)fetchCount"/> <Attribute name="AttributeName" value="(Literal)loadCount"/> <Attribute name="AttributeName" value="(Literal)insertCount"/> <Attribute name="AttributeName" value="(Literal)updateCount"/> <Attribute name="AttributeName" value="(Literal)deleteCount"/> </Component> </Content> </Dashboard> --- NEW FILE: Hibernate_Overview.xml --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE Dashboard PUBLIC "-//MC4J//DTD Dashboard 2.0//EN" "http://mc4j.org/Dashboard_2_0.dtd"> <Dashboard version="2.0" name="Hibernate Overview Statistics" standardHeader="true" autoRefresh="true" refreshControl="true"> <Description>This dashboard shows statistics on hibernate.</Description> <DashboardMatch type="Global" location="/Hibernate/"> <BeanMatch id="stats" type="Single"> <Condition type="BeanObjectNameRegexCondition" filter="Hibernate"/> <Condition type="BeanObjectNameRegexCondition" filter="type=statistics"/> </BeanMatch> </DashboardMatch> <LayoutManager type="java.awt.BorderLayout"/> <Content> <Component type="org.mc4j.console.dashboard.components.html.HtmlDashboardComponent"> <Attribute name="html"> <![CDATA[ <html> <head> <style type="text/css"> th { background-color: #cccccc; } .odd {} .even {background-color: #e8e7e7;} .label { text-align: right; font-weight: bold; padding-right: 10px; } </style> </head> <body> <img src="http://hibernate.org/tpl/jboss/img/01_oben_logo.gif" align="right"> <h2>Overview</h2> <table> <tr><td class="label">Sessions Opened</td> <td>${stats.sessionOpenCount}</td><td></td></tr> <tr><td class="label">Sessions Closed</td> <td>${stats.sessionCloseCount}</td><td></td></tr> <tr><td class="label">Connect Count</td> <td>${stats.connectCount}</td><td></td></tr> <tr><td class="label">Transactions</td> <td>${stats.transactionCount}</td><td></td></tr> <tr><td class="label">Commited Transactions</td> <td>${stats.successfulTransactionCount}</td><td></td></tr> </table> <h2>Aggregate Stats</h2> <table width="100%"> <tr> <td class="sectionHeader" colspan="2" align="right">Entity Totals</td> <td class="sectionHeader" colspan="2" align="right">Collection Totals</td> <td class="sectionHeader" colspan="2" align="right">Query Totals</td> </tr> <tr> <td class="label">Load</td> <td>${stats.entityLoadCount}</td> <td class="label">Load</td> <td>${stats.collectionLoadCount}</td> <td class="label">Executed</td> <td>${stats.queryExecutionCount}</td> </tr> <tr> <td class="label">Insert</td> <td>${stats.entityInsertCount}</td> <td class="label">Insert</td> <td>${stats.collectionRecreateCount}</td> <td class="label">Max Time</td> <td>${stats.queryExecutionMaxTime}</td> </tr> <tr> <td class="label">Fetch</td> <td>${stats.entityFetchCount}</td> <td class="label">Fetch</td> <td>${stats.collectionFetchCount}</td> <td class="label">Cache Puts</td> <td>${stats.queryCachePutCount}</td> </tr> <tr> <td class="label">Update</td> <td>${stats.entityUpdateCount}</td> <td class="label">Update</td> <td>${stats.collectionUpdateCount}</td> <td class="label">Cache Hits</td> <td>${stats.queryCacheHitCount}</td> </tr> <tr> <td class="label">Delete</td> <td>${stats.entityDeleteCount}</td> <td class="label">Delete</td> <td>${stats.collectionRemoveCount}</td> <td class="label">Cache Misses</td> <td>${stats.queryCacheMissCount}</td> </tr> </table> </body> </html> ]]> </Attribute> <Content> </Content> </Component> </Content> </Dashboard> |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:39
|
Update of /cvsroot/mc4j/mc4j/application/dashboards/carbon In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dashboards/carbon Removed Files: Tag: ems_module_separation Carbon_ConfigurationTree.xml Carbon_MemoryInfo.xml Carbon_ServerInfo.xml Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- Carbon_MemoryInfo.xml DELETED --- --- Carbon_ConfigurationTree.xml DELETED --- --- Carbon_ServerInfo.xml DELETED --- |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:39
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/src/org/mc4j/chires/components Added Files: Tag: ems_module_separation JDBCQueryTableComponent.java Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: JDBCQueryTableComponent.java --- /* * Copyright 2002-2004 Greg Hinkle * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.mc4j.chires.components; import org.chires.model.history.jdbc.JDBCQueryStats; import org.chires.model.history.jdbc.JDBCStats; import org.mc4j.console.dashboard.components.BeanComponent; import org.mc4j.console.dashboard.components.RefreshControlComponent; import org.mc4j.console.swing.table.TableSorter; import org.mc4j.ems.connection.bean.EmsBean; import org.mc4j.ems.connection.bean.attribute.EmsAttribute; import org.jdesktop.swingx.JXTable; import org.jdesktop.swingx.decorator.AlternateRowHighlighter; import org.jdesktop.swingx.decorator.HighlighterPipeline; import org.jdesktop.swingx.decorator.Highlighter; import javax.management.j2ee.statistics.TimeStatistic; import javax.swing.*; import javax.swing.table.DefaultTableCellRenderer; import javax.swing.table.DefaultTableModel; import javax.swing.table.JTableHeader; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableModel; import java.awt.*; import java.util.Arrays; import java.util.Map; import java.io.ByteArrayInputStream; /** * @author Greg Hinkle (gh...@us...), Sep 14, 2004 * @version $Revision: 1.1.2.1 $($Author: ghinkl $ / $Date: 2006/04/12 17:28:36 $) */ public class JDBCQueryTableComponent extends JPanel implements BeanComponent { EmsBean emsBean; EmsAttribute statsAttribute; JDBCStats stats; private static String SQL_KEYWORD_STRING = "CREATE:TABLE:IF:NOT:HAVING:EXISTS:DEFAULT:NULL:INDEX_NONE:BIT:REAL:CHAR:TEXT" + ":FLOAT:STRING:GROUP BY:INTEGER:VARCHAR:PRIMARY:FOREIGN:ROLLBACK:KEY:UNIQUE" + ":TIME:ALTER:ADD:DROP:NUMERIC:VIEW:INSERT:INTO:VALUES:SET:DELETE:FROM:WHERE" + ":UPDATE:SELECT:LIMIT:ORDER BY:JOIN:AS:ASC:DESC:COMMIT:LIKE:OR:AND"; private static String[] SQL_KEYS = SQL_KEYWORD_STRING.split(":"); public void setBean(EmsBean emsBean) { this.emsBean = emsBean; statsAttribute = emsBean.getAttribute("stats"); stats = (JDBCStats) statsAttribute.getValue(); } protected String label = ""; protected JScrollPane scrollPane; protected JXTable table; // protected TableSorter tableSorter; protected StatsTableModel tableModel; protected boolean sorted = false; private static final Font NAME_FONT = Font.decode("Arial-BOLD-12"); private static final Font VALUE_FONT = Font.decode("Arial-PLAIN-12"); protected long maxAvgTotalTime; public void init() { this.removeAll(); this.setMinimumSize(null); this.setPreferredSize(null); //this.setBorder(new TitledBorder(this.label)); this.setLayout(new BorderLayout()); this.setOpaque(false); Object[] columnNames = new String[] { "Statement", "Type", "Calls", "Failures", "Average Rows", "Time" }; this.tableModel = new StatsTableModel(columnNames, stats.getQueryStats().length); // this.tableSorter = new TableSorter(this.tableModel); this.table = new JXTable(this.tableModel); this.table.setColumnControlVisible(true); // TODO GH: FIXME - Only shows when there is a vertical scroll bar this.scrollPane = new JScrollPane(this.table); this.table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); this.table.setHighlighters(new HighlighterPipeline(new Highlighter[] {new AlternateRowHighlighter()})); this.table.setFont(VALUE_FONT); for (int i = 0; i < columnNames.length; i++) { this.table.getColumnModel().getColumn(i).setHeaderRenderer(new SortHeaderRenderer()); this.table.getColumnModel().getColumn(i).setCellRenderer(new ChangeRenderer()); } this.table.getColumnModel().getColumn(0).setPreferredWidth(260); this.table.getColumnModel().getColumn(5).setCellRenderer(new BarRenderer()); this.table.getColumnModel().getColumn(5).setPreferredWidth(260); this.table.setIntercellSpacing(new Dimension(2,2)); add(scrollPane, BorderLayout.CENTER); // The first refresh sets column classes properly refresh(); // iterate over the column classes and proxy them to a highlighting renderer this.doLayout(); this.repaint(); //Thread refresher = new Thread(this, "AttributeTableRefresher"); //refresher.start(); } public void refresh() { if (this.tableModel instanceof StatsTableModel) ((StatsTableModel)this.tableModel).resetChangeList(); maxAvgTotalTime = 0; statsAttribute.refresh(); stats = (JDBCStats) statsAttribute.getValue(); JDBCQueryStats[] queryStats = this.stats.getQueryStats(); for (int i = 0; i < queryStats.length; i++) { JDBCQueryStats queryStat = queryStats[i]; // "Statement", // "Type", // "Calls", // "Failures", // "Time" this.tableModel.setColumnClass(0,String.class); this.tableModel.setColumnClass(1,String.class); this.tableModel.setColumnClass(2,Long.TYPE); this.tableModel.setColumnClass(3,Long.TYPE); this.tableModel.setColumnClass(4, Long.TYPE); this.tableModel.setColumnClass(5,JDBCQueryStats.class); this.tableModel.setValueAt(queryStat.getStatement(), i, 0); this.tableModel.setValueAt(queryStat.getStatementType(), i, 1); this.tableModel.setValueAt(new Long(queryStat.getExecutionTime().getCount()), i, 2); this.tableModel.setValueAt(new Long(queryStat.getFailureCount().getCount()), i, 3); this.tableModel.setValueAt(new Long(queryStat.getRowCounts().getAverageCount()), i, 4); this.tableModel.setValueAt(queryStat, i, 5); long time = calculateAverageTotalTime(queryStat); if (maxAvgTotalTime < time) { maxAvgTotalTime = time; } } if (!this.sorted) this.sorted = true; this.tableModel.fireTableDataChanged(); } private long calculateAverageTotalTime(JDBCQueryStats queryStat) { long time = calculateAveragePrepTime(queryStat); time += calculateAverageExecTime(queryStat); time += calculateAverageRetTime(queryStat); return time; } private long calculateAverageRetTime(JDBCQueryStats queryStat) { TimeStatistic t; t = queryStat.getRetrievalTime(); if (t.getCount() > 0) return t.getTotalTime() / t.getCount(); return 0; } private long calculateAverageExecTime(JDBCQueryStats queryStat) { TimeStatistic t; t = queryStat.getExecutionTime(); if (t.getCount() > 0) return t.getTotalTime() / t.getCount(); return 0; } private long calculateAveragePrepTime(JDBCQueryStats queryStat) { TimeStatistic t = queryStat.getPreparationTime(); if (t.getCount() > 0) return t.getTotalTime() / t.getCount(); return 0; } public void run() { // Its a hack, but sleep until the component is likely to be showing try { Thread.sleep(2000); } catch(Exception e) { } while(this.isShowing()) { refresh(); try { Thread.sleep(1000); } catch(Exception e) { } } } public class StatsTableModel extends DefaultTableModel { Class[] columnClass = new Class[20]; boolean[][] changes; public StatsTableModel(Object[] columnNames, int rowCount) { super(columnNames, rowCount); reallocateIndexes(); } public void setColumnClass(int column, Class columnClass) { this.columnClass[column] = columnClass; } public boolean isCellEditable(int row, int column) { return false; } public Class getColumnClass(int columnIndex) { Class colClass = columnClass[columnIndex]; if (colClass == null) return Object.class; else return colClass; } public void setValueAt(Object aValue, int aRow, int aColumn) { Object obj = super.getValueAt(aRow, aColumn); if ((obj == null) || (obj != null && !obj.equals(aValue))) { super.setValueAt(aValue, aRow, aColumn); changes[aRow][aColumn] = true; } } public boolean isValueAtChanged(int row, int column) { return changes[row][column]; } public void resetChangeList() { for (int i = 0; i < changes.length; i++) { boolean[] change = changes[i]; for (int j = 0; j < change.length; j++) { change[j] = false; } } } public void reallocateIndexes() { int rowCount = getRowCount(); int colCount = getColumnCount(); // Set up a new array of indexes with the right number of elements // for the new data model. changes = new boolean[rowCount][colCount]; } /** * Adapts the internal changes array and then calls {@link DefaultTableModel#removeRow(int)}. */ public void removeRow(int row) { int rowCount = getRowCount(); int columnCount = getColumnCount(); boolean[][] newChanges = new boolean[rowCount-1][columnCount]; if ( 0 < row ) { System.arraycopy(this.changes, 0, newChanges, 0, row); } if ( (row + 1) < rowCount ) { System.arraycopy(this.changes, row+1, newChanges, row, rowCount-row-1); } changes = newChanges; super.removeRow(row); } /** * Adapts the internal changes array and then calls {@link DefaultTableModel#setRowCount(int)}. */ public void incrementRowCount() { int rowCount = getRowCount(); int columnCount = getColumnCount(); boolean[][] newChanges = new boolean[rowCount+1][columnCount]; System.arraycopy(this.changes, 0, newChanges, 0, rowCount); Arrays.fill(newChanges[rowCount], true); this.changes = newChanges; super.setRowCount(rowCount+1); } } public void setContext(Map context) { init(); } /** Getter for property label. * @return Value of property label. * */ public String getLabel() { return label; } /** Setter for property label. * @param label New value of property label. * */ public void setLabel(String label) { this.label = label; } public static class SortHeaderRenderer extends DefaultTableCellRenderer { private static Icon ascendingIcon = createImageIcon("images/Up.gif"); private static Icon descendingIcon = createImageIcon("images/Down.gif"); /** Returns an ImageIcon, or null if the path was invalid. */ protected static ImageIcon createImageIcon(String path) { java.net.URL imgURL = RefreshControlComponent.class.getClassLoader().getResource(path); if (imgURL != null) { return new ImageIcon(imgURL); } else { System.err.println("Couldn't find file: " + path); return null; } } public SortHeaderRenderer() { setHorizontalTextPosition(LEFT); setHorizontalAlignment(CENTER); } public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int col) { int index = -1; boolean ascending = true; TableModel model = table.getModel(); if (model instanceof TableSorter) { index = ((TableSorter)model).getCurrentSortColumn(); ascending = ((TableSorter)model).isAscending(); } if (table != null) { JTableHeader header = table.getTableHeader(); if (header != null) { setForeground(header.getForeground()); setBackground(header.getBackground()); setFont(header.getFont()); } } setFont(getFont().deriveFont((index == col)?Font.BOLD:Font.PLAIN)); if (index == col) { setIcon(ascending?ascendingIcon:descendingIcon); } else { setIcon(null); } setText((value == null) ? "" :value.toString()); setBorder(UIManager.getBorder("TableHeader.cellBorder")); return this; } } public class BarRenderer implements TableCellRenderer{ public final Color PREP_COLOR = Color.decode("0xFFFF99"); public final Color EXEC_COLOR = Color.decode("0x0099CC"); public final Color RET_COLOR = Color.decode("0x66FF99"); public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { if (value instanceof JDBCQueryStats) { final JDBCQueryStats stats = (JDBCQueryStats) value; final Rectangle size = table.getCellRect(row, column, false); long avgTotal = calculateAverageTotalTime(stats); final int width = size.width - 2; final int height = size.height - 2; if (maxAvgTotalTime == 0) maxAvgTotalTime = 1; final int prepWidth = (int) ((width * calculateAveragePrepTime(stats))/maxAvgTotalTime); final int execWidth = (int) ((width * calculateAverageExecTime(stats))/maxAvgTotalTime); final int retWidth = (int) ((width * calculateAverageRetTime(stats))/maxAvgTotalTime); JComponent c = new JLabel() { public final Color PREP_COLOR = Color.decode("0xFFFF99"); public final Color EXEC_COLOR = Color.decode("0x66CCFF"); public final Color RET_COLOR = Color.decode("0x66FF99"); { setOpaque(false); setBorder(BorderFactory.createEmptyBorder(2,2,2,2)); } public void paintComponent(Graphics g) { g.setColor(PREP_COLOR); g.fillRect(0,0,prepWidth,height); g.setColor(EXEC_COLOR); g.fillRect( prepWidth,0,execWidth,height); g.setColor(RET_COLOR); g.fillRect(prepWidth+execWidth,0,retWidth,height); setText(String.valueOf(calculateAverageTotalTime(stats))); super.paintComponent(g); } public Dimension getSize() { return new Dimension(size.width, size.height); } }; return c; } return new JLabel(); } } /** * A hack for some lightweight sql stylization. Just bolds the keywords and adds some * newlines if necessary. * TODO: Get/build a Stylized EditorKit for SQL * @param sql */ public static String stylize(String sql) { StringBuffer buf = new StringBuffer("<html>" + sql + "</html>"); boolean lb = sql.indexOf('\n') >=0; for (String key:SQL_KEYS) { int index = 0; index = buf.toString().toUpperCase().indexOf(key,index); if (index == -1) continue; // Only use it if its the entire word... (don't match desc to my_description) if (Character.isLetter(buf.charAt(index + key.length())) || Character.isLetter(buf.charAt(index - 1))) continue; if (!lb) { buf.insert(index, "\n"); buf.insert(index,"<b>"); buf.insert(index+4+key.length(),"</b>"); index +=8; } else { buf.insert(index,"<b>"); buf.insert(index+3+key.length(),"</b>"); index +=7; } } return buf.toString().replace("\n","<br>"); } public static class ChangeRenderer extends DefaultTableCellRenderer implements TableCellRenderer { public Component getTableCellRendererComponent( JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { JComponent comp = (JComponent) super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); if (column == 0 && value != null) { try { // TODO GH: Do i want to use this Zql library for parsing? doesn't seme to work // on first inspection Zql.ZqlParser p = new Zql.ZqlParser(); p.initParser(new ByteArrayInputStream(value.toString().getBytes())); Zql.ZStatement st = p.readStatement(); comp.setToolTipText(st.toString()); // Display the statement } catch(Exception e) { e.printStackTrace(); } } else { comp.setToolTipText((value == null) ? "" : stylize(value.toString())); } TableModel model = table.getModel(); // int realRow = ((TableSorter)model).translateRow(row); // model = ((TableMap)model).getModel(); if (model instanceof StatsTableModel) { if (((StatsTableModel)model).isValueAtChanged(row, column)) { comp.setForeground(Color.red); setFont(getFont().deriveFont(Font.BOLD)); } else { comp.setForeground(Color.black); setFont(getFont().deriveFont(Font.PLAIN)); } } return comp; } } } |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:39
|
Update of /cvsroot/mc4j/mc4j/application/dist/org/mc4j/console/Windows2/Modes/output In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dist/org/mc4j/console/Windows2/Modes/output Added Files: Tag: ems_module_separation output.wstcref Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: output.wstcref --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd"> <tc-ref version="2.0"> <module name="org.mc4j.console" spec="1.3" /> <tc-id id="output" /> <state opened="true" /> </tc-ref> |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:39
|
Update of /cvsroot/mc4j/mc4j/lib/common In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/lib/common Added Files: Tag: ems_module_separation forms-1.0.5.jar jcommon-1.0.0.jar jfreechart-1.0.1.jar ognl-2.6.7.jar swingx.jar zql.jar Removed Files: Tag: ems_module_separation jcommon-0.9.3.jar jdnc-0_6-all.jar jfreechart-0.9.18.jar Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- jfreechart-0.9.18.jar DELETED --- --- NEW FILE: jcommon-1.0.0.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: swingx.jar --- (This appears to be a binary file; contents omitted.) --- jdnc-0_6-all.jar DELETED --- --- NEW FILE: ognl-2.6.7.jar --- (This appears to be a binary file; contents omitted.) --- jcommon-0.9.3.jar DELETED --- --- NEW FILE: zql.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: jfreechart-1.0.1.jar --- (This appears to be a binary file; contents omitted.) --- NEW FILE: forms-1.0.5.jar --- (This appears to be a binary file; contents omitted.) |
Update of /cvsroot/mc4j/mc4j/application/dist/org/mc4j/console/Windows2/Modes In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dist/org/mc4j/console/Windows2/Modes Added Files: Tag: ems_module_separation editor.wsmode explorer.wsmode extras.wsmode output.wsmode properties.wsmode Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: editor.wsmode --- <?xml version="1.0" encoding="UTF-8"?> <mode version="2.0"> <module name="org.mc4j.console" spec="1.3" /> <name unique="editor" /> <kind type="editor" /> <state type="joined" /> <bounds x="0" y="0" width="0" height="0" /> <frame state="0" /> <!--<active-tc id="welcomepanel" />--> <empty-behavior permanent="true" /> </mode> --- NEW FILE: output.wsmode --- <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mode PUBLIC "-//NetBeans//DTD Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/mode-properties2_0.dtd"> <mode version="2.0"> <name unique="output" /> <kind type="view" /> <state type="joined" /> <constraints> <path orientation="vertical" number="40" weight="0.3" /> <path orientation="horizontal" number="20" weight="0.5" /> </constraints> <relative-bounds x="10" y="68" width="40" height="20" /> <active-tc id="output" /> <empty-behavior permanent="true" /> </mode> <!-- <?xml version="1.0" encoding="UTF-8"?> <mode version="2.0"> <name unique="output"/> <kind type="view"/> <state type="joined"/> <constraints> <path orientation="vertical" number="20" weight="0.7" /> <path orientation="horizontal" number="20" weight="0.7" /> <path orientation="vertical" number="1" weight="0.25" /> </constraints> <bounds x="0" y="0" width="0" height="0"/> <frame state="0"/> <empty-behavior permanent="false"/> </mode> <mode version="2.0"> <name unique="output" /> <kind type="view" /> <state type="joined" /> <constraints> <path orientation="horizontal" number="1" weight="0.7436131386861313" /> <path orientation="vertical" number="40" weight="0.3" /> <path orientation="horizontal" number="20" weight="0.5" /> </constraints> <bounds x="140" y="693" width="560" height="204" /> <frame state="0" /> <empty-behavior permanent="true" /> </mode> --> --- NEW FILE: extras.wsmode --- <?xml version="1.0" encoding="UTF-8"?> <mode version="2.0"> <name unique="extras" /> <kind type="view" /> <state type="joined" /> <constraints> <path orientation="vertical" number="20" weight="0.7"/> <path orientation="horizontal" number="20" weight="0.7"/> <path orientation="vertical" number="1" weight="0.25"/> </constraints> <bounds x="0" y="0" width="0" height="0" /> <frame state="0" /> <active-tc id="monitorexplorer" /> <empty-behavior permanent="true" /> </mode> --- NEW FILE: properties.wsmode --- <?xml version="1.0" encoding="UTF-8"?> <mode version="2.0"> <name unique="properties" /> <kind type="view" /> <state type="joined" /> <constraints> <path orientation="vertical" number="20" weight="1" /> <path orientation="horizontal" number="0" weight="0.3" /> <path orientation="vertical" number="1" weight="0.3"/> </constraints> <bounds x="0" y="0" width="0" height="0" /> <frame state="0" /> <active-tc id="properties" /> <empty-behavior permanent="false" /> </mode> <!-- <mode version="2.0"> <name unique="properties" /> <kind type="view" /> <state type="joined" /> <constraints> <path orientation="horizontal" number="1" weight="0.7436131386861313" /> <path orientation="vertical" number="20" weight="0.7" /> <path orientation="horizontal" number="60" weight="0.3192032156487688" /> <path orientation="vertical" number="60" weight="0.5" /> </constraints> <bounds x="1050" y="438" width="210" height="255" /> <frame state="0" /> <active-tc id="properties" /> <empty-behavior permanent="true" /> </mode> --> --- NEW FILE: explorer.wsmode --- <?xml version="1.0" encoding="UTF-8"?> <mode version="2.0"> <module name="org.mc4j.console" spec="1.3" /> <name unique="explorer" /> <kind type="view" /> <state type="joined" /> <constraints> <path orientation="vertical" number="20" weight="1" /> <path orientation="horizontal" number="0" weight="0.3" /> <path orientation="vertical" number="0" weight="0.7"/> </constraints> <bounds x="0" y="0" width="0" height="0" /> <frame state="0" /> <active-tc id="connectionexplorer" /> <empty-behavior permanent="false" /> </mode> <!-- <mode version="2.0"> <module name="org.netbeans.core.ui/1" spec="1.2" /> <name unique="explorer" /> <kind type="view" /> <state type="joined" /> <constraints> <path orientation="vertical" number="20" weight="0.7" /> <path orientation="horizontal" number="20" weight="0.2509124087591241" /> </constraints> <bounds x="140" y="183" width="280" height="510" /> <frame state="0" /> <active-tc id="connectionexplorer" /> <empty-behavior permanent="true" /> </mode> --> |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:38
|
Update of /cvsroot/mc4j/mc4j/application/dist/org/mc4j/console/Windows2/Modes/extras In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/dist/org/mc4j/console/Windows2/Modes/extras Added Files: Tag: ems_module_separation monitorexplorer.wstcref Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: monitorexplorer.wstcref --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE tc-ref PUBLIC "-//NetBeans//DTD Top Component in Mode Properties 2.0//EN" "http://www.netbeans.org/dtds/tc-ref2_0.dtd"> <tc-ref version="2.0"> <module name="org.mc4j.console" spec="1.3" /> <tc-id id="output" /> <state opened="true" /> </tc-ref> |
From: Greg H. <gh...@us...> - 2006-04-12 17:28:36
|
Update of /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/ui/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6793/application/branding/bundle/org/netbeans/core/ui/resources Added Files: Tag: ems_module_separation Standard.xml Log Message: Lots of changes towards the 2.0 alpha that I should've checked in a long time ago. Lots of stuff still broken. Only JBoss and JDK 1.5 have been tested. --- NEW FILE: Standard.xml --- <?xml version="1.0"?> <!-- Sun Public License Notice The contents of this file are subject to the Sun Public License Version 1.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is available at http://www.sun.com/ The Original Code is NetBeans. The Initial Developer of the Original Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved. --> <!DOCTYPE Configuration PUBLIC "-//NetBeans IDE//DTD toolbar//EN" "http://www.netbeans.org/dtds/toolbar.dtd"> <Configuration> <Row> <Toolbar name="File" visible="true"/> <Toolbar name="Edit" /> <Toolbar name="Build" visible="false" /> <Toolbar name="Debug" visible="false" /> <Toolbar name="Memory"/> <Toolbar name="Versioning" visible="false" /> </Row> <Row> <Toolbar name="WorkspaceSwitcher" visible="true" /> <Toolbar name="StatusLine" visible="true" /> </Row> </Configuration> |
From: Greg H. <gh...@us...> - 2006-04-12 17:19:40
|
Update of /cvsroot/mc4j/mc4j/lib/boot In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv928/lib/boot Log Message: Directory /cvsroot/mc4j/mc4j/lib/boot added to the repository |
From: Greg H. <gh...@us...> - 2006-04-12 17:07:22
|
Update of /cvsroot/mc4j/mc4j/application/dashboards/hibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24837/application/dashboards/hibernate Log Message: Directory /cvsroot/mc4j/mc4j/application/dashboards/hibernate added to the repository |
From: Greg H. <gh...@us...> - 2006-04-11 18:22:48
|
Update of /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/startup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14659/application/branding/bundle/org/netbeans/core/startup Log Message: Directory /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/startup added to the repository |
From: Greg H. <gh...@us...> - 2006-04-11 18:11:02
|
Update of /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/ui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4673/application/branding/bundle/org/netbeans/core/ui Log Message: Directory /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/ui added to the repository |
From: Greg H. <gh...@us...> - 2006-04-11 18:10:54
|
Update of /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/ui/resources In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4750/application/branding/bundle/org/netbeans/core/ui/resources Log Message: Directory /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/ui/resources added to the repository |
From: Greg H. <gh...@us...> - 2006-04-11 18:05:26
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components/log In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32289/src/org/mc4j/chires/components/log Log Message: Directory /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components/log added to the repository |
From: Greg H. <gh...@us...> - 2006-04-11 18:05:25
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components/flow In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32289/src/org/mc4j/chires/components/flow Log Message: Directory /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components/flow added to the repository |
From: Greg H. <gh...@us...> - 2006-04-11 18:05:19
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32226/src/org/mc4j/chires/components Log Message: Directory /cvsroot/mc4j/mc4j/src/org/mc4j/chires/components added to the repository |
From: Greg H. <gh...@us...> - 2006-04-11 18:05:19
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/chires In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32177/src/org/mc4j/chires Log Message: Directory /cvsroot/mc4j/mc4j/src/org/mc4j/chires added to the repository |