| # | Line 69 | 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 | /** | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |