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.1 by tdb, Mon Feb 12 02:20:23 2001 UTC vs.
Revision 1.3 by tdb, Mon Feb 26 00:36:10 2001 UTC

# Line 3 | Line 3 | package uk.ac.ukc.iscream.util;
3  
4   //---IMPORTS---
5   import uk.ac.ukc.iscream.util.*;
6 import uk.ac.ukc.iscream.componentmanager.*;
6  
7   /**
8   * This class monitors a given Queue at regular intervals,
# Line 70 | Line 69 | class QueueMonitor extends Thread {
69      public void shutdown() {
70          // this will stop the main loop
71          _run = false;
72 +        // create some XML
73 +        String date = new Long(System.currentTimeMillis()/((long) 1000)).toString();
74 +        String xml = "<packet type=\"queueStat\" date=\""+date+"\" name=\""+_srcName+"\" shutdown=\"true\"></packet>";
75 +        // write XML to destination Queue
76 +        _destQueue.add(xml);
77      }
78      
79      /**

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines