ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/experimental/server/Queue/QueueMonitor.java
(Generate patch)

Comparing experimental/server/Queue/QueueMonitor.java (file contents):
Revision 1.2 by tdb, Mon Feb 26 01:05:16 2001 UTC vs.
Revision 1.3 by tdb, Thu Mar 1 03:04:28 2001 UTC

# Line 55 | Line 55 | class QueueMonitor extends Thread {
55              try { Thread.sleep(_interval); } catch(Exception e) {}
56              // check the Queue
57              String status = _sourceQueue.xmlStatus();
58 +            // get a hash of our Queue (for identification)
59 +            String hashCode = String.valueOf(_sourceQueue.hashCode());
60              // create some XML
61              String date = new Long(System.currentTimeMillis()/((long) 1000)).toString();
62 <            String xml = "<packet type=\"queueStat\" date=\""+date+"\" name=\""+_srcName+"\">" + status + "</packet>";
62 >            String xml = "<packet type=\"queueStat\" date=\""+date+"\" name=\""+_srcName+"\" hashCode=\""+hashCode+"\">" + status + "</packet>";
63              // write XML to destination Queue
64              _destQueue.add(xml);
65          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines