Examples of run()


Examples of org.apache.openjpa.jdbc.schema.SchemaTool.run()

                            tool.setWriter(flags.sqlWriter);
                            tool.setOpenJPATables(flags.openjpaTables);
                        }

                        tool.setSchemaGroup(getSchemaGroup());
                        tool.run();
                        tool.record();
                    }
                }

                // xml output of schema?
View Full Code Here

Examples of org.apache.pig.scripting.ScriptEngine.run()

private static int runEmbeddedScript(PigContext pigContext, String file, String engine)
        throws IOException {
    log.info("Run embedded script: " + engine);
    pigContext.connect();
    ScriptEngine scriptEngine = ScriptEngine.getInstance(engine);
    Map<String, List<PigStats>> statsMap = scriptEngine.run(pigContext, file);
    PigStatsUtil.setStatsMap(statsMap);
   
    int failCount = 0;
    int totalCount = 0;
    for (List<PigStats> lst : statsMap.values()) {
View Full Code Here

Examples of org.apache.pig.tools.grunt.Grunt.run()

            reader.setHistory(new History(new File(historyFile)));
            ConsoleReaderInputStream inputStream = new ConsoleReaderInputStream(reader);
            grunt = new Grunt(new BufferedReader(new InputStreamReader(inputStream)), pigContext);
            grunt.setConsoleReader(reader);
            gruntCalled = true;
            grunt.run();
            rc = 0;
            return;
        } else {
            // They have a pig script they want us to run.
            if (remainders.length > 1) {
View Full Code Here

Examples of org.apache.pig.tools.grunt.LipstickGrunt.run()

            reader.setHistory(new History(new File(historyFile)));
            ConsoleReaderInputStream inputStream = new ConsoleReaderInputStream(reader);
            grunt = new LipstickGrunt(new BufferedReader(new InputStreamReader(inputStream)), pigContext);
            grunt.setConsoleReader(reader);
            gruntCalled = true;
            grunt.run();
            return ReturnCode.SUCCESS;
        } else {
            pigContext.getProperties().setProperty(PigContext.PIG_CMD_ARGS_REMAINDERS, ObjectSerializer.serialize(remainders));

            // They have a pig script they want us to run.
View Full Code Here

Examples of org.apache.qpid.info.util.HttpPoster.run()

    public void testHttpPoster() throws Exception
    {
        // Test HttpPoster posts correctly to the servlet
        HttpPoster hp = getHttpPoster(baseURL + contextPath);
        assertNotNull(hp);
        hp.run();
        List<String> response = hp.get_response();
        assertTrue(response.size() > 0);
        assertEquals("OK <br>", response.get(0).toString());

        // Failure Test
View Full Code Here

Examples of org.apache.qpid.junit.concurrency.ThreadTestCoordinator.run()

        ThreadTestCoordinator tt = new ThreadTestCoordinator(2);

        tt.addTestThread(testThread1, 0);
        tt.addTestThread(testThread2, 1);
        tt.setDeadlockTimeout(500);
        tt.run();

        String errorMessage = tt.joinAndRetrieveMessages();

        // Print any error messages or exceptions.
        log.debug(errorMessage);
View Full Code Here

Examples of org.apache.qpid.server.util.AveragedRun.run()

        ApplicationRegistry.initialise(new TestApplicationRegistry());
        int clients = Integer.parseInt(argv[0]);
        int messages = Integer.parseInt(argv[1]);
        int iterations = Integer.parseInt(argv[2]);
        AveragedRun test = new AveragedRun(new SendPerfTest(clients, messages), iterations);
        test.run();
    }

    /**
     * Delivers messages to a number of queues.
     * @param count the number of messages to deliver
View Full Code Here

Examples of org.apache.qpid.test.framework.FrameworkBaseCase.run()

                FrameworkBaseCase failTest = new OptOutTestCase("testOptOut");
                circuitFactory.setSender(failPair.get(0));
                circuitFactory.setReceiver(failPair.get(1));
                failTest.setCircuitFactory(circuitFactory);

                failTest.run(testResult);
            }

            // Loop over all combinations of clients, willing to run the test.
            Set<List<TestClientDetails>> enlistedPairs = allPairs(enlists, enlists);
View Full Code Here

Examples of org.apache.roller.planet.tasks.PlanetTask.run()

        // Go!
        Class taskClass = cl.loadClass(taskClassName);
        PlanetTask task = (PlanetTask) taskClass.newInstance();
        task.initialize();
        task.run();
    }
}


/* for example:
View Full Code Here

Examples of org.apache.roller.planet.tasks.RefreshEntriesTask.run()

            syncTask.init();
            syncTask.run();          
           
            RefreshEntriesTask refreshTask = new RefreshEntriesTask();
            refreshTask.init();
            refreshTask.run();
           
            List agg = planet.getAggregation(null, null, 0, -1);
            assertEquals(3, agg.size());
        }
        catch (Exception e) {
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.