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, |
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 |
|
/** |