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.4 by tdb, Wed Feb 28 19:02:22 2001 UTC vs.
Revision 1.5 by tdb, Thu Mar 1 15:46:23 2001 UTC

# Line 71 | Line 71 | class QueueMonitor extends Thread {
71      public void shutdown() {
72          // this will stop the main loop
73          _run = false;
74 +        // get a hash of our Queue (for identification)
75 +        String hashCode = String.valueOf(_sourceQueue.hashCode());
76          // create some XML
77          String date = new Long(System.currentTimeMillis()/((long) 1000)).toString();
78 <        String xml = "<packet type=\"queueStat\" date=\""+date+"\" name=\""+_srcName+"\" shutdown=\"true\"></packet>";
78 >        String xml = "<packet type=\"queueStat\" date=\""+date+"\" name=\""+_srcName+"\" hashCode=\""+hashCode+"\" shutdown=\"true\"></packet>";
79          // write XML to destination Queue
80          _destQueue.add(xml);
81      }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines