Package com.jitlogic.zorka.common.zico

Examples of com.jitlogic.zorka.common.zico.ZicoDataLoader


    private void load(File dir, String file, String hostname) {
        System.out.println("Starting: " + new File(dir, file));
        long t1 = System.nanoTime();
        try {
            ZicoDataLoader loader = new ZicoDataLoader("127.0.0.1", 8640, hostname, "");
            loader.load(new File(dir, file).getPath());

            records.addAndGet(loader.getRecords());
            bytes.addAndGet(loader.getBytes());

            long t = (System.nanoTime()-t1)/1000000;
            long recsps = 1000L * loader.getRecords() / t;
            long bytesps = 1000L * loader.getBytes() / t;

            System.out.println("File " + dir + "/" + file + " finished: t=" + t
                    + " records=" + loader.getRecords() + " (" + recsps + " recs/s)"
                    + " bytes=" + loader.getBytes() + "(" + bytesps + " bytes/s).");

        } catch (Exception e) {
            errors.incrementAndGet();
        }
        passes.incrementAndGet();
View Full Code Here


        passes.incrementAndGet();
    }

    //@Test
    public void testLoadDataFile() throws Exception {
        ZicoDataLoader loader = new ZicoDataLoader("127.0.0.1", 8640, System.getProperty("load.host", "test"), "");
        loader.load(System.getProperty("load.file", "/tmp/trace.ztr"));
    }
View Full Code Here

TOP

Related Classes of com.jitlogic.zorka.common.zico.ZicoDataLoader

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.