Package org.apache.stratos.usage.agent.util

Examples of org.apache.stratos.usage.agent.util.MonitoredWriter


            //Still not dumped
            Registry registry = requestContext.getRegistry();
            String path = requestContext.getResourcePath().getPath();
            Writer writer = requestContext.getDumpingWriter();
            // we wrap the writer with the monitored writer
            MonitoredWriter monitoredWriter = new MonitoredWriter(writer);
            registry.dump(path, monitoredWriter);
            size = monitoredWriter.getTotalWritten();
            requestContext.setProcessingComplete(true);
        }

        // persisting bandwidth
        //RegistryUsagePersister.storeOutgoingBandwidth(tenantId, size);
View Full Code Here


            //Still not dumped
            Registry registry = requestContext.getRegistry();
            String path = requestContext.getResourcePath().getPath();
            Writer writer = requestContext.getDumpingWriter();
            // we wrap the writer with the monitored writer
            MonitoredWriter monitoredWriter = new MonitoredWriter(writer);
            registry.dump(path, monitoredWriter);
            size = monitoredWriter.getTotalWritten();
            requestContext.setProcessingComplete(true);
        }

        // persisting bandwidth
        BandwidthPersistor.storeOutgoingBandwidth(tenantId, size);
View Full Code Here

TOP

Related Classes of org.apache.stratos.usage.agent.util.MonitoredWriter

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.