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

Comparing projects/cms/source/server/uk/org/iscream/cms/server/client/monitors/Queue__Monitor.java (file contents):
Revision 1.2 by ajm, Thu Mar 22 01:55:18 2001 UTC vs.
Revision 1.4 by ajm, Thu Mar 22 17:57:06 2001 UTC

# Line 37 | Line 37 | public class Queue__Monitor extends MonitorSkeleton {
37   //---PUBLIC METHODS---
38  
39      public void analysePacket(XMLPacket packet) {
40 <        if (packet.getParam("packet.attributes.type").equals("data")) {
41 <            String source = packet.getParam("packet.attributes.machine_name");
40 >        if (packet.getParam("packet.attributes.type").equals("queueStat")) {
41 >            String source = packet.getParam("packet.attributes.hashCode");
42              if (!_hosts.containsKey(source)) {
43                  _hosts.put(source, new HashMap());
44              }
# Line 108 | Line 108 | public class Queue__Monitor extends MonitorSkeleton {
108                          type = "%";
109                      }
110                      
111                    
112                    
111                      int newThreshold = checkAttributeThreshold(checkValue, reg);
112          
113                      // format the checkValue to a String
# Line 165 | Line 163 | public class Queue__Monitor extends MonitorSkeleton {
163      }
164  
165   //---ACCESSOR/MUTATOR METHODS---
166 +
167 +    protected Queue getQueue() {
168 +        return MonitorManager.getInstance().getOtherQueue();
169 +    }
170 +
171  
172   //---ATTRIBUTES---
173  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines