--- projects/cms/source/server/uk/org/iscream/cms/server/client/MonitorManager.java 2002/05/21 16:47:16 1.16 +++ projects/cms/source/server/uk/org/iscream/cms/server/client/MonitorManager.java 2002/10/12 22:12:36 1.17 @@ -42,7 +42,7 @@ import java.util.*; * and process the data accordingly. * * @author $Author: tdb $ - * @version $Id: MonitorManager.java,v 1.16 2002/05/21 16:47:16 tdb Exp $ + * @version $Id: MonitorManager.java,v 1.17 2002/10/12 22:12:36 tdb Exp $ */ public class MonitorManager extends Thread { @@ -51,7 +51,7 @@ public class MonitorManager extends Thread { /** * The current CVS revision of this class */ - public static final String REVISION = "$Revision: 1.16 $"; + public static final String REVISION = "$Revision: 1.17 $"; //---STATIC METHODS--- @@ -182,9 +182,6 @@ public class MonitorManager extends Thread { * threads. */ public void run() { - // construct now, and use multiple times - XMLPacketMaker xmlPacketMaker = new XMLPacketMaker(); - boolean run=true; // keep these out here, saves recreating the object @@ -201,7 +198,7 @@ public class MonitorManager extends Thread { XMLPacket packet = null; try { - packet = xmlPacketMaker.createXMLPacket(xml); + packet = _xmlCache.getXMLPacket(xml); } catch(InvalidXMLException e) { _logger.write(toString(), Logger.ERROR, "Invalid XML: "+e); // skip the rest of this loop iteration @@ -339,6 +336,11 @@ public class MonitorManager extends Thread { * Outgoing ALL Queue */ private Queue _allQueue; + + /** + * A reference to the XMLCache in use + */ + private XMLCache _xmlCache = XMLCache.getInstance(); //---STATIC ATTRIBUTES---