Package org.voltdb.client

Examples of org.voltdb.client.ClientAffinityStats


     * Prints a one line update on performance that can be printed
     * periodically during a benchmark.
     */
    public synchronized void printStatistics() {
        ClientStatsContext statscontext = periodicStatsContext.fetchAndResetBaseline();
        ClientAffinityStats affinityStats = statscontext.getAggregateAffinityStats();
        ClientStats stats = statscontext.getStats();
        long time = Math.round((stats.getEndTimestamp() - benchmarkStartTS) / 1000.0);

        System.out.printf("%02d:%02d:%02d ", time / 3600, (time / 60) % 60, time % 60);
        System.out.printf("Throughput %d/s, ", stats.getTxnThroughput());
        System.out.printf("Aborts/Failures %d/%d, ",
                stats.getInvocationAborts(), stats.getInvocationErrors());
        System.out.printf("Avg/95%% Latency %.2f/%.2fms, ", stats.getAverageLatency(),
                stats.kPercentileLatencyAsDouble(0.95));
        System.out.printf("%d AW, %d AR, %d RRW, %d RRR\n",
                affinityStats.getAffinityWrites(),
                affinityStats.getAffinityReads(),
                affinityStats.getRrWrites(),
                affinityStats.getRrReads());
    }
View Full Code Here

TOP

Related Classes of org.voltdb.client.ClientAffinityStats

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.