Examples of call()


Examples of netscape.javascript.JSObject.call()

    // calls the setWeight(weight) JavaScript function on the current page
    private void setWeight(String weight) {
        JSObject win = JSObject.getWindow(this);
        String[] args = { weight };
        win.call("setWeight", args);
    }
}
View Full Code Here

Examples of org.acplt.oncrpc.OncRpcClient.call()

        while (true) {
            try {
                countCall++;
                client = getRpcClient();
                if (result == XdrVoid.XDR_VOID) {
                    client.call(functionId, parameter, result);
                } else {
                    ResultWithCode nfsResult = new ResultWithCode(result);
                    client.call(functionId, parameter, nfsResult);
                    if (nfsResult.getResultCode() != ResultCode.NFS_OK) {
                        throw new NFS2Exception(nfsResult.getResultCode());
View Full Code Here

Examples of org.amplafi.flow.launcher.StartFromDefinitionFlowLauncher.call()

                // no flows on this page are active. This FullFlowComponent is an autoStart so it should do its thing and start.
                // TODO: by default autoStart should clear all existing flows ( problem if we want to always have a flow active )
                getFlowManagement().getLog().debug("Auto starting "+getFlowName()+" on page "+getPage().getPageName()+" activeflows="+getFlowManagement().getFlowStates());
                StartFromDefinitionFlowLauncher flowLauncher = new StartFromDefinitionFlowLauncher(getFlowName(), null, getFlowManagement(), getFlowName(), getContainer(), getInitialValues());
                try {
                    flow = flowLauncher.call();
                } catch (FlowValidationException e) {
//                    getFlowResultHandler().handleValidationTrackings(e.getTrackings(), this);
                    return null;
                }
            }
View Full Code Here

Examples of org.apache.bsf.BSFEngine.call()

    public void testCall() throws Exception {
        BSFEngine bsfEngine = manager.loadScriptingEngine("groovy");
        manager.declareBean("myvar", "hello", String.class);
        Object myvar = manager.lookupBean("myvar");
        String result = (String) bsfEngine.call(myvar, "reverse", new Object[]{});
        assertEquals("olleh", result);
    }

    public void testExecFile() throws Exception {
        execScript("src/test/groovy/script/MapFromList.groovy");
View Full Code Here

Examples of org.apache.commons.transaction.util.RendezvousBarrier.call()

                txMap1.startTransaction();
                try {
                    beforeCommitBarrier.meet();
                    txMap1.put("key1", "value2");
                    txMap1.commitTransaction();
                    afterCommitBarrier.call();
                } catch (InterruptedException e) {
                    logger.log(Level.WARNING, "Thread interrupted", e);
                    afterCommitBarrier.reset();
                    beforeCommitBarrier.reset();
                }
View Full Code Here

Examples of org.apache.commons.workflow.web.WebContext.call()

            context.setHttpSession(session);
            context.setServletContext(servlet.getServletContext());
            if (doDebugListener())
                context.addContextListener(this);
            session.setAttribute(contextId, context);
            context.call(context.getActivity());
        }
        return context;

    }
View Full Code Here

Examples of org.apache.felix.ipojo.util.Callback.call()

            signature);
        if (method != null) {
            MethodMetadata methodCall = method.getMethod();
            Callback mc = new Callback(methodCall, m_instanceManager);
            try {
                return mc.call(params);
            } catch (NoSuchMethodException e) {
                throw new ReflectionException(e);
            } catch (IllegalAccessException e) {
                throw new ReflectionException(e);
            } catch (InvocationTargetException e) {
View Full Code Here

Examples of org.apache.hadoop.chukwa.dataloader.MetricDataLoader.call()

      ChukwaConfiguration conf = new ChukwaConfiguration();
      FileSystem fs = FileSystem.get(conf);
      FileStatus[] sources = fs.listStatus(new Path(srcDir));
      for (FileStatus sequenceFile : sources) {
        MetricDataLoader mdl = new MetricDataLoader(conf, fs, sequenceFile.getPath().toUri().toString());
        mdl.call();
      }
      if(sources.length==0) {
        skip=true;
      }
    } catch (Throwable ex) {
View Full Code Here

Examples of org.apache.hadoop.hbase.ipc.RpcServerInterface.call()

      @Override
      public Message callBlockingMethod(MethodDescriptor method, RpcController controller,
          Message request, Message responsePrototype) throws ServiceException {
        try {
          // we never need a cell-scanner - everything is already fully formed
          return rpc.call(blocking, method, request, null, timestamp, status).getFirst();
        } catch (IOException e) {
          throw new ServiceException(e);
        }
      }
    };
View Full Code Here

Examples of org.apache.hadoop.hbase.snapshot.CopyRecoveredEditsTask.call()

      fs.createNewFile(empty);

      CopyRecoveredEditsTask task = new CopyRecoveredEditsTask(snapshot, monitor, fs, regionDir,
          snapshotRegionDir);
      CopyRecoveredEditsTask taskSpy = Mockito.spy(task);
      taskSpy.call();

      Path snapshotEdits = HLogUtil.getRegionDirRecoveredEditsDir(snapshotRegionDir);
      FileStatus[] snapshotEditFiles = FSUtils.listStatus(fs, snapshotEdits);
      assertEquals("Got wrong number of files in the snapshot edits", 1, snapshotEditFiles.length);
      FileStatus file = snapshotEditFiles[0];
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.