Package org.voltdb.client.exampleutils

Examples of org.voltdb.client.exampleutils.AppHelper.validate()


            final String csv           = apph.stringValue("statsfile");

            TxnIdWriter writer = new TxnIdWriter("dude", "clientlog");

            // Validate parameters
            apph.validate("duration", (config.duration > 0))
                .validate("poolsize", (config.poolSize > 0))
                .validate("ratelimit", (config.rateLimit > 0))
                .validate("latencytarget", (config.latencyTarget > 0))
            ;
View Full Code Here


            final double latencyTarget = apph.doubleValue("latency-target");
            final String csv           = apph.stringValue("stats");
            final boolean runLoader    = apph.booleanValue("run-loader");

            // Validate parameters
            apph.validate("duration", (duration > 0))
                .validate("pool-size", (duration > 0))
                .validate("wait", (wait >= 0))
                .validate("ratelimit", (rateLimit > 0))
                .validate("latency-target", (latencyTarget > 0))
            ;
View Full Code Here

            final String procedure     = apph.stringValue("procedure");
            final long wait            = apph.intValue("wait");
            final String csv           = apph.stringValue("statsfile");

            // Validate parameters
            apph.validate("duration", (duration > 0))
                .validate("threads", (threadCount > 0))
                .validate("poolsize", (poolSize > 0))
                .validate("wait", (wait >= 0))
            ;
View Full Code Here

            final String procedure     = apph.stringValue("procedure");
            final long wait            = apph.intValue("wait");
            final String csv           = apph.stringValue("statsfile");

            // Validate parameters
            apph.validate("duration", (duration > 0))
                .validate("threads", (threadCount > 0))
                .validate("poolsize", (poolSize > 0))
                .validate("wait", (wait >= 0))
            ;
View Full Code Here

            long rateLimit       = apph.longValue("ratelimit");

            Random rand = new Random();

            // Validate parameters
            apph.validate("duration", (duration > 0))
                .validate("displayinterval", (displayInterval > 0))
                .validate("ratelimit", (rateLimit > 0))
            ;

            // Display actual parameters, for reference
View Full Code Here

            final double latencyTarget = apph.doubleValue("latencytarget");
            final String csv           = apph.stringValue("statsfile");


            // Validate parameters
            apph.validate("duration", (duration > 0))
                .validate("poolsize", (duration > 0))
                .validate("wait", (wait >= 0))
                .validate("ratelimit", (rateLimit > 0))
                .validate("latencytarget", (latencyTarget > 0))
            ;
View Full Code Here

        m_blockingSnapshots = apph.booleanValue("block-snapshots");
        m_smallStrings = apph.booleanValue("small-strings");
        long duration = apph.longValue("duration");
        String commaSeparatedServers = apph.stringValue("servers");

        apph.validate("average-batch-size", (m_averageBatchSize > 0));
        apph.validate("batches", (m_batchesToKeep >= 0));
        apph.validate("duration", (duration >= 0));
        apph.validate("cleanup-freq", (m_deceasedCleanupFreq > 0));

        apph.printActualUsage();
View Full Code Here

        m_smallStrings = apph.booleanValue("small-strings");
        long duration = apph.longValue("duration");
        String commaSeparatedServers = apph.stringValue("servers");

        apph.validate("average-batch-size", (m_averageBatchSize > 0));
        apph.validate("batches", (m_batchesToKeep >= 0));
        apph.validate("duration", (duration >= 0));
        apph.validate("cleanup-freq", (m_deceasedCleanupFreq > 0));

        apph.printActualUsage();
View Full Code Here

        long duration = apph.longValue("duration");
        String commaSeparatedServers = apph.stringValue("servers");

        apph.validate("average-batch-size", (m_averageBatchSize > 0));
        apph.validate("batches", (m_batchesToKeep >= 0));
        apph.validate("duration", (duration >= 0));
        apph.validate("cleanup-freq", (m_deceasedCleanupFreq > 0));

        apph.printActualUsage();

        System.out.println("Starting Deletes app with:");
View Full Code Here

        String commaSeparatedServers = apph.stringValue("servers");

        apph.validate("average-batch-size", (m_averageBatchSize > 0));
        apph.validate("batches", (m_batchesToKeep >= 0));
        apph.validate("duration", (duration >= 0));
        apph.validate("cleanup-freq", (m_deceasedCleanupFreq > 0));

        apph.printActualUsage();

        System.out.println("Starting Deletes app with:");
        System.out.printf("\tAverage batch size of %d\n", m_averageBatchSize);
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.