Package net.sf.katta.tool.loadtest

Examples of net.sf.katta.tool.loadtest.LoadTestMasterOperation


    int endRate = 50;
    int step = 10;
    int runTime = 2000;
    LuceneSearchExecutor queryExecutor = new LuceneSearchExecutor(new String[] { "*" }, new String[] { "foo:bar",
            "notExists" }, _luceneCluster.getZkConfiguration(), 200);
    LoadTestMasterOperation loadTestOperation = new LoadTestMasterOperation(NODE_COUNT_LOADTEST, startRate, endRate,
            step, runTime, queryExecutor, resultDir);
    loadTestOperation.registerCompletion(_loadtestCluster.getProtocol());
    _loadtestCluster.getProtocol().addMasterOperation(loadTestOperation);
    loadTestOperation.joinCompletion(_loadtestCluster.getProtocol());

    assertEquals(2, resultDir.list().length);
    File[] listFiles = resultDir.listFiles();
    File logFile;
    File resultFile;
View Full Code Here

TOP

Related Classes of net.sf.katta.tool.loadtest.LoadTestMasterOperation

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.