Examples of call()


Examples of org.python.pydev.core.callbacks.CallbackWithListeners.call()

            boolean cythonFile = edit.isCythonFile();
            if (cythonFile != currentIsCythonFile) {
                currentIsCythonFile = cythonFile;
                CallbackWithListeners callbackWithListeners = this.ref.get();
                if (callbackWithListeners != null) {
                    callbackWithListeners.call(null);
                } else {
                    edit.removePyeditListener(this);
                }
            }
        }
View Full Code Here

Examples of org.rascalmpl.interpreter.result.ICallableValue.call()

   
    if (var != null && var instanceof ICallableValue) {
      Type type = RascalTypeFactory.getInstance().nonTerminalType(ambCluster);
      ICallableValue func = (ICallableValue) var;
      try {
        Result<IValue> result = func.call(
            new Type[] {TF.setType(type)}, new IValue[] {alts}, null
        );
       
        if (result.getType().isBottom()) {
          return ambCluster;
View Full Code Here

Examples of org.rascalmpl.interpreter.result.OverloadedFunction.call()

      if (func.getFunctions().size() > 1) {
        throw new CommandlineError("should only have one main function", main);
      }
     
      if (main.getArity() == 1) {
        return func.call(getMonitor(), new Type[] { tf.listType(tf.stringType()) },new IValue[] { parsePlainCommandLineArgs(commandline)}, null).getValue();
      }
      else if (main.hasKeywordArgs() && main.getArity() == 0) {
        Map<String, IValue> args = parseKeywordCommandLineArgs(monitor, commandline, main);
        return func.call(getMonitor(), new Type[] { },new IValue[] {}, args).getValue();
      }
View Full Code Here

Examples of org.rhq.core.pc.event.EventSenderRunner.call()

        log.info("listening...");
        boolean success = false;
        for (int i = 0; i < 16; i++) {
            Thread.sleep(250);
            EventSenderRunner esr = new EventSenderRunner(eventManager);
            EventReport eventReport = esr.call();
            Map<EventSource, Set<Event>> events = eventReport.getEvents();
            log.info("events " + events);
            if (events.size() > 0) {
                success = true;
                break;
View Full Code Here

Examples of org.rhq.core.pc.inventory.AvailabilityExecutor.call()

    public void testAvailReport() throws Exception {
        Assert.assertTrue(pluginContainer.isStarted());
        Assert.assertTrue(pluginContainer.isRunning());
        AvailabilityExecutor executor = new ForceAvailabilityExecutor(this.pluginContainer.getInventoryManager());
        dumpContainers("testAvailReport() Start");
        AvailabilityReport report = executor.call();
        dumpContainers("testAvailReport() After First Avail Check");
        Assert.assertNotNull(report);
        Assert.assertEquals(report.isChangesOnlyReport(), false, "First report should have been a full report");
        List<Datum> availData = report.getResourceAvailability();
        for (Datum datum : availData) {
View Full Code Here

Examples of org.rhq.core.pc.inventory.ForceAvailabilityExecutor.call()

    public void testAvailReport() throws Exception {
        Assert.assertTrue(pluginContainer.isStarted());
        Assert.assertTrue(pluginContainer.isRunning());
        AvailabilityExecutor executor = new ForceAvailabilityExecutor(this.pluginContainer.getInventoryManager());
        dumpContainers("testAvailReport() Start");
        AvailabilityReport report = executor.call();
        dumpContainers("testAvailReport() After First Avail Check");
        Assert.assertNotNull(report);
        Assert.assertEquals(report.isChangesOnlyReport(), false, "First report should have been a full report");
        List<Datum> availData = report.getResourceAvailability();
        for (Datum datum : availData) {
View Full Code Here

Examples of org.rhq.core.pc.inventory.RuntimeDiscoveryExecutor.call()

                    ResourceContainer resourceContainer = im.getResourceContainer(resourceId);
                    if (resourceContainer != null) {
                        Resource resource = resourceContainer.getResource();
                        PluginContainerConfiguration pcc = agentConfig.getPluginContainerConfiguration();
                        RuntimeDiscoveryExecutor scanner = new RuntimeDiscoveryExecutor(im, pcc, resource);
                        InventoryReport report = scanner.call();
                        out.println(MSG.getMsg(AgentI18NResourceKeys.DISCOVERY_RESOURCE_SERVICES, resource.getName()));
                        printInventoryReport(report, out, verbose);
                    } else {
                        out.println(MSG.getMsg(AgentI18NResourceKeys.DISCOVERY_RESOURCE_ID_INVALID, resourceId));
                    }
View Full Code Here

Examples of org.springframework.data.hadoop.hive.HiveRunner.call()

        "/META-INF/spring/hive-apache-log-context.xml", HiveAppWithApacheLogs.class);
    log.info("Hive Application Running");
    context.registerShutdownHook()
   
    HiveRunner runner = context.getBean(HiveRunner.class);   
    runner.call();

        context.close();
        log.info("Hive Application Completed");
  }
}
View Full Code Here

Examples of org.springframework.data.hadoop.mapreduce.JobRunner.call()

        Writer wr = new OutputStreamWriter(os);
        wr.write("b a\n");
        wr.close();
   
    JobRunner runner = (JobRunner) ctx.getBean("runner");
    runner.call();

        Path[] outputFiles = FileUtil.stat2Paths(
                fs.listStatus(outDir, new Utils.OutputFileUtils.OutputFilesFilter()));

        assertEquals(1, outputFiles.length);
View Full Code Here

Examples of org.springframework.rules.closure.Closure.call()

    Boolean visit(ClosureResultConstraint ofConstraint) {
        Closure f = ofConstraint.getFunction();
        if (logger.isDebugEnabled()) {
            logger.debug("Invoking function with argument " + argument);
        }
        setArgument(f.call(argument));
        return (Boolean)visitorSupport.invokeVisit(this, ofConstraint
                .getPredicate());
    }

    boolean visit(Constraint constraint) {
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.