Examples of countMsg()


Examples of org.zper.base.ZLog.countMsg()

        ZLog log = ZLogManager.instance().get(argv[2]);
        SegmentInfo[] segments = log.segments();
        long total = 0;

        for (SegmentInfo seg : segments) {
            int count = log.countMsg(seg.start(), seg.offset() - seg.start());
            System.out.println(String.format("%020d : %d", seg.start(), count));
            total += count;
        }
        System.out.println("Total : " + total);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.