| 22 |
|
package uk.org.iscream.cms.server.clientinterface; |
| 23 |
|
|
| 24 |
|
//---IMPORTS--- |
| 25 |
< |
import uk.org.iscream.cms.server.util.*; |
| 25 |
> |
import uk.org.iscream.cms.util.*; |
| 26 |
|
import uk.org.iscream.cms.server.componentmanager.*; |
| 27 |
|
import uk.org.iscream.cms.server.core.*; |
| 28 |
|
import java.util.*; |
| 110 |
|
* loop forever processing and sending data. |
| 111 |
|
*/ |
| 112 |
|
public void run() { |
| 113 |
– |
XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(); |
| 113 |
|
int qID = _queue.getQueue(); |
| 114 |
|
while(true) { |
| 115 |
|
// attempt to get some data from the Queue |
| 124 |
|
XMLPacket packet = null; |
| 125 |
|
|
| 126 |
|
try { |
| 127 |
< |
packet = xmlPacketMaker.createXMLPacket(xml); |
| 127 |
> |
packet = _xmlCache.getXMLPacket(xml); |
| 128 |
|
} catch(InvalidXMLException e) { |
| 129 |
|
_logger.write(toString(), Logger.ERROR, "Invalid XML: "+e); |
| 130 |
|
// skip the rest of this loop iteration |
| 267 |
|
* Overrides the {@link java.lang.Object#toString() Object.toString()} |
| 268 |
|
* method to provide clean logging (every class should have this). |
| 269 |
|
* |
| 270 |
< |
* This uses the uk.org.iscream.cms.server.util.NameFormat class |
| 270 |
> |
* This uses the uk.org.iscream.cms.util.NameFormat class |
| 271 |
|
* to format the toString() |
| 272 |
|
* |
| 273 |
|
* @return the name of this class and its CVS revision |
| 334 |
|
* A list of all hosts. |
| 335 |
|
*/ |
| 336 |
|
private LinkedList _allHostsList; |
| 337 |
+ |
|
| 338 |
+ |
/** |
| 339 |
+ |
* A reference to the XMLCache in use |
| 340 |
+ |
*/ |
| 341 |
+ |
private XMLCache _xmlCache = XMLCache.getInstance(); |
| 342 |
|
|
| 343 |
|
//---STATIC ATTRIBUTES--- |
| 344 |
|
|