mc4j-cvs Mailing List for MC4J JMX Console (Page 3)
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-05-22 02:38:59
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/jre15/components In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/src/org/mc4j/jre15/components Modified Files: ThreadMBeanThreadBrowserComponent.java ThreadsViewComponent.java Added Files: LogManager.java Log Message: Visual tweaks --- NEW FILE: LogManager.java --- /* * JBoss, Home of Professional Open Source */ package org.mc4j.jre15.components; import org.mc4j.console.dashboard.components.BeanComponent; import org.mc4j.ems.connection.bean.EmsBean; import org.jdesktop.swingx.JXTreeTable; import org.jdesktop.swingx.autocomplete.ComboBoxCellEditor; import org.jdesktop.swingx.treetable.DefaultTreeTableModel; import javax.swing.tree.DefaultMutableTreeNode; import javax.swing.tree.TreeNode; import javax.swing.*; import javax.swing.table.TableCellEditor; import java.util.*; import java.util.List; import java.util.logging.LoggingMXBean; import java.util.logging.Logger; import java.util.logging.Level; import java.awt.*; /** * @author <a href="mailto:gh...@jb...">Greg Hinkle</a> */ public class LogManager extends JPanel implements BeanComponent { LoggingMXBean loggingBean; JXTreeTable treeTable; LoggerInfoTreeTableModel model; Map<String, String> parents = new HashMap<String, String>(); Map<String,List<String>> children = new HashMap<String, List<String>>(); Map<String, DefaultMutableTreeNode> nodes = new HashMap<String, DefaultMutableTreeNode>(); Map<String, String> levels = new HashMap<String, String>(); public void setBean(EmsBean emsBean) { loggingBean = (LoggingMXBean) emsBean.getProxy(java.util.logging.LoggingMXBean.class); } public void setContext(Map context) { model = new LoggerInfoTreeTableModel(); List<String> names = loggingBean.getLoggerNames(); DefaultMutableTreeNode root = new DefaultMutableTreeNode(""); model.setRoot(root); nodes.put("",root); // Go through and map the parents for (String name : names) { String parent = loggingBean.getParentLoggerName(name); System.out.println(name + " -> " + parent); if (!"".equals(name)) // The jdk returns a "" -> "" mapping for some stupid reason, lets ignore it with a special case parents.put(name, parent); } children = new HashMap<String, List<String>>(); Iterator iter = parents.entrySet().iterator(); while (iter.hasNext()) { Map.Entry<String, String> entry = (Map.Entry<String, String>) iter.next(); if (!children.containsKey(entry.getValue())) { List<String> childList = new ArrayList<String>(); childList.add(entry.getKey()); children.put(entry.getValue(),childList); } else { List<String> childList = children.get(entry.getValue()); childList.add(entry.getKey()); } } loadChildren(((DefaultMutableTreeNode)model.getRoot()).getUserObject().toString()); levels.put("",loggingBean.getLoggerLevel("")); // Load the root level // Load the levels for (String name : nodes.keySet()) { levels.put(name, loggingBean.getLoggerLevel(name)); } treeTable = new JXTreeTable(model); treeTable.setRootVisible(true); JComboBox b = new JComboBox(new Object[] { Level.SEVERE, Level.WARNING, Level.INFO, Level.CONFIG, Level.FINE, Level.FINER, Level.FINEST }); treeTable.getColumnExt(1).setCellEditor(new ComboBoxCellEditor(b)); setLayout(new BorderLayout()); add(new JScrollPane(treeTable), BorderLayout.CENTER); } private void loadChildren(String name) { List<String> childList = children.get(name); DefaultMutableTreeNode node = nodes.get(name); if (node == null) { System.out.println("Node was null: \"" + name + "\""); return; } for (String child : childList) { DefaultMutableTreeNode childNode = new DefaultMutableTreeNode(child); node.add(childNode); nodes.put(child, childNode); if (children.containsKey(child)) { loadChildren(child); } } } public void refresh() { } public String getLevel(String name) { String level = levels.get(name); if ((level == null || level.equals("")) && parents.containsKey(name)) { return getLevel(parents.get(name)); } else { return level; } } public class LoggerInfoTreeTableModel extends DefaultTreeTableModel { private String[] COLUMN_NAMES = {"Logger", "Level"}; public Class getColumnClass(int i) { return super.getColumnClass(i); //To change body of overridden methods use File | Settings | File Templates. } public Object getValueAt(Object object, int i) { DefaultMutableTreeNode node = (DefaultMutableTreeNode) object; switch (i) { case 0: return node.getUserObject(); case 1: return getLevel((String) node.getUserObject()); default: return null; } } public String getColumnName(int i) { return COLUMN_NAMES[i]; } public int getColumnCount() { return COLUMN_NAMES.length; } } } Index: ThreadMBeanThreadBrowserComponent.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/jre15/components/ThreadMBeanThreadBrowserComponent.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** ThreadMBeanThreadBrowserComponent.java 12 Apr 2006 19:14:04 -0000 1.5 --- ThreadMBeanThreadBrowserComponent.java 22 May 2006 02:38:52 -0000 1.6 *************** *** 86,100 **** } - public void setContext(Map context) { - - } - - public synchronized void refresh() { - try { // TODO GH: the added set is not being used and right now i'm firing --- 86,94 ---- *************** *** 139,145 **** } this.treeModel.nodeStructureChanged(threadNode); - - - } --- 133,136 ---- *************** *** 230,235 **** - - /** Returns an ImageIcon, or null if the path was invalid. */ protected static ImageIcon createImageIcon(String path) { --- 221,224 ---- *************** *** 244,247 **** } ! ! } --- 233,235 ---- } ! } \ No newline at end of file Index: ThreadsViewComponent.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/jre15/components/ThreadsViewComponent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** ThreadsViewComponent.java 17 Apr 2006 12:01:27 -0000 1.3 --- ThreadsViewComponent.java 22 May 2006 02:38:52 -0000 1.4 *************** *** 22,27 **** import org.mc4j.console.dashboard.DashboardComponent; import org.mc4j.console.dashboard.components.BeanComponent; - import org.mc4j.console.swing.graph.GlassWindow; import org.mc4j.ems.connection.bean.EmsBean; import javax.swing.*; --- 22,27 ---- import org.mc4j.console.dashboard.DashboardComponent; import org.mc4j.console.dashboard.components.BeanComponent; import org.mc4j.ems.connection.bean.EmsBean; + import sun.swing.table.DefaultTableCellHeaderRenderer; import javax.swing.*; *************** *** 30,48 **** import javax.swing.table.AbstractTableModel; import javax.swing.table.DefaultTableCellRenderer; ! import java.awt.BorderLayout; ! import java.awt.Color; ! import java.awt.Component; ! import java.awt.Dimension; ! import java.awt.Graphics; import java.lang.management.ThreadInfo; import java.lang.management.ThreadMXBean; import java.text.DecimalFormat; import java.text.NumberFormat; ! import java.util.ArrayList; ! import java.util.HashSet; ! import java.util.LinkedHashMap; ! import java.util.LinkedList; import java.util.List; - import java.util.Map; /** --- 30,43 ---- import javax.swing.table.AbstractTableModel; import javax.swing.table.DefaultTableCellRenderer; ! import java.awt.*; ! import java.awt.geom.Rectangle2D; import java.lang.management.ThreadInfo; import java.lang.management.ThreadMXBean; + import java.text.DateFormat; import java.text.DecimalFormat; import java.text.NumberFormat; ! import java.text.SimpleDateFormat; ! import java.util.*; import java.util.List; /** *************** *** 52,63 **** public class ThreadsViewComponent extends JPanel implements DashboardComponent, BeanComponent { ! EmsBean emsThreadBean; ! ThreadMXBean threadBean; ! JXTable table; ! ThreadsTableModel model; private static final int TIME_HISTORY = 100 * 1000; public void setContext(Map context) { model = new ThreadsTableModel(threadBean); table = new JXTable(model); --- 47,69 ---- public class ThreadsViewComponent extends JPanel implements DashboardComponent, BeanComponent { ! private EmsBean emsThreadBean; ! private ThreadMXBean threadBean; ! private JXTable table; ! private ThreadsTableModel model; ! ! private JPanel detail; ! private JEditorPane threadInfo; ! private JTextPane threadStack; ! private JSplitPane splitPane; ! private static final int TIME_HISTORY = 100 * 1000; + // A hack to track the list of vertical time lines we're drawing + private int[] lineLocations = {0, 0}; + public void setContext(Map context) { + + model = new ThreadsTableModel(threadBean); table = new JXTable(model); *************** *** 67,73 **** table.getColumnExt(2).setCellRenderer(new ThreadStateCellRenderer()); table.getColumnExt(3).setCellRenderer(new ThreadDataGraphRenderer()); table.getColumnExt(5).setCellRenderer(new PercentageCellRenderer()); setLayout(new BorderLayout()); - add(new JScrollPane(table), BorderLayout.CENTER); table.getColumnExt(0).setPreferredWidth(35); // Id --- 73,79 ---- table.getColumnExt(2).setCellRenderer(new ThreadStateCellRenderer()); table.getColumnExt(3).setCellRenderer(new ThreadDataGraphRenderer()); + table.getColumnExt(3).setHeaderRenderer(new ThreadDataGraphCellHeaderRenderer()); table.getColumnExt(5).setCellRenderer(new PercentageCellRenderer()); setLayout(new BorderLayout()); table.getColumnExt(0).setPreferredWidth(35); // Id *************** *** 84,113 **** - table.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { ! ThreadsTableModel.ThreadData d = model.getData(e.getFirstIndex()); ! JTextPane textPane = new JTextPane(); ! StringBuilder b = new StringBuilder(); ! ThreadInfo ti = threadBean.getThreadInfo(d.getLastData().getThreadId(), Integer.MAX_VALUE); ! if (ti != null) { ! for (StackTraceElement el : ti.getStackTrace()) { ! b.append(el); ! b.append("\n"); } ! textPane.setEditable(false); ! textPane.setText(b.toString()); ! textPane.setPreferredSize(new Dimension(500,600)); ! GlassWindow.show(new JScrollPane(textPane),ThreadsViewComponent.this); } } }); - } public void refresh() { model.refresh(); ! model.fireTableDataChanged(); } --- 90,158 ---- table.getSelectionModel().addListSelectionListener(new ListSelectionListener() { public void valueChanged(ListSelectionEvent e) { ! if (!table.getSelectionModel().isSelectionEmpty()) { ! ThreadsTableModel.ThreadData d = model.getData(table.convertRowIndexToModel(e.getFirstIndex())); ! StringBuilder b = new StringBuilder(); ! ThreadInfo ti = threadBean.getThreadInfo(d.getLastData().getThreadId(), Integer.MAX_VALUE); ! if (ti != null) { ! for (StackTraceElement el : ti.getStackTrace()) { ! b.append(el); ! b.append("\n"); ! } ! ! String threadInfoString = ! "<html><b>Name: </b> " + ti.getThreadName() + " (" + ti.getThreadId() + ")<br>" + ! "<b>State: </b> " + ti.getThreadState() + "<br>" + ! "<b>Total Blocked: </b>" + ti.getBlockedCount() + " (" + ti.getBlockedTime() + "ms)<br>" + ! "<b>Total Waits: </b> " + ti.getWaitedCount() + " (" + ti.getWaitedTime() + "ms)<br>" + ! "<b>Lock: </b> " + ti.getLockName() + "<br>" + ! "<b>Lock Owner: </b>" + ti.getLockOwnerName() + " (" + ti.getLockOwnerId() + ")" + ! "</html>"; ! ! ! threadInfo.setText(threadInfoString); ! threadStack.setText(b.toString()); ! splitPane.setDividerLocation(splitPane.getHeight() - 250); ! } else { ! threadStack.setText("<unknown>"); } ! } else { ! splitPane.setDividerLocation(splitPane.getHeight()); } } }); + detail = new JPanel(new GridLayout(1, 2)); + + threadInfo = new JEditorPane(); + threadInfo.setContentType("text/html"); + threadInfo.setEditable(false); + threadInfo.setOpaque(false); + threadInfo.setPreferredSize(new Dimension(250, 250)); + threadStack = new JTextPane(); + threadStack.setEditable(false); + + detail.add(threadInfo); + detail.add(new JScrollPane(threadStack)); + + splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, true, new JScrollPane(table), detail); + splitPane.setResizeWeight(1); + splitPane.setDividerLocation(1d); + + add(splitPane, BorderLayout.CENTER); + + } + public void refresh() { + int start = model.getRowCount(); model.refresh(); ! table.getTableHeader().repaint(); ! model.fireTableRowsUpdated(0, start); ! if (model.getRowCount() > start) { ! model.fireTableRowsInserted(start + 1, model.getRowCount()); ! } } *************** *** 122,136 **** } ! public static class ThreadDataGraphRenderer extends DefaultTableCellRenderer { ThreadsTableModel.ThreadData data; ! private static final Color blocked = new Color(205, 92, 92); ! private static final Color neww = new Color(135, 206, 250); ! private static final Color runnable = new Color(144, 238, 144); ! private static final Color terminated = new Color(112, 128, 244); ! private static final Color timed_waiting = new Color(240, 128, 128); ! private static final Color waiting = new Color(255, 239, 213); public ThreadDataGraphRenderer() { --- 167,238 ---- } + public class ThreadDataGraphCellHeaderRenderer extends DefaultTableCellHeaderRenderer { ! DateFormat sdf = SimpleDateFormat.getTimeInstance(SimpleDateFormat.SHORT); ! GregorianCalendar c = new GregorianCalendar(); ! ! protected void paintComponent(Graphics g) { ! ! super.paintComponent(g); ! ! ! lineLocations[0] = drawMinute(g, new Date()); ! c.setTime(new Date()); ! c.add(GregorianCalendar.MINUTE, -1); ! lineLocations[1] = drawMinute(g, c.getTime()); ! } ! ! private int drawMinute(Graphics g, Date d) { ! int w = getWidth(); ! ! c.setTime(d); ! c.set(GregorianCalendar.SECOND, 0); ! int s = (int) ((new Date().getTime() / 1000) - (c.getTime().getTime() / 1000)); ! int scale = (int) ((double) w) / (TIME_HISTORY / 1000); ! ! ! String t = sdf.format(c.getTime()); ! Rectangle2D b = g.getFontMetrics().getStringBounds(t, g); ! ! int timeLoc = (int) (w - (((double) scale) * s)); ! if (timeLoc < 0) ! return -1; ! ! int stringLoc; ! if (b.getWidth() > (getWidth() - timeLoc)) { ! // put it on the right ! stringLoc = (int) (timeLoc - b.getWidth() - 2); ! } else { ! // put it on the left ! stringLoc = (int) (timeLoc + 2); ! } ! ! // g.setColor(getBackground()); ! // g.drawRoundRect(); ! ! g.setColor(Color.darkGray); ! g.drawLine(timeLoc, 0, timeLoc, getHeight()); ! g.drawString(t, stringLoc, getHeight() - 2); ! return timeLoc; ! } ! ! ! public Component getTableCellRendererComponent(JTable jTable, Object object, boolean b, boolean b1, int i, int i1) { ! super.getTableCellRendererComponent(jTable, "", b, b1, i, i1); ! return this; ! } ! } ! ! ! public class ThreadDataGraphRenderer extends DefaultTableCellRenderer { ThreadsTableModel.ThreadData data; ! private final Color blocked = new Color(205, 92, 92); ! private final Color neww = new Color(135, 206, 250); ! private final Color runnable = new Color(144, 238, 144); ! private final Color terminated = new Color(112, 128, 244); ! private final Color timed_waiting = new Color(240, 128, 128); ! private final Color waiting = new Color(255, 239, 213); public ThreadDataGraphRenderer() { *************** *** 140,143 **** --- 242,246 ---- public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { data = (ThreadsTableModel.ThreadData) value; + super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); return this; } *************** *** 147,151 **** g.setColor(getBackground()); ! g.fillRect(0,0, getWidth(), getHeight()); Color c = null; --- 250,254 ---- g.setColor(getBackground()); ! g.fillRect(0, 0, getWidth(), getHeight()); Color c = null; *************** *** 184,187 **** --- 287,295 ---- last = d; } + g.setColor(Color.lightGray); + for (int l : lineLocations) { + if (l > 0) + g.drawLine(l, 0, l, getHeight()); + } } } *************** *** 189,196 **** --- 297,306 ---- public static class PercentageCellRenderer extends DefaultTableCellRenderer { static NumberFormat f; + static { f = DecimalFormat.getPercentInstance(); f.setMaximumFractionDigits(2); } + public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { return super.getTableCellRendererComponent(table, f.format(value), isSelected, hasFocus, row, column); *************** *** 201,207 **** public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { Icon icon = null; if (value instanceof Thread.State) { ! switch ((Thread.State)value) { case BLOCKED: icon = threadBlockedIcon; --- 311,319 ---- public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { + + super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); Icon icon = null; if (value instanceof Thread.State) { ! switch ((Thread.State) value) { case BLOCKED: icon = threadBlockedIcon; *************** *** 228,231 **** --- 340,344 ---- setHorizontalAlignment(CENTER); setIcon(icon); + setText(null); return this; } *************** *** 259,263 **** private static final String[] COLUMNS = new String[]{ ! "Id", "Name", "State", "History", "CPU Total","CPU %", "User Total", "Blocks", "Block Time", "Lock" }; --- 372,376 ---- private static final String[] COLUMNS = new String[]{ ! "Id", "Name", "State", "History", "CPU Total", "CPU %", "User Total", "Blocks", "Block Time", "Lock" }; |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:59
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/domain In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/src/org/mc4j/console/domain Modified Files: DomainNode.java Log Message: Visual tweaks Index: DomainNode.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/domain/DomainNode.java,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** DomainNode.java 12 Apr 2006 19:14:16 -0000 1.19 --- DomainNode.java 22 May 2006 02:38:53 -0000 1.20 *************** *** 29,32 **** --- 29,38 ---- import java.io.IOException; import java.util.*; + import java.util.List; + import java.awt.*; + import javax.swing.*; + import javax.swing.tree.DefaultTreeModel; + import javax.swing.tree.DefaultMutableTreeNode; + import javax.management.ObjectName; [...1010 lines suppressed...] + if(s == null || s.length() == 0) + { + orderedKeyPropertyList.add("type"); + orderedKeyPropertyList.add("j2eeType"); + } else + { + for(StringTokenizer stringtokenizer = new StringTokenizer(s, ","); stringtokenizer.hasMoreTokens(); orderedKeyPropertyList.add(stringtokenizer.nextToken())); + } + } + + + + + + */ + + + + } |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:58
|
Update of /cvsroot/mc4j/mc4j/application/dashboards/websphere In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/application/dashboards/websphere Modified Files: WebSphere_ServerDashboard.xml Log Message: Visual tweaks Index: WebSphere_ServerDashboard.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/websphere/WebSphere_ServerDashboard.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WebSphere_ServerDashboard.xml 12 Apr 2006 19:14:16 -0000 1.2 --- WebSphere_ServerDashboard.xml 22 May 2006 02:38:52 -0000 1.3 *************** *** 7,13 **** --> ! <Dashboard version="2.0" name="JBoss Server Dashboard"> ! <Description>This dashboard displays basic information relating to the ! overall execution of a WebSphere server.</Description> <DashboardMatch type="Global" location="/WebSphere"> --- 7,13 ---- --> ! <Dashboard version="2.0" name="WebSphere Server Dashboard" standardHeader="true" autoRefresh="true" refreshControl="true"> ! <Description>Basic information of a WebSphere Application Server ! </Description> <DashboardMatch type="Global" location="/WebSphere"> *************** *** 26,32 **** --> ! <BeanMatch id="ServerBean" type="Single"> ! <Condition type="BeanObjectNameRegexCondition" filter="WebSphere:"/> ! <Condition type="BeanObjectNameRegexCondition" filter="type=Server"/> </BeanMatch> --- 26,31 ---- --> ! <BeanMatch id="Server" type="Single"> ! <Condition type="BeanObjectNameRegexCondition" filter="WebSphere:.*type=Server,.*"/> </BeanMatch> *************** *** 45,51 **** cell=gregh --> ! <BeanMatch id="JVMBean" type="Single"> ! <Condition type="BeanObjectNameRegexCondition" filter="WebSphere:"/> ! <Condition type="BeanObjectNameRegexCondition" filter="type=JVM"/> </BeanMatch> --- 44,49 ---- cell=gregh --> ! <BeanMatch id="JVM" type="Single"> ! <Condition type="BeanObjectNameRegexCondition" filter="WebSphere:.*type=JVM.*"/> </BeanMatch> *************** *** 53,108 **** ! <LayoutManager type="java.awt.BorderLayout"/> ! <Content> ! <Component type="org.mc4j.console.dashboard.components.html.HtmlDashboardComponent"> ! <Attribute name="htmlDocumentName" value="'WebSphere/WebSphere_ServerDashboard.html'"/> ! ! <Content> ! ! <!-- ! TODO GH: Doesn't work since IBM returns strings ! <Component id="memoryMeter" type="org.mc4j.console.dashboard.components.NumericAttributeGaugeMeter"> ! <Constraint type="BorderConstraints" direction="CENTER"/> ! <Attribute name="bean" value="#JVMBean"/> ! <Attribute name="maxAttributeName" value="'heapSize'"/> ! <Attribute name="currentAttributeName" value="'freeMemory'"/> ! <Attribute name="label" value="'Free Memory'"/> ! <Attribute name="updateInterval" value="'1000'"/> ! <Attribute name="warningPoint" value="'0.15'"/> ! <Attribute name="criticalPoint" value="'0.05'"/> ! <Attribute name="title" value="'Available Memory'"/> ! <Attribute name="units" value="'MB'"/> ! <Attribute name="opaque" value="'false'"/> ! <Attribute name="unitConverter" value="'org.mc4j.console.util.unit.ByteToMegaByteConverter'"/> ! </Component> ! --> ! <!-- ! <Component id="memoryMeter" type="org.mc4j.console.dashboard.components.NumericAttributeMeter"> ! <Attribute name="bean" value="#JBossServerInfoBean"/> ! <Attribute name="preferredSize" value="'150,150'"/> ! <Attribute name="maxAttributeName" value="'MaxMemory'"/> ! <Attribute name="currentAttributeName" value="'FreeMemory'"/> ! <Attribute name="minimumSize" value="'50,50'"/> ! <Attribute name="label" value="'Free Memory'"/> ! <Attribute name="updateInterval" value="'0'"/> ! </Component> ! <Component type="org.mc4j.console.dashboard.components.NumericAttributeGraph"> ! <Attribute name="bean" value="#JBossServerInfoBean"/> ! <Constraint type="java.awt.GridBagConstraints" anchor="NORTH" gridx="1" gridy="2" widthx="2" weightx="0.5" weighty="0.5" fill="BOTH" insets="3,3,3,3"/> ! <Attribute name="preferredSize" value="'100,100'"/> ! <Attribute name="attributeName" value="'FreeMemory'"/> ! </Component> ! --> ! </Content> ! </Component> ! </Content> </Dashboard> --- 51,83 ---- ! <LayoutManager type="java.awt.BorderLayout"/> ! <Content> ! <Component type="org.mc4j.console.dashboard.components.html.HtmlDashboardComponent"> ! <Attribute name="html"> ! <![CDATA[ + <html> + <h1>${Server.platformName} ${Server.platformVersion}</h1> ! ${Server.serverVersion} ! <table> ! <tr> ! <td><b>Process Id:</b></td><td>${Server.pid}</td> ! <td><b>VM:</b></td><td>${JVM.javaVendor} ${JVM.javaVersion}</td> ! </tr> ! </table> ! </html> ! ]]> ! </Attribute> + <Content> ! </Content> ! </Component> ! </Content> </Dashboard> |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:58
|
Update of /cvsroot/mc4j/mc4j/modules/ems/src/ems/org/mc4j/ems/connection/support/classloader In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/modules/ems/src/ems/org/mc4j/ems/connection/support/classloader Modified Files: ClassLoaderFactory.java Log Message: Visual tweaks Index: ClassLoaderFactory.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems/org/mc4j/ems/connection/support/classloader/ClassLoaderFactory.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ClassLoaderFactory.java 12 Apr 2006 19:11:35 -0000 1.2 --- ClassLoaderFactory.java 22 May 2006 02:38:52 -0000 1.3 *************** *** 24,27 **** --- 24,28 ---- import org.mc4j.ems.connection.support.metadata.JSR160ConnectionTypeDescriptor; import org.mc4j.ems.connection.support.metadata.WeblogicConnectionTypeDescriptor; + import org.mc4j.ems.connection.support.metadata.WebsphereConnectionTypeDescriptor; import java.io.*; *************** *** 150,156 **** URL[] entryArray = entries.toArray(new URL[entries.size()]); ! // TODO - WARNING: GH - DISGUSTING HACK URLClassLoader loader = null; ! if ((settings.getConnectionType() instanceof WeblogicConnectionTypeDescriptor)) { loader = new ChildFirstClassloader(entryArray, ClassLoaderFactory.class.getClassLoader()); } else { --- 151,157 ---- URL[] entryArray = entries.toArray(new URL[entries.size()]); ! // WARNING: Relatively disgusting hack. hiding classes is not a good thing URLClassLoader loader = null; ! if (settings.getConnectionType().isUseChildFirstClassLoader()) { loader = new ChildFirstClassloader(entryArray, ClassLoaderFactory.class.getClassLoader()); } else { |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:56
|
Update of /cvsroot/mc4j/mc4j/application/dashboards/jre15 In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/application/dashboards/jre15 Modified Files: JRE15_SystemInfo.xml JRE15_Deadlock.xml Added Files: JRE15_Logging.xml Log Message: Visual tweaks Index: JRE15_Deadlock.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/jre15/JRE15_Deadlock.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JRE15_Deadlock.xml 12 Apr 2006 19:14:01 -0000 1.2 --- JRE15_Deadlock.xml 22 May 2006 02:38:52 -0000 1.3 *************** *** 3,24 **** <Dashboard version="2.0" name="Deadlock" autoRefresh="true" refreshControl="true" standardHeader="true"> - - <Description>Deadlocked threads.</Description> - - <DashboardMatch type="Global" location="/JVM"> - <BeanMatch id="threadingBean" type="Single"> - <Condition type="BeanObjectNameRegexCondition" filter="type=Threading"/> - </BeanMatch> - </DashboardMatch> ! <LayoutManager type="java.awt.BorderLayout"/> ! <Content> ! <Component type="org.mc4j.jre15.components.DeadlockDetectionComponent"> ! <Attribute name="bean" value="threadingBean"/> ! </Component> ! </Content> </Dashboard> --- 3,22 ---- <Dashboard version="2.0" name="Deadlock" autoRefresh="true" refreshControl="true" standardHeader="true"> ! <Description>Deadlocked threads.</Description> + <DashboardMatch type="Global" location="/JVM"> + <BeanMatch id="Threading" type="Single"> + <Condition type="BeanObjectNameRegexCondition" filter="type=Threading"/> + </BeanMatch> + </DashboardMatch> + <LayoutManager type="java.awt.BorderLayout"/> + <Content> ! <Component type="org.mc4j.jre15.components.DeadlockDetectionComponent"> ! <Attribute name="bean" value="#Threading"/> ! </Component> ! </Content> </Dashboard> Index: JRE15_SystemInfo.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/jre15/JRE15_SystemInfo.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JRE15_SystemInfo.xml 17 Apr 2006 03:07:26 -0000 1.3 --- JRE15_SystemInfo.xml 22 May 2006 02:38:52 -0000 1.4 *************** *** 26,33 **** <Condition type="BeanObjectNameRegexCondition" filter="java.lang"/> </BeanMatch> ! <BeanMatch id="Compilation" type="Single"> <Condition type="BeanObjectNameRegexCondition" filter="type=Compilation"/> <Condition type="BeanObjectNameRegexCondition" filter="java.lang"/> ! </BeanMatch> <BeanMatch id="garbageCollectors" type="Multiple"> <Condition type="BeanObjectNameRegexCondition" filter="type=GarbageCollector"/> --- 26,33 ---- <Condition type="BeanObjectNameRegexCondition" filter="java.lang"/> </BeanMatch> ! <!--<BeanMatch id="Compilation" type="Single"> <Condition type="BeanObjectNameRegexCondition" filter="type=Compilation"/> <Condition type="BeanObjectNameRegexCondition" filter="java.lang"/> ! </BeanMatch>--> <BeanMatch id="garbageCollectors" type="Multiple"> <Condition type="BeanObjectNameRegexCondition" filter="type=GarbageCollector"/> *************** *** 84,88 **** <tr> <td align="right"><b>Total classes loaded:</b></td><td> ${ClassLoading.TotalLoadedClassCount}</td> ! <td align="right"><b>Compile time:</b></td><td> ${#format.timeMillis(Compilation.TotalCompilationTime)}</td> </tr> --- 84,88 ---- <tr> <td align="right"><b>Total classes loaded:</b></td><td> ${ClassLoading.TotalLoadedClassCount}</td> ! <td align="right"><!-- not on jd6? <b>Compile time:</b></td><td> ${#format.timeMillis(Compilation.TotalCompilationTime)}--></td> </tr> --- NEW FILE: JRE15_Logging.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="Logging" autoRefresh="true" refreshControl="true" standardHeader="true"> <Description>JDK Loggers and Levels</Description> <DashboardMatch type="Global" location="/JVM"> <BeanMatch id="Logging" type="Single"> <Condition type="BeanObjectNameCondition" filter="java.util.logging:type=Logging"/> </BeanMatch> </DashboardMatch> <LayoutManager type="java.awt.BorderLayout"/> <Content> <Component type="org.mc4j.jre15.components.LogManager"> <Attribute name="bean" value="#Logging"/> </Component> </Content> </Dashboard> |
Update of /cvsroot/mc4j/mc4j/modules/ems/src/ems/org/mc4j/ems/connection/support/metadata In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/modules/ems/src/ems/org/mc4j/ems/connection/support/metadata Modified Files: AbstractConnectionTypeDescriptor.java WebsphereConnectionTypeDescriptor.java ConnectionTypeDescriptor.java Log Message: Visual tweaks Index: WebsphereConnectionTypeDescriptor.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems/org/mc4j/ems/connection/support/metadata/WebsphereConnectionTypeDescriptor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WebsphereConnectionTypeDescriptor.java 12 Apr 2006 19:11:33 -0000 1.2 --- WebsphereConnectionTypeDescriptor.java 22 May 2006 02:38:52 -0000 1.3 *************** *** 63,66 **** --- 63,68 ---- "AppServer/deploytool/itp/plugins/com.ibm.etools.jsse/ibmjsse.jar", "AppServer/java/jre/lib/ext/mail.jar", + "AppServer/java/jre/lib/ibmcertpathprovider.jar", + "AppServer/java/jre/lib/ext/ibmjceprovider.jar", "AppServer/deploytool/itp/plugins/org.apache.xerces_4.0.13/xercesImpl.jar", "AppServer/deploytool/itp/plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar", *************** *** 69,73 **** public String getConnectionNodeClassName() { ! return "org.mc4j.console.connection.WebsphereConnectionProvider"; } --- 71,75 ---- public String getConnectionNodeClassName() { ! return "org.mc4j.ems.impl.jmx.connection.support.providers.WebsphereConnectionProvider"; } Index: AbstractConnectionTypeDescriptor.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems/org/mc4j/ems/connection/support/metadata/AbstractConnectionTypeDescriptor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** AbstractConnectionTypeDescriptor.java 12 Apr 2006 19:11:33 -0000 1.2 --- AbstractConnectionTypeDescriptor.java 22 May 2006 02:38:52 -0000 1.3 *************** *** 77,80 **** --- 77,83 ---- } + public boolean isUseChildFirstClassLoader() { + return false; + } Index: ConnectionTypeDescriptor.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems/org/mc4j/ems/connection/support/metadata/ConnectionTypeDescriptor.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ConnectionTypeDescriptor.java 12 Apr 2006 19:11:33 -0000 1.2 --- ConnectionTypeDescriptor.java 22 May 2006 02:38:52 -0000 1.3 *************** *** 27,30 **** --- 27,35 ---- public interface ConnectionTypeDescriptor extends Serializable { + /** + * Typically used to provide an example template for the url necessary to connect + * to this server type. + * @return The default server url for connecting to this server type. + */ String getDefaultServerUrl(); *************** *** 59,61 **** --- 64,74 ---- Properties getDefaultAdvancedProperties(); + /** + * True if the ClassLoaderFactory should use the connection specific library + * classes before using the system classes. This may be, for example, to utilize + * the WebSphere or WebLogic JMX classes instead of the JDK 1.5 classes. + * @return true if connection classes should be used first + */ + boolean isUseChildFirstClassLoader(); + } |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:56
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/connection In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/src/org/mc4j/console/connection Modified Files: ConnectionNode.java Log Message: Visual tweaks Index: ConnectionNode.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/connection/ConnectionNode.java,v retrieving revision 1.44 retrieving revision 1.45 diff -C2 -d -r1.44 -r1.45 *** ConnectionNode.java 12 Apr 2006 19:13:59 -0000 1.44 --- ConnectionNode.java 22 May 2006 02:38:52 -0000 1.45 *************** *** 395,398 **** --- 395,400 ---- connectionFailure = true; updateIcon(); + + e.printStackTrace(IOProvider.getDefault().getStdOut()); JOptionPane.showMessageDialog(null,"Unable to open connection to server: " + e.getCause().getMessage(), "Connection Error", JOptionPane.ERROR_MESSAGE); |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:56
|
Update of /cvsroot/mc4j/mc4j In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360 Modified Files: MC4JProject.ipr MC4J.iml MC4JProject.iws Log Message: Visual tweaks Index: MC4JProject.iws =================================================================== RCS file: /cvsroot/mc4j/mc4j/MC4JProject.iws,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MC4JProject.iws 12 Apr 2006 19:14:00 -0000 1.5 --- MC4JProject.iws 22 May 2006 02:38:52 -0000 1.6 *************** *** 3,6 **** --- 3,13 ---- <component name="AspectsView" /> <component name="BookmarkManager" /> + <component name="BuildServerSettings"> + <option name="USER_ID" value="-1" /> + <option name="SERVER_URL" value="http://buildserver" /> + <option name="HIDE_SUCCESSFUL" value="false" /> + <option name="SHOW_MODIFIED_ONLY" value="false" /> + <option name="LOGIN" value="" /> + </component> [...1947 lines suppressed...] ! <state line="24" column="0" selection-start="583" selection-end="583" vertical-scroll-proportion="0.26995304"> <folding /> </state> </provider> </entry> ! <entry file="jar://C:/jdk/jdk1.6.0/src.zip!/java/util/logging/LoggingMXBean.java"> <provider selected="true" editor-type-id="text-editor"> ! <state line="24" column="47" selection-start="865" selection-end="895" vertical-scroll-proportion="0.019953052"> <folding /> </state> </provider> </entry> ! <entry file="file://$PROJECT_DIR$/src/org/mc4j/jre15/components/ThreadsViewComponent.java"> <provider selected="true" editor-type-id="text-editor"> ! <state line="24" column="50" selection-start="1053" selection-end="1053" vertical-scroll-proportion="0.20310633"> ! <folding> ! <element signature="imports" expanded="true" /> ! </folding> </state> </provider> Index: MC4J.iml =================================================================== RCS file: /cvsroot/mc4j/mc4j/MC4J.iml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** MC4J.iml 12 Apr 2006 19:14:00 -0000 1.2 --- MC4J.iml 22 May 2006 02:38:52 -0000 1.3 *************** *** 10,14 **** <excludeFolder url="file://$MODULE_DIR$/mc4j2" /> </content> ! <orderEntry type="inheritedJdk" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="JBoss" level="project" /> --- 10,14 ---- <excludeFolder url="file://$MODULE_DIR$/mc4j2" /> </content> ! <orderEntry type="jdk" jdkName="1.6" jdkType="JavaSDK" /> <orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="library" name="JBoss" level="project" /> *************** *** 40,44 **** </orderEntry> <orderEntry type="module" module-name="ems" /> - <orderEntry type="library" name="chires" level="project" /> <orderEntry type="module-library"> <library> --- 40,43 ---- *************** *** 50,54 **** </library> </orderEntry> - <orderEntry type="library" name="NetBeans" level="application" /> <orderEntry type="module-library"> <library> --- 49,52 ---- Index: MC4JProject.ipr =================================================================== RCS file: /cvsroot/mc4j/mc4j/MC4JProject.ipr,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MC4JProject.ipr 12 Apr 2006 19:14:00 -0000 1.5 --- MC4JProject.ipr 22 May 2006 02:38:52 -0000 1.6 *************** *** 6,10 **** <additionalClassPath /> <antReference projectDefault="true" /> ! <customJdkName value="1.5.0_06" /> <maximumHeapSize value="128" /> <properties /> --- 6,10 ---- <additionalClassPath /> <antReference projectDefault="true" /> ! <customJdkName value="1.6" /> <maximumHeapSize value="128" /> <properties /> *************** *** 30,35 **** </component> <component name="CodeStyleSettingsManager"> ! <option name="PER_PROJECT_SETTINGS" /> ! <option name="USE_PER_PROJECT_SETTINGS" value="false" /> </component> <component name="CompilerConfiguration"> --- 30,49 ---- </component> <component name="CodeStyleSettingsManager"> ! <option name="PER_PROJECT_SETTINGS"> ! <value> ! <option name="JAVA_INDENT_OPTIONS"> ! <value> ! <option name="INDENT_SIZE" value="4" /> ! <option name="CONTINUATION_INDENT_SIZE" value="4" /> ! <option name="TAB_SIZE" value="4" /> ! <option name="USE_TAB_CHARACTER" value="false" /> ! <option name="SMART_TABS" value="false" /> ! <option name="LABEL_INDENT_SIZE" value="0" /> ! <option name="LABEL_INDENT_ABSOLUTE" value="false" /> ! </value> ! </option> ! </value> ! </option> ! <option name="USE_PER_PROJECT_SETTINGS" value="true" /> </component> <component name="CompilerConfiguration"> *************** *** 50,53 **** --- 64,68 ---- </wildcardResourcePatterns> </component> + <component name="CoverageDataManager" /> <component name="DataSourceManager" /> <component name="DataSourceManagerImpl" /> *************** *** 85,88 **** --- 100,104 ---- </component> <component name="GUI Designer component loader factory" /> + <component name="IdProvider" IDEtalkID="C140C6D456661C4C2FD16D8C7971265F" /> <component name="InspectionProjectProfileManager"> <option name="PROJECT_PROFILE" value="Project Default" /> *************** *** 123,126 **** --- 139,148 ---- <option name="ADDITIONAL_OPTIONS_STRING" value="" /> </component> + <component name="LogConsolePreferences"> + <option name="FILTER_ERRORS" value="false" /> + <option name="FILTER_WARNINGS" value="false" /> + <option name="FILTER_INFO" value="true" /> + <option name="CUSTOM_FILTER" /> + </component> <component name="Palette2"> <group name="Swing"> *************** *** 251,254 **** --- 273,277 ---- </component> <component name="ProjectRootManager" version="2" assert-keyword="true" jdk-15="true" project-jdk-name="1.5.0_06" /> + <component name="ProjectRunConfigurationManager" /> <component name="RmicSettings"> <option name="IS_EANABLED" value="false" /> *************** *** 323,343 **** <library name="NetBeans"> <CLASSES> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/lib/ext/boot.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/lib/core.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/lib/openide-loaders.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/lib/openide.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/lib/updater.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/modules/core-ui.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/modules/core-windows.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/modules/text.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/modules/autoload/core-output.jar!/" /> ! <root url="jar://$PROJECT_DIR$/../application/mc4j/modules/autoload/openide-io.jar!/" /> </CLASSES> <JAVADOC /> ! <SOURCES> ! <root url="file://C:/src/netbeans-src/openide/src" /> ! <root url="file://C:/src/netbeans-src/core/src" /> ! <root url="file://C:/src/netbeans-src/core/output/src" /> ! </SOURCES> </library> <library name="Carbon"> --- 346,384 ---- <library name="NetBeans"> <CLASSES> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-compat.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-modules-autoupdate.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-core-ui.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-modules-javahelp.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-text.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-execution.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-nodes.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-loaders.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-dialogs.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-awt.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/lib/org-openide-util.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-windows.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-swing-tabcontrol.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-options.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-io.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-explorer.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-modules-masterfs.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-core.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-core-execution.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-mc4j-console.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-modules-queries.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-api-progress.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-modules-settings.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-actions.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-core-multiview.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-modules-favorites.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-jdesktop-layout.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-core-output2.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-openide-util-enumerations.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-swing-plaf.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/modules/org-netbeans-core-windows.jar!/" /> ! <root url="jar://$PROJECT_DIR$/build/mc4j/platform6/lib/org-openide-modules.jar!/" /> </CLASSES> <JAVADOC /> ! <SOURCES /> </library> <library name="Carbon"> |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:55
|
Update of /cvsroot/mc4j/mc4j/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/bean In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/bean Modified Files: DMBean.java Log Message: Visual tweaks Index: DMBean.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/bean/DMBean.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** DMBean.java 17 Apr 2006 03:07:25 -0000 1.4 --- DMBean.java 22 May 2006 02:38:52 -0000 1.5 *************** *** 42,47 **** --- 42,49 ---- import javax.management.MBeanServer; import javax.management.ObjectName; + import javax.management.modelmbean.ModelMBeanInfo; import java.util.ArrayList; import java.util.HashMap; + import java.util.Iterator; import java.util.LinkedList; import java.util.List; *************** *** 50,54 **** import java.util.TreeMap; import java.util.TreeSet; - import java.util.Iterator; /** --- 52,55 ---- *************** *** 140,160 **** info = connectionProvider.getMBeanServer().getMBeanInfo(this.objectName); ! MBeanAttributeInfo[] attributes = info.getAttributes(); ! for (MBeanAttributeInfo attributeInfo : attributes) { DAttribute attribute = new DAttribute(attributeInfo, this); this.attributes.put(attributeInfo.getName(), attribute); } ! MBeanOperationInfo[] operations = info.getOperations(); ! for (MBeanOperationInfo operationInfo : operations) { DOperation operation = new DOperation(operationInfo, this); this.operations.put(operationInfo.getName(), operation); } ! MBeanNotificationInfo[] notifications = info.getNotifications(); ! for (MBeanNotificationInfo notificationInfo : notifications) { DNotification notification = new DNotification(notificationInfo, this); this.notifications.put(notificationInfo.getName(), notification); } loaded = true; } catch (InstanceNotFoundException infe) { --- 141,159 ---- info = connectionProvider.getMBeanServer().getMBeanInfo(this.objectName); ! for (MBeanAttributeInfo attributeInfo : info.getAttributes()) { DAttribute attribute = new DAttribute(attributeInfo, this); this.attributes.put(attributeInfo.getName(), attribute); } ! for (MBeanOperationInfo operationInfo : info.getOperations()) { DOperation operation = new DOperation(operationInfo, this); this.operations.put(operationInfo.getName(), operation); } ! for (MBeanNotificationInfo notificationInfo : info.getNotifications()) { DNotification notification = new DNotification(notificationInfo, this); this.notifications.put(notificationInfo.getName(), notification); } + loaded = true; } catch (InstanceNotFoundException infe) { |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:55
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/components In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/src/org/mc4j/console/dashboard/components Modified Files: OperationResultTableComponent.java Log Message: Visual tweaks |
From: Greg H. <gh...@us...> - 2006-05-22 02:38:55
|
Update of /cvsroot/mc4j/mc4j/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/support/providers In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv32360/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/support/providers Modified Files: WebsphereConnectionProvider.java JBossConnectionProvider.java Log Message: Visual tweaks Index: JBossConnectionProvider.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/support/providers/JBossConnectionProvider.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JBossConnectionProvider.java 12 Apr 2006 19:11:33 -0000 1.2 --- JBossConnectionProvider.java 22 May 2006 02:38:52 -0000 1.3 *************** *** 26,29 **** --- 26,30 ---- import javax.naming.InitialContext; import javax.naming.NamingException; + import javax.naming.NoInitialContextException; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; *************** *** 129,134 **** props.put(Context.PROVIDER_URL, connectionSettings.getServerUrl()); ! InitialContext context = new InitialContext(props); ! return context; } --- 130,144 ---- props.put(Context.PROVIDER_URL, connectionSettings.getServerUrl()); ! try { ! InitialContext context = new InitialContext(props); ! return context; ! } catch(NoInitialContextException e) { ! // Try to be more helpful, indicating the reason we couldn't make the connection in this ! // common case of missing libraries ! if (e.getCause() instanceof ClassNotFoundException) { ! throw new ConnectionException("Necessary classes not found for remote connection, check installation path configuration.",e.getCause()); ! } ! throw e; ! } } Index: WebsphereConnectionProvider.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/support/providers/WebsphereConnectionProvider.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** WebsphereConnectionProvider.java 12 Apr 2006 19:11:33 -0000 1.2 --- WebsphereConnectionProvider.java 22 May 2006 02:38:52 -0000 1.3 *************** *** 143,150 **** Method createMethod = ! adminClientFactoryClass.getMethod("createAdminClient",new Class[] { Properties.class }); Object adminClient = ! createMethod.invoke(null, new Object[] { props }); this.statsProxy = new GenericMBeanServerProxy(adminClient); --- 143,150 ---- Method createMethod = ! adminClientFactoryClass.getMethod("createAdminClient", Properties.class); Object adminClient = ! createMethod.invoke(null, props); this.statsProxy = new GenericMBeanServerProxy(adminClient); *************** *** 152,156 **** //this.mejb = retrieveMEJB(ctx); - super.connect(); // TODO GH: Customize exception and error messages to help --- 152,155 ---- |
From: Greg H. <gh...@us...> - 2006-04-19 03:37:43
|
Update of /cvsroot/mc4j/mc4j/application/dashboards/hibernate In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7590/application/dashboards/hibernate Modified Files: Hibernate_EntitiesTable.xml Hibernate_Overview.xml Hibernate_QueriesTable.xml Log Message: Rewrote the table model Index: Hibernate_QueriesTable.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/hibernate/Hibernate_QueriesTable.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Hibernate_QueriesTable.xml 12 Apr 2006 19:14:11 -0000 1.2 --- Hibernate_QueriesTable.xml 19 Apr 2006 03:37:39 -0000 1.3 *************** *** 19,43 **** <Component type="org.mc4j.console.dashboard.components.OperationResultTableComponent"> - <Attribute name="bean" value="StatisticsBean"/> <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="background" value="'0xFFFFFF'"/> - <Attribute name="preferredSize" value="100,100"/> ! <Attribute name="operationName" value="'getQueryStatistics'"/> ! <Attribute name="attributeKeyListName" value="'Queries'"/> <Attribute name="keyLabel" value="'Query'"/> ! <Attribute name="AttributeName" value="'KEY'"/> ! <Attribute name="AttributeName" value="'executionCount'"/> ! <Attribute name="AttributeName" value="'cacheHitCount'"/> ! <Attribute name="AttributeName" value="'cachePutCount'"/> ! <Attribute name="AttributeName" value="'cacheMissCount'"/> ! <Attribute name="AttributeName" value="'executionRowCount'"/> ! <Attribute name="AttributeName" value="'executionAvgTime'"/> ! <Attribute name="AttributeName" value="'executionMaxTime'"/> ! <Attribute name="AttributeName" value="'executionMinTime'"/> </Component> --- 19,41 ---- <Component type="org.mc4j.console.dashboard.components.OperationResultTableComponent"> <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="background" value="'0xFFFFFF'"/> ! <Attribute name="operation" value="#StatisticsBean.getOperation('getQueryStatistics')"/> ! <Attribute name="keyAttribute" value="#StatisticsBean.getAttribute('Queries')"/> <Attribute name="keyLabel" value="'Query'"/> ! <Attribute name="fieldName" value="'KEY'"/> ! <Attribute name="fieldName" value="'executionCount'"/> ! <Attribute name="fieldName" value="'cacheHitCount'"/> ! <Attribute name="fieldName" value="'cachePutCount'"/> ! <Attribute name="fieldName" value="'cacheMissCount'"/> ! <Attribute name="fieldName" value="'executionRowCount'"/> ! <Attribute name="fieldName" value="'executionAvgTime'"/> ! <Attribute name="fieldName" value="'executionMaxTime'"/> ! <Attribute name="fieldName" value="'executionMinTime'"/> </Component> Index: Hibernate_EntitiesTable.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/hibernate/Hibernate_EntitiesTable.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Hibernate_EntitiesTable.xml 12 Apr 2006 19:14:11 -0000 1.2 --- Hibernate_EntitiesTable.xml 19 Apr 2006 03:37:39 -0000 1.3 *************** *** 17,38 **** <Component type="org.mc4j.console.dashboard.components.OperationResultTableComponent"> - <Attribute name="bean" value="StatisticsBean"/> <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="background" value="'0xFFFFFF'"/> - <Attribute name="preferredSize" value="100,100"/> ! <Attribute name="operationName" value="'getEntityStatistics'"/> ! <Attribute name="attributeKeyListName" value="'EntityNames'"/> <Attribute name="keyLabel" value="'Entity'"/> ! <Attribute name="AttributeName" value="'KEY'"/> ! <Attribute name="AttributeName" value="'fetchCount'"/> ! <Attribute name="AttributeName" value="'t'"/> ! <Attribute name="AttributeName" value="'insertCount'"/> ! <Attribute name="AttributeName" value="'updateCount'"/> ! <Attribute name="AttributeName" value="'deleteCount'"/> </Component> --- 17,36 ---- <Component type="org.mc4j.console.dashboard.components.OperationResultTableComponent"> <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="background" value="'0xFFFFFF'"/> ! <Attribute name="operation" value="#StatisticsBean.getOperation('getEntityStatistics')"/> ! <Attribute name="keyAttribute" value="#StatisticsBean.getAttribute('EntityNames')"/> <Attribute name="keyLabel" value="'Entity'"/> ! <Attribute name="fieldName" value="'KEY'"/> ! <Attribute name="fieldName" value="'fetchCount'"/> ! <Attribute name="fieldName" value="'loadCount'"/> ! <Attribute name="fieldName" value="'insertCount'"/> ! <Attribute name="fieldName" value="'updateCount'"/> ! <Attribute name="fieldName" value="'deleteCount'"/> </Component> Index: Hibernate_Overview.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/hibernate/Hibernate_Overview.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Hibernate_Overview.xml 12 Apr 2006 19:14:11 -0000 1.2 --- Hibernate_Overview.xml 19 Apr 2006 03:37:39 -0000 1.3 *************** *** 55,61 **** <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> --- 55,61 ---- <table width="100%"> <tr> ! <td class="sectionHeader" colspan="2" align="left"><h3>Entity Totals</h3></td> ! <td class="sectionHeader" colspan="2" align="left"><h3>Collection Totals</h3></td> ! <td class="sectionHeader" colspan="2" align="left"><h3>Query Totals</h3></td> </tr> <tr> |
From: Greg H. <gh...@us...> - 2006-04-19 03:36:29
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6628a/src/org/mc4j/console/dashboard/components Modified Files: OperationResultTableComponent.java Log Message: Rewrote the table model Index: OperationResultTableComponent.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/components/OperationResultTableComponent.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** OperationResultTableComponent.java 17 Apr 2006 12:01:27 -0000 1.3 --- OperationResultTableComponent.java 19 Apr 2006 03:36:22 -0000 1.4 *************** *** 22,50 **** import org.jdesktop.swingx.decorator.Highlighter; import org.jdesktop.swingx.decorator.HighlighterPipeline; import org.mc4j.console.dashboard.context.OgnlHelper; - import org.mc4j.ems.connection.bean.EmsBean; import org.mc4j.ems.connection.bean.attribute.EmsAttribute; import org.mc4j.ems.connection.bean.operation.EmsOperation; import javax.swing.*; import java.awt.BorderLayout; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; - import java.util.Iterator; import java.util.List; import java.util.Map; /** * @author Greg Hinkle (gh...@us...), January 2004 * @version $Revision$($Author$ / $Date$) */ ! public class OperationResultTableComponent extends AttributeTableComponent implements BeanComponent { - protected EmsBean emsBean; - protected String operationName; - protected String attributeKeyListName; protected String rowKey; ! protected EmsOperation operation; --- 22,60 ---- import org.jdesktop.swingx.decorator.Highlighter; import org.jdesktop.swingx.decorator.HighlighterPipeline; + import org.mc4j.console.dashboard.DashboardComponent; import org.mc4j.console.dashboard.context.OgnlHelper; import org.mc4j.ems.connection.bean.attribute.EmsAttribute; import org.mc4j.ems.connection.bean.operation.EmsOperation; import javax.swing.*; + import javax.swing.table.AbstractTableModel; + import javax.swing.table.DefaultTableCellRenderer; + import javax.swing.table.TableColumn; import java.awt.BorderLayout; + import java.awt.Component; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.List; import java.util.Map; + import java.util.Enumeration; /** + * This is a weird little table. It uses a collection attribute as a list + * of keys to a operation that takes a string parameter. Each name in the + * collection attribute represents a row. We then grab fields of the returned + * value objects for the columns. + * <p/> + * It also has a simpler version where it expects only an operation that + * returns a collection that is then rowed the same way. + * * @author Greg Hinkle (gh...@us...), January 2004 * @version $Revision$($Author$ / $Date$) */ ! public class OperationResultTableComponent extends JPanel implements DashboardComponent { protected String rowKey; ! protected List<String> fieldNames = new ArrayList<String>(); ! protected EmsAttribute keyAttribute; protected EmsOperation operation; *************** *** 52,68 **** protected String keyLabel; - protected List currentKeys = new ArrayList(); ! public void setBean(EmsBean emsBean) { ! this.emsBean = emsBean; ! } ! public void setAttributeKeyListName(String attributeKeyListName) { ! this.attributeKeyListName = attributeKeyListName; } ! public void setOperationName(String operationName) { ! this.operationName = operationName; } --- 62,76 ---- protected String keyLabel; protected List currentKeys = new ArrayList(); ! protected JXTable table; ! protected OperationResultsTableModel tableModel; ! public void setFieldName(String fieldName) { ! this.fieldNames.add(fieldName); } ! public void setKeyAttribute(EmsAttribute keyAttribute) { ! this.keyAttribute = keyAttribute; } *************** *** 71,74 **** --- 79,83 ---- } + public void setRowKey(String rowKey) { this.rowKey = rowKey; *************** *** 76,91 **** protected Object execute(String key) { - try { ! ! final Object[] parameterValues = new Object[]{key}; ! final String[] parameterTypes = new String[]{"java.lang.String"}; ! ! Object result = null; ! ! // EmsOperation operation = emsBean.getOperation(operationName); ! result = operation.invoke(parameterValues); ! ! return result; } catch (Exception e) { e.printStackTrace(); --- 85,90 ---- protected Object execute(String key) { try { ! return operation.invoke(key); } catch (Exception e) { e.printStackTrace(); *************** *** 94,189 **** } - public void refresh() { - - // if (this.tableModel instanceof AttributeTableModel) - // ((AttributeTableModel) this.tableModel).resetChangeList(); - - Collection keysCollection = null; - if (attributeKeyListName != null) - keysCollection = getKeys(); - else - keysCollection = (Collection) operation.invoke(); - - - - - int row = 0; - for (Iterator iterator = keysCollection.iterator(); iterator.hasNext();) { - Object key = iterator.next(); - - Object value = null; - - if (this.rowKey != null) { - value = key; - try { - key = OgnlHelper.getValue(this.rowKey, null, value, null); - } catch (OgnlException e) { - e.printStackTrace(); - } - } - - if (!currentKeys.contains(key)) { - currentKeys.add(key); - tableModel.incrementRowCount(); - } - row = currentKeys.indexOf(key); - - if (attributeKeyListName != null) - value = execute((String) key); - - - int col = 0; - for (Iterator iterator1 = attributeNames.iterator(); iterator1.hasNext();) { - String attributeName = (String) iterator1.next(); - - Object colValue = null; - if (attributeName.equals("KEY")) { - colValue = key; - } else { ! try { ! colValue = OgnlHelper.getValue(attributeName,null,value,null); ! } catch (OgnlException e) { ! e.printStackTrace(); ! } ! /* ! try { ! BeanInfo info = Introspector.getBeanInfo(value.getClass()); ! PropertyDescriptor[] props = info.getPropertyDescriptors(); ! PropertyDescriptor prop = null; ! for (int i = 0; i < props.length; i++) { ! if (props[i].getName().equals(attributeName)) { ! prop = props[i]; ! break; ! } ! } ! if (prop != null) { ! Object attrObject = prop.getReadMethod().invoke(value, new Object[]{}); ! colValue = (attrObject != null ? attrObject.toString() : "null"); ! } else { ! colValue = "unknown attribute"; ! } ! ! ! } catch (IllegalAccessException e) { ! e.printStackTrace(); ! } catch (InvocationTargetException e) { ! e.printStackTrace(); ! } catch (IntrospectionException e) { ! e.printStackTrace(); ! }*/ ! } ! if ((colValue != null) && !colValue.equals(this.tableModel.getValueAt(row, col))) ! this.tableModel.setValueAt(colValue, row, col); ! ! col++; ! } ! } if (firstLoad) { this.table.setHorizontalScrollEnabled(false); this.table.packAll(); firstLoad = false; } --- 93,111 ---- } ! public void refresh() { ! this.tableModel.refresh(); if (firstLoad) { + this.table.setRolloverEnabled(true); + for (Enumeration e = this.table.getColumnModel().getColumns(); e.hasMoreElements();) { + TableColumn col = (TableColumn) e.nextElement(); + col.setMaxWidth(400); + } this.table.setHorizontalScrollEnabled(false); this.table.packAll(); firstLoad = false; + this.table.doLayout(); } *************** *** 191,202 **** } ! private Collection getKeys() { ! EmsAttribute keyAttribute = emsBean.getAttribute(attributeKeyListName); ! keyAttribute.refresh(); ! Object keysValue = keyAttribute.getValue(); ! Collection keysCollection = null; if (keysValue instanceof Collection) { ! keysCollection = (Collection) keysValue; } else if (keysValue.getClass().isArray()) { keysCollection = Arrays.asList((String[]) keysValue); --- 113,122 ---- } ! private List getKeys() { ! Object keysValue = keyAttribute.refresh(); ! List keysCollection = null; if (keysValue instanceof Collection) { ! keysCollection = new ArrayList((Collection) keysValue); } else if (keysValue.getClass().isArray()) { keysCollection = Arrays.asList((String[]) keysValue); *************** *** 215,229 **** this.setOpaque(false); - Object[] columnNames = attributeNames.toArray(new String[attributeNames.size()]); - - if (keyLabel != null && attributeNames.contains("KEY")) { - columnNames[attributeNames.indexOf("KEY")] = keyLabel; - } - this.tableModel = new AttributeTableModel(columnNames,0); this.table = new JXTable(tableModel); this.table.setColumnControlVisible(true); this.table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); --- 135,149 ---- this.setOpaque(false); + this.tableModel = new OperationResultsTableModel(); //AttributeTableModel(columnNames, 0); + this.tableModel.refresh(); this.table = new JXTable(tableModel); this.table.setColumnControlVisible(true); + this.table.setRowHeightEnabled(true); + int keyIndex = this.fieldNames.indexOf("KEY"); + if (keyIndex >= 0) + this.table.getColumnExt(keyIndex).setCellRenderer(new MultiRowTableCellRenderer()); this.table.setSelectionMode(ListSelectionModel.SINGLE_SELECTION); *************** *** 241,250 **** } ! public void setContext(Map context) { ! // if (this.emsBean == null) { ! // throw new IllegalStateException("AttributeTableComponent: You must specify an appropriate [bean] attribute."); ! // } init(); } --- 161,255 ---- } + public static class MultiRowTableCellRenderer extends DefaultTableCellRenderer { ! public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus, int row, int column) { ! if (value instanceof String) { ! String val = (String) value; ! if (val.contains("\n")) { ! val = "<html>" + val.replace("\n","<br>") + "</html>"; ! setToolTipText(val); ! } ! } ! return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column); ! } ! } ! ! public class OperationResultsTableModel extends AbstractTableModel { ! List<String> keys; ! List rows; ! ! List<Integer> rowHeights = new ArrayList<Integer>(); ! ! int y = 24; //table.getFontMetrics(table.getFont()).getHeight(); ! ! boolean initial = true; + public void refresh() { + if (keyAttribute != null) { + keys = getKeys(); + rows = new ArrayList(); + int i = 0; + for (Object key : keys) { + rows.add(operation.invoke(key)); + + if (initial && table != null) { + String keyString = (String) key; + final int lines = keyString.split("\n").length; + final int row = i++; + // SwingUtilities.invokeLater(new Runnable() { + // public void run() { + // table.setRowHeight(row,lines*y); + // } + // }); + } + } + } else { + rows = operation.getParameters(); + } + if (table != null) { + // table.updateViewSizeSequence(); + initial = false; + } + } + + + public int getRowCount() { + return rows.size(); + } + + public int getColumnCount() { + return fieldNames.size(); + } + + public String getColumnName(int column) { + String field = fieldNames.get(column); + if ("KEY".equals(field) && keyLabel != null) + return keyLabel; + else + return field; + } + + public Object getValueAt(int rowIndex, int columnIndex) { + Object row = rows.get(rowIndex); + + String field = fieldNames.get(columnIndex); + if (keys != null && field.equals("KEY")) { + String keyValue = keys.get(rowIndex); + // if (table.getRowHeight(rowIndex) < 20){ + // table.setRowHeight(rowIndex,150); + // } + return keyValue; + } else { + try { + return OgnlHelper.getValue(field, null, row, null); + } catch (OgnlException e) { + return e.getMessage(); + } + } + } + } + + + public void setContext(Map context) { init(); } |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:33
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/jre15/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/src/org/mc4j/jre15/components Modified Files: MemoryUsageAreaChartComponent.java MemoryUsageComponent.java ThreadsViewComponent.java Log Message: Some images, dashboard component tweaks and dashboard updates Index: MemoryUsageAreaChartComponent.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/jre15/components/MemoryUsageAreaChartComponent.java,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** MemoryUsageAreaChartComponent.java 12 Apr 2006 19:14:04 -0000 1.5 --- MemoryUsageAreaChartComponent.java 17 Apr 2006 12:01:27 -0000 1.6 *************** *** 160,164 **** } ! public void setBeanList(List beanList) { this.beanList = beanList; } --- 160,164 ---- } ! public void setBeanList(List<EmsBean> beanList) { this.beanList = beanList; } Index: ThreadsViewComponent.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/jre15/components/ThreadsViewComponent.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** ThreadsViewComponent.java 12 Apr 2006 19:14:04 -0000 1.2 --- ThreadsViewComponent.java 17 Apr 2006 12:01:27 -0000 1.3 *************** *** 77,83 **** table.getColumnExt(3).setPreferredWidth(350); ! table.getColumnExt(4).setVisible(false); // CPU Total ! table.getColumnExt(6).setVisible(false); // User CPU Total table.getColumnExt(7).setVisible(false); // Blocks Total --- 77,85 ---- table.getColumnExt(3).setPreferredWidth(350); ! // Setting them invisible seems to move them (running this backwards to avoid problems) ! table.getColumnExt(9).setVisible(false); // Lock table.getColumnExt(7).setVisible(false); // Blocks Total + table.getColumnExt(6).setVisible(false); // User CPU Total + table.getColumnExt(4).setVisible(false); // CPU Total Index: MemoryUsageComponent.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/jre15/components/MemoryUsageComponent.java,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** MemoryUsageComponent.java 17 Apr 2006 03:07:26 -0000 1.6 --- MemoryUsageComponent.java 17 Apr 2006 12:01:27 -0000 1.7 *************** *** 39,77 **** public static final String USED = "Used"; - protected void createTimeSeries(String name, Object key) { ! super.createTimeSeries(COMMITTED, name + COMMITTED); ! super.createTimeSeries(INIT, name + INIT); ! super.createTimeSeries(MAX, name + MAX); ! super.createTimeSeries(USED, name + USED); } ! public void addObservation() throws Exception { ! 8 ! for (EmsAttribute attribute : getAttributes()) { ! Object value = attribute.refresh(); //this.emsBean.getAttribute(attributeName).refresh(); MemoryUsage usage = MemoryUsage.from((CompositeData) value); TimeSeries ts; ! String attributeName = ""; ! ts = getTimeSeries(attributeName + COMMITTED); ts.add(new Millisecond(), usage.getCommitted()); ! ts = getTimeSeries(attributeName + INIT); ts.add(new Millisecond(), usage.getInit()); ! ts = getTimeSeries(attributeName + MAX); ts.add(new Millisecond(), usage.getMax()); ! ts = getTimeSeries(attributeName + USED); ts.add(new Millisecond(), usage.getUsed()); ! } } --- 39,83 ---- public static final String USED = "Used"; + // Master attribute + EmsAttribute attribute; ! protected void createTimeSeries() { ! ! super.createTimeSeries(COMMITTED, COMMITTED); ! super.createTimeSeries(INIT, INIT); ! super.createTimeSeries(MAX, MAX); ! super.createTimeSeries(USED, USED); } ! public void setAttribute(EmsAttribute attribute) { ! this.attribute = attribute; ! createTimeSeries(); ! } ! public void addObservation() throws Exception { ! ! ! Object value = this.attribute.refresh(); MemoryUsage usage = MemoryUsage.from((CompositeData) value); TimeSeries ts; ! ts = getTimeSeries(COMMITTED); ts.add(new Millisecond(), usage.getCommitted()); ! ts = getTimeSeries(INIT); ts.add(new Millisecond(), usage.getInit()); ! ts = getTimeSeries(MAX); ts.add(new Millisecond(), usage.getMax()); ! ts = getTimeSeries(USED); ts.add(new Millisecond(), usage.getUsed()); ! } |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:32
|
Update of /cvsroot/mc4j/mc4j/application/dashboards/jre15 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/application/dashboards/jre15 Modified Files: JRE15_MemoryUsage_AllPools.xml JRE15_MemoryUsage_AreaChart.xml Log Message: Some images, dashboard component tweaks and dashboard updates Index: JRE15_MemoryUsage_AllPools.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/jre15/JRE15_MemoryUsage_AllPools.xml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** JRE15_MemoryUsage_AllPools.xml 17 Apr 2006 03:07:26 -0000 1.3 --- JRE15_MemoryUsage_AllPools.xml 17 Apr 2006 12:01:27 -0000 1.4 *************** *** 16,19 **** --- 16,22 ---- <Content> + <Component type="javax.swing.JScrollPane"> + <Content> + <Component type="org.mc4j.console.dashboard.components.ForEachPanelComponent"> *************** *** 24,28 **** <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="preferredSize" value="'100,100'"/> ! <LayoutManager type="" axis="Y_AXIS"/> <Content> --- 27,31 ---- <Constraint type="BorderConstraints" direction="CENTER"/> <Attribute name="preferredSize" value="'100,100'"/> ! <LayoutManager type="java.awt.BoxLayout" axis="Y_AXIS"/> <Content> *************** *** 52,59 **** </Component>--> </Content> </Component> ! </Content> --- 55,66 ---- </Component>--> + <Component type="org.mc4j.console.dashboard.components.FillerComponent"> + <Attribute name="type" value="@org.mc4j.console.dashboard.components.FillerComponent@VERTICAL_GLUE_SHAPE"/> + </Component> </Content> </Component> ! </Content> ! </Component> </Content> Index: JRE15_MemoryUsage_AreaChart.xml =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/dashboards/jre15/JRE15_MemoryUsage_AreaChart.xml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** JRE15_MemoryUsage_AreaChart.xml 12 Apr 2006 19:14:01 -0000 1.2 --- JRE15_MemoryUsage_AreaChart.xml 17 Apr 2006 12:01:27 -0000 1.3 *************** *** 2,6 **** <!DOCTYPE Dashboard PUBLIC "-//MC4J//DTD Dashboard 2.0//EN" "http://mc4j.org/Dashboard_2_0.dtd"> ! <Dashboard version="2.0" name="Pool Usage Area Chart" standardHeader="true" autoRefresh="false" refreshControl="false"> <Description>Memory usage chart of pools for a 1.5 JVM.</Description> --- 2,6 ---- <!DOCTYPE Dashboard PUBLIC "-//MC4J//DTD Dashboard 2.0//EN" "http://mc4j.org/Dashboard_2_0.dtd"> ! <Dashboard version="2.0" name="Pool Usage Area Chart" standardHeader="true" autoRefresh="true" refreshControl="true"> <Description>Memory usage chart of pools for a 1.5 JVM.</Description> |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:31
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/src/org/mc4j/console Modified Files: Welcome.html Log Message: Some images, dashboard component tweaks and dashboard updates Index: Welcome.html =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/Welcome.html,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** Welcome.html 17 Apr 2006 03:07:25 -0000 1.5 --- Welcome.html 17 Apr 2006 12:01:27 -0000 1.6 *************** *** 3,101 **** <title>Welcome to MC4J</title> </head> <body> ! <div style="width: 100%; height: 48px; background: #87adcb"> <table width="100%"> ! <tr> ! <td width="100%"> ! <img align="right" src="classpath://images/AnimatedLogoMC4J2_64.gif"> ! <span style="font-size: 24pt; font-family: Arial Black">MC4J 2.0 alpha 1</span> ! </td> ! </tr> ! </table> </div> <table> ! <tr> ! <td> ! <h2>MC4J - Management Console for Java</h2> ! <p> ! MC4J is a project to create management software for J2EE application servers and other Java applications. ! It is designed to utilize the JMX specification to connect to and introspect information within supported ! servers and applications. It provides the ability to browse existing managed beans (MBeans), update ! configurations, monitor operation and execute tasks. ! </p> ! <h3>What's New</h3> ! <ul> ! <li>MC4J rearchitected from the ground up to make customization easier</li> ! <li>HTML-based dashboard layouts</li> ! <li>New dashboards for Java 1.5</li> ! <li>Faster</li> ! </ul> ! </td> ! <td> ! <object classid="org.mc4j.console.swing.animate.IntroPage" width="350" height="200"></object> ! </td> ! </tr> </table> <h2>How to connect</h2> ! Click on the icon <a href="newconnection"><img src="classpath://org/mc4j/console/connection/ConnectionNodeIcon.gif" border="0"></a> to ! create a connection to your server. See the online User Guide at http://mc4j.sourceforge.net for ! more information. <h2>Supported Servers</h2> ! <table bgcolor="#DDE6E6" border="1"> ! <tr> ! <td style="font-weight: bold;">J2SE 1.5</td> ! <td>1.5 final</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">JBoss</td> ! <td>3.0.x<br>3.2.x<br>4.0</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">JMX Remoting (JSR 160)</td> ! <td>1.0.1 (RMI and JMXP)</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">MX4J</td> ! <td>1.1.1<br>2.x</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">OC4J</td> ! <td>10.0.3</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Tomcat</td> ! <td>4.1.29<br>5.0.18<br>5.5</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Bea Weblogic</td> ! <td>6.1<br>7.0<br>8.1<br>9 beta</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">IBM WebSphere</td> ! <td>5.0<br>5.1<br>6</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Sun JSAS</td> ! <td>8</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Pramati</td> ! <td>3.5.3+</td> ! </tr> ! </table> </body> --- 3,106 ---- <title>Welcome to MC4J</title> </head> + <body> ! <div style="width: 100%; background: #87adcb"> <table width="100%"> ! <tr> ! <td width="76"> ! <img src="classpath://images/AnimatedLogoMC4J2_bluebackground_64.gif"> ! </td><td> ! <span style="font-size: 24pt; font-family: Arial Black">MC4J 2.0 alpha 1</span> ! </td> ! </tr> ! </table> </div> <table> ! <tr> ! <td> ! <h2>MC4J - Management Console for Java</h2> ! <p> ! MC4J is a project to create management software for J2EE application servers and other Java ! applications. ! It is designed to utilize the JMX specification to connect to and introspect information within ! supported ! servers and applications. It provides the ability to browse existing managed beans (MBeans), update ! configurations, monitor operation and execute tasks. ! </p> ! <h3>What's New</h3> ! <ul> ! <li>MC4J rearchitected from the ground up to make customization easier</li> ! <li>HTML-based dashboard layouts</li> ! <li>New dashboards for Java 1.5</li> ! <li>Faster</li> ! </ul> ! </td> ! <td width="350"> ! <object classid="org.mc4j.console.swing.animate.IntroPage" width="350" height="200"></object> ! ! </td> ! </tr> </table> <h2>How to connect</h2> ! Click on the icon <a href="newconnection"><img src="classpath://org/mc4j/console/connection/ConnectionNodeIcon.gif" border="0"></a> to ! create a connection to your server. See the online User Guide at <a href="http://mc4j.org">http://mc4j.org</a> for ! more information. <h2>Supported Servers</h2> ! <table border="0"> ! <tr> ! <td style="font-weight: bold;">J2SE 1.5</td> ! <td>1.5, 1.6</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">JBoss</td> ! <td>3.2.x, 4.0</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">JMX Remoting (JSR 160)</td> ! <td>1.0.1 (RMI and JMXP)</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">MX4J</td> ! <td>1.1.1, 2.x</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">OC4J</td> ! <td>10.0.3</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Tomcat</td> ! <td>4.1.29, 5.0.18, 5.5</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Bea Weblogic</td> ! <td>6.1, 7.0, 8.1, 9</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">IBM WebSphere</td> ! <td>5.0, 5.1, 6</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Sun JSAS</td> ! <td>8</td> ! </tr> ! <tr> ! <td style="font-weight: bold;">Pramati</td> ! <td>3.5.3+</td> ! </tr> ! </table> </body> |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:31
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/swing/graph In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/src/org/mc4j/console/swing/graph Modified Files: AbstractGraphPanel.java Log Message: Some images, dashboard component tweaks and dashboard updates Index: AbstractGraphPanel.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/swing/graph/AbstractGraphPanel.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** AbstractGraphPanel.java 17 Apr 2006 03:07:25 -0000 1.11 --- AbstractGraphPanel.java 17 Apr 2006 12:01:27 -0000 1.12 *************** *** 498,501 **** --- 498,506 ---- } + /** + * + * @param name The attribute name + * @param key The key to the value, usually an EmsAttribute + */ protected void createTimeSeries(String name, T key) { TimeSeries ts = new TimeSeries(name, Millisecond.class); |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:31
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/connection/install/finder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/src/org/mc4j/console/connection/install/finder Modified Files: FileSystemModel.java Log Message: Some images, dashboard component tweaks and dashboard updates Index: FileSystemModel.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/connection/install/finder/FileSystemModel.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** FileSystemModel.java 12 Apr 2006 19:13:58 -0000 1.4 --- FileSystemModel.java 17 Apr 2006 12:01:27 -0000 1.5 *************** *** 21,32 **** import javax.swing.event.TreeModelListener; import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; import java.io.File; import java.io.FileFilter; import java.util.Arrays; import java.util.HashMap; import java.util.Map; ! import java.util.Vector; /** --- 21,37 ---- import javax.swing.event.TreeModelListener; + import javax.swing.event.TreeModelEvent; import javax.swing.tree.TreeModel; import javax.swing.tree.TreePath; import java.io.File; import java.io.FileFilter; + import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; + import java.util.List; import java.util.Map; ! import java.util.concurrent.Callable; ! import java.util.concurrent.ExecutorService; ! import java.util.concurrent.Executors; /** *************** *** 34,38 **** * @version $Revision$($Author$ / $Date$) */ ! public class FileSystemModel implements TreeModel { Map checked = new HashMap(); --- 39,43 ---- * @version $Revision$($Author$ / $Date$) */ ! public class FileSystemModel implements TreeModel { Map checked = new HashMap(); *************** *** 40,48 **** File root = new File("file://"); ! Vector treeModelListeners = new Vector(); private static DirectoryFilter filter = new DirectoryFilter(); private static ServerInstallFinder finder = new ServerInstallFinder(); --- 45,54 ---- File root = new File("file://"); ! List<TreeModelListener> treeModelListeners = new ArrayList<TreeModelListener>(); private static DirectoryFilter filter = new DirectoryFilter(); private static ServerInstallFinder finder = new ServerInstallFinder(); + private ExecutorService service = Executors.newSingleThreadExecutor(); *************** *** 53,71 **** return root; } /** * Adds a listener for the TreeModelEvent posted after the tree changes. */ public void addTreeModelListener(TreeModelListener l) { ! treeModelListeners.addElement(l); } /** ! * Removes a listener previously added with addTreeModelListener(). ! */ public void removeTreeModelListener(TreeModelListener l) { ! treeModelListeners.removeElement(l); } public boolean isLeaf(Object node) { --- 59,83 ---- return root; } + /** * Adds a listener for the TreeModelEvent posted after the tree changes. */ public void addTreeModelListener(TreeModelListener l) { ! treeModelListeners.add(l); } /** ! * Removes a listener previously added with addTreeModelListener(). ! */ public void removeTreeModelListener(TreeModelListener l) { ! treeModelListeners.remove(l); } + public void fireTreeChange() { + for (TreeModelListener listener : treeModelListeners) { + listener.treeNodesChanged(new TreeModelEvent(this, new Object[] { root })); + } + } public boolean isLeaf(Object node) { *************** *** 79,84 **** public int getIndexOfChild(Object parent, Object child) { int j = getChildCount(parent); ! for (int i =0; i < j;i++) { ! if (child.equals(getChild(parent,i))) return i; } --- 91,96 ---- public int getIndexOfChild(Object parent, Object child) { int j = getChildCount(parent); ! for (int i = 0; i < j; i++) { ! if (child.equals(getChild(parent, i))) return i; } *************** *** 87,94 **** public ConnectionTypeDescriptor getServerInfo(File f) { return finder.getServerTypePath(f); } ! public ServerInstallVersion getFileInfo(File f) { ServerInstallVersion info = (ServerInstallVersion) checked.get(f); --- 99,107 ---- public ConnectionTypeDescriptor getServerInfo(File f) { + return finder.getServerTypePath(f); } ! public ServerInstallVersion getFileInfo(final File f) { ServerInstallVersion info = (ServerInstallVersion) checked.get(f); *************** *** 96,115 **** return info; ! ConnectionTypeDescriptor type = finder.getServerTypePath(f); ! if (type != null) { ! File recognitionFile = finder.getRecognitionFile(f); ! String version = type.getServerVersion(recognitionFile); ! if (version == null) { ! version = "unknown"; } ! info = new ServerInstallVersion(type.getConnectionType() /*getDisplayName()*/,version); ! } ! checked.put(f, info); return info; } - - public Object getChild(Object node, int index) { File parent = (File) node; --- 109,134 ---- return info; ! service.submit(new Callable<Object>() { ! public Object call() throws Exception { ! ServerInstallVersion info = null; ! ConnectionTypeDescriptor type = finder.getServerTypePath(f); ! if (type != null) { ! File recognitionFile = finder.getRecognitionFile(f); ! String version = type.getServerVersion(recognitionFile); ! if (version == null) { ! version = "unknown"; ! } ! info = new ServerInstallVersion(type.getConnectionType() /*getDisplayName()*/, version); ! } ! checked.put(f, info); ! fireTreeChange(); ! return null; } ! }); ! return info; } public Object getChild(Object node, int index) { File parent = (File) node; |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:31
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/components In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/src/org/mc4j/console/dashboard/components Modified Files: OperationResultTableComponent.java Log Message: Some images, dashboard component tweaks and dashboard updates Index: OperationResultTableComponent.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/components/OperationResultTableComponent.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** OperationResultTableComponent.java 12 Apr 2006 19:13:59 -0000 1.2 --- OperationResultTableComponent.java 17 Apr 2006 12:01:27 -0000 1.3 *************** *** 96,101 **** public void refresh() { ! if (this.tableModel instanceof AttributeTableModel) ! ((AttributeTableModel) this.tableModel).resetChangeList(); Collection keysCollection = null; --- 96,101 ---- public void refresh() { ! // if (this.tableModel instanceof AttributeTableModel) ! // ((AttributeTableModel) this.tableModel).resetChangeList(); Collection keysCollection = null; |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:31
|
Update of /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/startup In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/application/branding/bundle/org/netbeans/core/startup Modified Files: Bundle_mc4j.properties splash_mc4j.gif Log Message: Some images, dashboard component tweaks and dashboard updates Index: Bundle_mc4j.properties =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/startup/Bundle_mc4j.properties,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Bundle_mc4j.properties 12 Apr 2006 19:14:01 -0000 1.2 --- Bundle_mc4j.properties 17 Apr 2006 12:01:27 -0000 1.3 *************** *** 7,10 **** SplashRunningTextBounds=42,269,371,19 # 225,252,172,10 ! SplashRunningTextColor=0xB0B0B0 SplashRunningTextFontSize=12 --- 7,10 ---- SplashRunningTextBounds=42,269,371,19 # 225,252,172,10 ! SplashRunningTextColor=0x333333 SplashRunningTextFontSize=12 Index: splash_mc4j.gif =================================================================== RCS file: /cvsroot/mc4j/mc4j/application/branding/bundle/org/netbeans/core/startup/splash_mc4j.gif,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 Binary files /tmp/cvsbESLk1 and /tmp/cvs1peaLp differ |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:30
|
Update of /cvsroot/mc4j/mc4j/application/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/application/images Added Files: Splash3.png Log Message: Some images, dashboard component tweaks and dashboard updates --- NEW FILE: Splash3.png --- (This appears to be a binary file; contents omitted.) |
From: Greg H. <gh...@us...> - 2006-04-17 12:01:30
|
Update of /cvsroot/mc4j/mc4j/src/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8927/src/images Added Files: AnimatedLogoMC4J2_64_2.gif AnimatedLogoMC4J2_bluebackground_64.gif AnimatedLogo_noanimate_MC4J2_64.png Log Message: Some images, dashboard component tweaks and dashboard updates --- NEW FILE: AnimatedLogoMC4J2_bluebackground_64.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: AnimatedLogoMC4J2_64_2.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: AnimatedLogo_noanimate_MC4J2_64.png --- (This appears to be a binary file; contents omitted.) |
From: Greg H. <gh...@us...> - 2006-04-17 03:07:41
|
Update of /cvsroot/mc4j/mc4j/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/bean In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6745/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/bean Modified Files: DMBean.java Log Message: Dashboard and component tweaks Index: DMBean.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/modules/ems/src/ems-impl/org/mc4j/ems/impl/jmx/connection/bean/DMBean.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** DMBean.java 12 Apr 2006 22:24:48 -0000 1.3 --- DMBean.java 17 Apr 2006 03:07:25 -0000 1.4 *************** *** 272,276 **** // } ! throw new RuntimeException("Unable to load attributes", e); } // } else { --- 272,276 ---- // } ! throw new RuntimeException("Unable to load attributes on bean [" + getBeanName().toString() + "] " + e.getMessage(), e); } // } else { |
From: Greg H. <gh...@us...> - 2006-04-17 03:07:41
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/match In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6745/src/org/mc4j/console/dashboard/match Modified Files: MatchExecutor.java Log Message: Dashboard and component tweaks Index: MatchExecutor.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/match/MatchExecutor.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MatchExecutor.java 12 Apr 2006 19:14:01 -0000 1.4 --- MatchExecutor.java 17 Apr 2006 03:07:25 -0000 1.5 *************** *** 98,102 **** DashboardMatch dashboardMatch = dashboard.getDashboardMatch(); - List mbeanNodes = connectionNode.getMBeanList(); SortedSet<EmsBean> beans = connectionNode.getEmsConnection().getBeans(); --- 98,101 ---- |
From: Greg H. <gh...@us...> - 2006-04-17 03:07:41
|
Update of /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/global In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6745/src/org/mc4j/console/dashboard/global Modified Files: GlobalDashboardChildren.java Log Message: Dashboard and component tweaks Index: GlobalDashboardChildren.java =================================================================== RCS file: /cvsroot/mc4j/mc4j/src/org/mc4j/console/dashboard/global/GlobalDashboardChildren.java,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** GlobalDashboardChildren.java 5 Oct 2004 05:16:00 -0000 1.8 --- GlobalDashboardChildren.java 17 Apr 2006 03:07:25 -0000 1.9 *************** *** 113,117 **** for (int i = 0; i < matches.size(); i++) { Dashboard matchedDashboard = (Dashboard) matches.get(i); ! globalDashboardNode = new GlobalDashboardNode(matchedDashboard, connectionNode); --- 113,117 ---- for (int i = 0; i < matches.size(); i++) { Dashboard matchedDashboard = (Dashboard) matches.get(i); ! matchedDashboard.setConnectionNode(connectionNode); globalDashboardNode = new GlobalDashboardNode(matchedDashboard, connectionNode); |