Examples of run()


Examples of com.peterhi.working.Registry.run()

public class Responder {

  public static void main(String[] args) throws Exception {
    Registry registry = new Registry(22222);
    registry.run();
    AboutMe aboutMe = new AboutMeImpl(registry);
    registry.publish("aboutMe", AboutMe.class, aboutMe);
    Thread.sleep(5000);
    aboutMe.fireCallback("HUGO is the best!");
    Thread.sleep(5000);
View Full Code Here

Examples of com.projity.job.JobRunnable.run()

        return null;
      }

    }else{
      try {
        return (Project)runnable.run();
      } catch (Exception e) {
        e.printStackTrace();
        return null;
      }
    }
View Full Code Here

Examples of com.puppetlabs.geppetto.puppetlint.PuppetLintRunner.run()

    PuppetLintRunner runner = PuppetLintService.getInstance().getPuppetLintRunner();
    getLog().debug("Performing puppet lint validation on all modules");
    if(puppetLintOptions == null)
      puppetLintOptions = new PuppetLintRunner.Option[0];
    for(File moduleRoot : moduleLocations) {
      for(PuppetLintRunner.Issue issue : runner.run(moduleRoot, puppetLintOptions)) {
        Diagnostic diag = convertPuppetLintDiagnostic(moduleRoot, issue);
        if(diag != null)
          result.addChild(diag);
      }
    }
View Full Code Here

Examples of com.python.pydev.analysis.actions.AnalyzeOnRequestSetter.AnalyzeOnRequestAction.run()

            goToManual(TIME_FOR_ANALYSIS);

            //analyze when forced
            resourcesAnalyzed.clear();
            AnalyzeOnRequestAction analyzeOnRequestAction = new AnalyzeOnRequestSetter.AnalyzeOnRequestAction(editor);
            analyzeOnRequestAction.run();
            goToManual(TIME_FOR_ANALYSIS); //in 1 seconds, 1 analysis should happen

            assertEquals(1, resourcesAnalyzed.size());

        } finally {
View Full Code Here

Examples of com.python.pydev.refactoring.actions.PyGoToDefinition.run()

     * Try to find a definition and open it.
     */
    public void open() {
        PyGoToDefinition pyGoToDefinition = new PyGoToDefinition();
        pyGoToDefinition.setEditor(this.fEditor);
        pyGoToDefinition.run((IAction) null);
    }

}
View Full Code Here

Examples of com.rabbitmq.examples.perf.MulticastSet.run()

            p.setRandomRoutingKey( randomRoutingKey);
            p.setProducerRateLimit(producerRateLimit);
            p.setTimeLimit(        timeLimit);

            MulticastSet set = new MulticastSet(stats, factory, p);
            set.run(true);

            stats.printFinal();
        }
        catch( ParseException exp ) {
            System.err.println("Parsing failed. Reason: " + exp.getMessage());
View Full Code Here

Examples of com.rackspace.cloud.api.docs.pipeline.Pipeline.run()

        List<PipelineInput<?>> pipelineInputs = new ArrayList<PipelineInput<?>>() {{
            add(PipelineInput.port("source", inputSource));
            add(PipelineInput.port("parameters", new InputSource(paramsStream)));
        }};
       
        pipeline.run(pipelineInputs);
        List<Source> sources = pipeline.getResultPort("result"); // result of xinclude;

        return sources.get(0);
    }
View Full Code Here

Examples of com.redhat.ceylon.ceylondoc.CeylonDocTool.run()

                       "</div>" +
                   "</div>");
        tool.setFooter("<p style='text-align: right;'>" +
                   "Copyright © 2010-2013, Red Hat, Inc. or third-party contributors" +
                   "</p>");
        tool.run();
       
        Module module = new Module();
        module.setName(Arrays.asList(moduleName));
        module.setVersion("3.1.4");
       
View Full Code Here

Examples of com.redhat.ceylon.common.tools.help.CeylonDocToolTool.run()

        List<String> toolArgs = new ArrayList<>();
        toolArgs.addAll(Arrays.asList(toolName, "--output=" + dir.getAbsolutePath()));
        toolArgs.addAll(Arrays.asList(otherArgs));
        CeylonDocToolTool tool = pluginFactory.bindArguments(model, toolArgs);
        Assert.assertEquals(0, dir.listFiles().length);
        tool.run();
    }

    private void assertHtmlFiles(String toolName) throws IOException {
        List<File> files = Arrays.asList(dir.listFiles());
        Assert.assertFalse(files.isEmpty());
View Full Code Here

Examples of com.redhat.ceylon.common.tools.help.CeylonHelpTool.run()

        if (toolName != null
                && !toolName.isEmpty()) {
            helpTool.setTool(toolLoader.loadToolModel(toolName));
        }
        helpTool.setOut(sw);
        helpTool.run();
        return sw.toString();
    }
   
    @Test
    public void testNoArgs()  throws Exception {
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.