--- experimental/server/Queue/QueueMonitor.java 2001/02/26 01:05:16 1.2 +++ experimental/server/Queue/QueueMonitor.java 2001/03/01 03:04:28 1.3 @@ -10,7 +10,7 @@ * same Queue being monitored. * * @author $Author: tdb $ - * @version $Id: QueueMonitor.java,v 1.2 2001/02/26 01:05:16 tdb Exp $ + * @version $Id: QueueMonitor.java,v 1.3 2001/03/01 03:04:28 tdb Exp $ */ class QueueMonitor extends Thread { @@ -19,7 +19,7 @@ class QueueMonitor extends Thread { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.2 $"; + public static final String REVISION = "$Revision: 1.3 $"; //---STATIC METHODS--- @@ -55,9 +55,11 @@ class QueueMonitor extends Thread { try { Thread.sleep(_interval); } catch(Exception e) {} // check the Queue String status = _sourceQueue.xmlStatus(); + // get a hash of our Queue (for identification) + String hashCode = String.valueOf(_sourceQueue.hashCode()); // create some XML String date = new Long(System.currentTimeMillis()/((long) 1000)).toString(); - String xml = "" + status + ""; + String xml = "" + status + ""; // write XML to destination Queue _destQueue.add(xml); }