Package org.rhq.metrics.simulator.plan

Examples of org.rhq.metrics.simulator.plan.SimulationPlan


            throw new RuntimeException("[" + file + "] is a directory. The --simulation argument must refer to a  " +
                "file.");
        }

        SimulationPlanner planner = new SimulationPlanner();
        SimulationPlan plan = null;
        try {
            plan = planner.create(planFile);
        } catch (Exception e) {
            throw new RuntimeException("Failed to create simulation: " + e.getMessage(), e);
        }
View Full Code Here


    @Test
    public void runSimulator() throws Throwable {
        File jsonFile = new File(getClass().getResource("test-simulator.json").toURI());
        SimulationPlanner planner = new SimulationPlanner();
        SimulationPlan plan = planner.create(jsonFile);
        Simulator simulator = new Simulator();
        simulator.run(plan);
    }
View Full Code Here

TOP

Related Classes of org.rhq.metrics.simulator.plan.SimulationPlan

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.