Package org.xmlBlaster.engine.msgstore.cache

Examples of org.xmlBlaster.engine.msgstore.cache.PersistenceCachePlugin


            //log.info("topicHandler " + i + ": " + topicHandler.getUniqueKey());
            try {
               out.write(("\n <TopicHandler id='"+topicHandler.getUniqueKey()+"'><topic>").getBytes("UTF-8"));
               I_Map m = topicHandler.getMsgUnitCache();
               if (m != null) {
                 PersistenceCachePlugin c = null;
                 if (m instanceof PersistenceCachePlugin) c = (PersistenceCachePlugin)m;
                 MsgUnitStoreProperty p = (MsgUnitStoreProperty)m.getProperties();
                 long bc = (c != null) ? c.getNumOfCachedBytes() : 0;
                 long ec = (c != null) ? c.getNumOfCachedEntries() : 0;
                 out.write(("\n   <persistence relating='msgUnitStore' entries='"+m.getNumOfEntries()
                       +"' entriesCache='"+ec+"' bytes='"+m.getNumOfBytes()+"' bytesCache='"+bc+"'/>").getBytes("UTF-8"));
                 out.write(p.toXml("  ").getBytes("UTF-8"));
                 out.write(("\n </topic></TopicHandler>").getBytes("UTF-8"));
                 currentBytes += m.getNumOfBytes();
View Full Code Here

TOP

Related Classes of org.xmlBlaster.engine.msgstore.cache.PersistenceCachePlugin

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.