Examples of run()


Examples of org.activemq.util.ExceptionTemplate.run()

        ExceptionTemplate template = new ExceptionTemplate();

        if (containerManagers != null) {
            for (int i = 0; i < containerManagers.length; i++) {
                final MessageContainerManager containerManager = containerManagers[i];
                template.run(new Callback() {
                    public void execute() throws Throwable {
                        containerManager.stop();
                    }
                });
            }
View Full Code Here

Examples of org.activiti.engine.impl.jobexecutor.SimulationAcquireJobsRunnable.run()

  @Override
  public void handle(SimulationEvent event) {
        log.debug(" starting to acquire jobs [" + event + "]");
    SimulationAcquireJobsRunnable acquireJobs = (SimulationAcquireJobsRunnable) event.getProperty();
    acquireJobs.run();
  }

}
View Full Code Here

Examples of org.agilewiki.jactor2.core.impl.mtReactors.PoolThreadReactorMtImpl.run()

                                    && threadReference.compareAndSet(null,
                                            currentThread)) {
                                currentThread.setCurrentReactor(reactor);
                                while (true) {
                                    try {
                                        reactor.run();
                                    } catch (final MigrationException me) {
                                        final boolean hasWork = reactor
                                                .hasWork();
                                        threadReference.set(null);
                                        if (reactor.isIdler() || hasWork
View Full Code Here

Examples of org.agilewiki.jactor2.core.reactors.ThreadBoundReactor.run()

            try {
                //Wait for an interrupt.
                Thread.sleep(60000);
            } catch (InterruptedException e) {
                //Process messages when the main thread is interrupted.
                reactor.run();
            }
        }
    }
}
View Full Code Here

Examples of org.andromda.andromdapp.AndroMDApp.run()

    public static void main(String[] args)
    {
        try
        {
            AndroMDApp andromdapp = new AndroMDApp();
            andromdapp.run();
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.andromda.core.AndroMDA.run()

            }
            if (execute)
            {
                this.initializeClasspathFromClassPathElements(this.project.getRuntimeClasspathElements());
                final AndroMDA andromda = AndroMDA.newInstance();
                andromda.run(configuration);
                andromda.shutdown();
            }
            else
            {
                this.getLog().info("Files are up-to-date, skipping AndroMDA execution");
View Full Code Here

Examples of org.antlr.gunit.swingui.runner.gUnitAdapter.run()

        // run
        try {
            final gUnitAdapter adapter = new gUnitAdapter(currentTestSuite);
            if(currentTestSuite == null) return;
            adapter.run();
           
            runner.OnShowSuiteResult(currentTestSuite);
            view.tabEditors.addTab("Test Result", ImageFactory.getSingleton().FILE16, runner.getView());
            view.tabEditors.setSelectedComponent(runner.getView());
        } catch (Exception ex) {
View Full Code Here

Examples of org.apache.accumulo.core.util.LoggingRunnable.run()

      // Root tablet assignment must take place immediately
      if (extent.isRootTablet()) {
        new Daemon("Root Tablet Assignment") {
          @Override
          public void run() {
            ah.run();
            if (onlineTablets.containsKey(extent)) {
              log.info("Root tablet loaded: " + extent);
            } else {
              log.info("Root tablet failed to load");
            }
View Full Code Here

Examples of org.apache.accumulo.examples.simple.dirlist.FileCount.run()

    Scanner scanner = new MockInstance("counttest").getConnector("root", "".getBytes()).createScanner("dirlisttable", new Authorizations());
    scanner.fetchColumn(new Text("dir"), new Text("counts"));
    assertFalse(scanner.iterator().hasNext());
   
    FileCount fc = new FileCount("counttest", null, "root", "", "dirlisttable", "", "", true);
    fc.run();
   
    ArrayList<Pair<String,String>> expected = new ArrayList<Pair<String,String>>();
    expected.add(new Pair<String,String>(QueryUtil.getRow("").toString(), "1,0,3,3"));
    expected.add(new Pair<String,String>(QueryUtil.getRow("/local").toString(), "2,1,2,3"));
    expected.add(new Pair<String,String>(QueryUtil.getRow("/local/user1").toString(), "0,2,0,2"));
View Full Code Here

Examples of org.apache.accumulo.examples.wikisearch.ingest.WikipediaMapper.run()

    MockAccumuloRecordWriter rw = new MockAccumuloRecordWriter();
    WikipediaMapper mapper = new WikipediaMapper();
   
    // Load data into Mock Accumulo
    Mapper<LongWritable,Text,Text,Mutation>.Context con = mapper.new Context(conf, id, rr, rw, oc, sr, split);
    mapper.run(con);
   
    // Flush and close record writers.
    rw.close(context);
   
    table = new QueryLogic();
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.