ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/conient/uk/org/iscream/cms/conient/QueueFrame.java
(Generate patch)

Comparing projects/cms/source/conient/uk/org/iscream/cms/conient/QueueFrame.java (file contents):
Revision 1.13 by ajm, Mon Mar 19 03:31:42 2001 UTC vs.
Revision 1.17 by tdb, Sat May 18 18:15:56 2002 UTC

# Line 1 | Line 1
1 + /*
2 + * i-scream central monitoring system
3 + * Copyright (C) 2000-2002 i-scream
4 + *
5 + * This program is free software; you can redistribute it and/or
6 + * modify it under the terms of the GNU General Public License
7 + * as published by the Free Software Foundation; either version 2
8 + * of the License, or (at your option) any later version.
9 + *
10 + * This program is distributed in the hope that it will be useful,
11 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 + * GNU General Public License for more details.
14 + *
15 + * You should have received a copy of the GNU General Public License
16 + * along with this program; if not, write to the Free Software
17 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
18 + */
19 +
20   //---PACKAGE DECLARATION---
21 < package uk.org.iscream.conient;
21 > package uk.org.iscream.cms.conient;
22  
23   //---IMPORTS---
24 < import uk.org.iscream.util.*;
25 < import uk.org.iscream.conient.datacomponents.*;
24 > import uk.org.iscream.cms.server.util.*;
25 > import uk.org.iscream.cms.conient.datacomponents.*;
26   import javax.swing.*;
27   import javax.swing.border.*;
28   import java.util.*;
# Line 39 | Line 58 | public class QueueFrame extends JFrame {
58       */
59      public QueueFrame() {
60          super("Server Queue Status");
42        //addVisibleDataComponent(_conent, new StringDataComponent("Host Name", "packet.attributes.machine_name"));
61          JScrollPane scrollPane = new JScrollPane(_content,JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED , JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
62          getContentPane().add(scrollPane, "Center");
63          JButton close = new JButton("Close Window");
# Line 100 | Line 118 | public class QueueFrame extends JFrame {
118          String queueHashCode = packet.getParam("packet.attributes.hashCode");
119          VisibleDataComponent date = new DateDataComponent("Last timestamp", "packet.attributes.date");
120          VisibleDataComponent total = new StringDataComponent("Total queued to date", "packet.queue.attributes.total");
121 +        VisibleDataComponent max = new StringDataComponent("Maximum queue size", "packet.queue.attributes.maxSize");
122          newQueue.put("packet.attributes.name", new StringDataComponent("Name", "packet.attributes.name"));
123          newQueue.put("packet.queue.attributes.total", total);
124 +        newQueue.put("packet.queue.attributes.maxSize", max);
125          newQueue.put("packet.attributes.date", date);
126 +        
127          JPanel newQueueDisplay = new JPanel();
128          newQueueDisplay.setLayout(new BoxLayout(newQueueDisplay, BoxLayout.Y_AXIS));
129          newQueueDisplay.setBorder(new TitledBorder(new LineBorder(new Color(0, 0, 102)), queueName));
130          newQueueDisplay.add(date);
131          newQueueDisplay.add(total);
132 +        newQueueDisplay.add(max);
133          _queuesDisplays.put(queueHashCode, newQueueDisplay);
134          try {
135              SwingSafeAdd task = new SwingSafeAdd(_content, newQueueDisplay);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines