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

Comparing projects/cms/source/util/uk/org/iscream/cms/util/QueueMonitor.java (file contents):
Revision 1.3 by tdb, Mon Feb 26 00:36:10 2001 UTC vs.
Revision 1.4 by tdb, Wed Feb 28 19:02:22 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