Package org.serviceconnector.util

Examples of org.serviceconnector.util.XMLDumpWriter


      if (dumpDir.exists() == true || dumpDir.mkdirs()) {
        String dumpCacheFile = dumpDir + fs + dumpFileName;
        // create file
        FileOutputStream fos = new FileOutputStream(dumpDir + fs + dumpFileName);
        // create xml writer and start dump
        XMLDumpWriter writer = new XMLDumpWriter(fos);
        writer.startDocument();
        writer.writeStartElement("sc-dump");
        writer.writeComment(" *************** APPCONTEXT INFOS ************ ");
        AppContext.dumpAppContextInfos(writer);
        writer.writeComment(" *************** CONFIGURATION *************** ");
        AppContext.getBasicConfiguration().dump(writer);
        writer.writeComment(" *************** RESPONDERS ****************** ");
        AppContext.getResponderRegistry().dump(writer);
        writer.writeComment(" *************** SERVICES ******************** ");
        AppContext.getServiceRegistry().dump(writer);
        writer.writeComment(" *************** SESSIONS ******************** ");
        AppContext.getSessionRegistry().dump(writer);
        writer.writeComment(" *************** SUBSCRIPTIONS *************** ");
        AppContext.getSubscriptionRegistry().dump(writer);
        writer.writeComment(" *************** CACHE MANAGER *************** ");
        AppContext.getCacheManager().dump(writer);
        writer.writeComment(" *************** CACHES ********************** ");
        AppContext.getCacheRegistry().dump(writer);
        // end dump
        writer.writeEndElement(); // end of sc-dump
        writer.endDocument();
        fos.close();
        LOGGER.info("SC dump created into file=" + dumpCacheFile);
        return dumpFileName;
      } else {
        LOGGER.error("Creating SC dump file =" + dumpPath + " failed, can not create directory");
View Full Code Here


      if (dumpDir.exists() == true || dumpDir.mkdirs()) {
        String dumpCacheFile = dumpDir + fs + dumpFileName;
        // create file
        FileOutputStream fos = new FileOutputStream(dumpDir + fs + dumpFileName);
        // create xml writer and start dump
        XMLDumpWriter writer = new XMLDumpWriter(fos);
        writer.startDocument();
        writer.writeStartElement("sc-dump");
        writer.writeComment(" *************** APPCONTEXT INFOS ************ ");
        AppContext.dumpAppContextInfos(writer);
        writer.writeComment(" *************** CONFIGURATION *************** ");
        AppContext.getBasicConfiguration().dump(writer);
        writer.writeComment(" *************** RESPONDERS ****************** ");
        AppContext.getResponderRegistry().dump(writer);
        writer.writeComment(" *************** SERVICES ******************** ");
        AppContext.getServiceRegistry().dump(writer);
        writer.writeComment(" *************** SESSIONS ******************** ");
        AppContext.getSessionRegistry().dump(writer);
        writer.writeComment(" *************** SUBSCRIPTIONS *************** ");
        AppContext.getSubscriptionRegistry().dump(writer);
        writer.writeComment(" *************** SC CACHE ******************** ");
        AppContext.getSCCache().dump(writer);
        writer.writeComment(" *************** CACHE MODULES *************** ");
        AppContext.getCacheModuleRegistry().dump(writer);
        // end dump
        writer.writeEndElement(); // end of sc-dump
        writer.endDocument();
        fos.close();
        LOGGER.info("SC dump created into file=" + dumpCacheFile);
        return dumpFileName;
      } else {
        LOGGER.error("Creating SC dump file =" + dumpPath + " failed, can not create directory");
View Full Code Here

TOP

Related Classes of org.serviceconnector.util.XMLDumpWriter

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.