11 |
|
import java.awt.event.*; |
12 |
|
|
13 |
|
/** |
14 |
+ |
* This class allows a window to be shown which displays |
15 |
+ |
* internel server queue information as sent by the i-scream |
16 |
+ |
* server. |
17 |
|
* |
18 |
+ |
* This allows a check to be made on the current performance of |
19 |
+ |
* the internal queues. |
20 |
+ |
* |
21 |
|
* @author $Author$ |
22 |
|
* @version $Id$ |
23 |
|
*/ |
35 |
|
//---CONSTRUCTORS--- |
36 |
|
|
37 |
|
/** |
38 |
< |
* |
38 |
> |
* Constructs a new frame |
39 |
|
*/ |
40 |
|
public QueueFrame() { |
41 |
|
super("Server Queue Status"); |
87 |
|
|
88 |
|
//---PRIVATE METHODS--- |
89 |
|
|
90 |
+ |
/** |
91 |
+ |
* Constructs and adds a new Queue panel to the |
92 |
+ |
* current window. This happens when a new queue packet |
93 |
+ |
* is detected |
94 |
+ |
* |
95 |
+ |
* @param packet the packet to obtain the queue data from |
96 |
+ |
*/ |
97 |
|
private void addQueue(XMLPacket packet) { |
98 |
|
HashMap newQueue = new HashMap(); |
99 |
|
String queueName = packet.getParam("packet.attributes.name"); |
118 |
|
pack(); |
119 |
|
_queues.put(queueHashCode, newQueue); |
120 |
|
} |
121 |
< |
|
121 |
> |
|
122 |
> |
/** |
123 |
> |
* Updates a queue panel with new data |
124 |
> |
* |
125 |
> |
* @param packet the packet to obtain the new data from |
126 |
> |
* @throws DataFormatException if the packet contains invalid data |
127 |
> |
*/ |
128 |
|
private void updateQueueInformation(XMLPacket packet) throws DataFormatException { |
129 |
|
String queueHashCode = packet.getParam("packet.attributes.hashCode"); |
130 |
|
|
179 |
|
* are stored here. |
180 |
|
*/ |
181 |
|
private HashMap _queues = new HashMap(); |
182 |
+ |
|
183 |
+ |
/** |
184 |
+ |
* The Panels on the display hooked to the queue hashid |
185 |
+ |
*/ |
186 |
|
private HashMap _queuesDisplays = new HashMap(); |
187 |
|
|
188 |
+ |
/** |
189 |
+ |
* The box to lay queue panels into. |
190 |
+ |
*/ |
191 |
|
private Box _content = Box.createVerticalBox(); |
192 |
|
|
193 |
|
//---STATIC ATTRIBUTES--- |