24 |
|
//---STATIC METHODS--- |
25 |
|
|
26 |
|
//---CONSTRUCTORS--- |
27 |
+ |
|
28 |
+ |
/** |
29 |
+ |
* Construct a new ClientServant, with a given Queue. |
30 |
+ |
* |
31 |
+ |
* @param queue The Queue that will link this class to the MonitorManager |
32 |
+ |
*/ |
33 |
+ |
public ClientServant(Queue queue) { |
34 |
+ |
_queue = queue; |
35 |
+ |
} |
36 |
|
|
37 |
|
//---PUBLIC METHODS--- |
38 |
|
|
42 |
|
* @param xml The String of XML data |
43 |
|
*/ |
44 |
|
public void receiveXML(String xml) { |
45 |
< |
// queue the xml? |
37 |
< |
//XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(xml); |
38 |
< |
//XMLPacket packet = xmlPacketMaker.createXMLPacket(); |
39 |
< |
// deal with the packet here, somehow, maybe... |
45 |
> |
_queue.add(xml); |
46 |
|
} |
47 |
|
|
48 |
|
/** |
83 |
|
* system logger that is being used. |
84 |
|
*/ |
85 |
|
private Logger _logger = ReferenceManager.getInstance().getLogger(); |
86 |
+ |
|
87 |
+ |
/** |
88 |
+ |
* A reference to our QUeue |
89 |
+ |
*/ |
90 |
+ |
private Queue _queue; |
91 |
|
|
92 |
|
//---STATIC ATTRIBUTES--- |
93 |
|
|