Examples of call()


Examples of com.googlecode.aviator.runtime.type.AviatorFunction.call()

        assertNotNull(predicateName);
        assertEquals(1, env.size());
        AviatorFunction predicate = (AviatorFunction) env.get(predicateName.getName());
        assertNotNull(predicate);
        AviatorObject result = predicate.call(null, args);
        // equals self
        assertTrue(result.booleanValue(null));

    }
View Full Code Here

Examples of com.ibm.bsf.BSFEngine.call()

        BSFEngine engine = manager.loadScriptingEngine(language);

        manager.exec(language, "service script for '" +
                name + "'", 0, 0, scriptStr);

        Object result = engine.call(null, methodName, argValues);
        return result;
    }
}
View Full Code Here

Examples of com.jayway.awaitility.support.CountDown.call()

        final AtomicReference<String> lastMatchMessage = new AtomicReference<>();
        CountDown countDown = new CountDown(10);
        with()
                .conditionEvaluationListener(condition -> {
                    try {
                        countDown.call();
                    } catch (Exception e) {
                        throw new RuntimeException(e);
                    }
                    lastMatchMessage.set(condition.getDescription());
                })
View Full Code Here

Examples of com.linkedin.helix.messaging.handling.HelixTask.call()

    HelixStateTransitionHandler stHandler = new HelixStateTransitionHandler(stateModel, message,
        context, currentStateDelta, executor);
    HelixTask handler;
    handler = new HelixTask(message, context, stHandler, executor);
    handler.call();
    AssertJUnit.assertTrue(stateModel.stateModelInvoked);
    System.out.println("END TestCMTaskHandler.testInvocation() at "
        + new Date(System.currentTimeMillis()));
  }
View Full Code Here

Examples of com.metaparadigm.jsonrpc.JSONRPCBridge.call()

    }
    writeReceive(data.toString());
    try {
      jsonReq = new JSONObject(data.toString());
      // Process the request
      jsonRes = jsonBridge.call(new Object[] { request }, jsonReq);
    } catch (ParseException e) {
      log.error("can't parse call: " + data, e);
      jsonRes = new JSONRPCResult(JSONRPCResult.CODE_ERR_PARSE, null, JSONRPCResult.MSG_ERR_PARSE);
    }
View Full Code Here

Examples of com.naef.jnlua.LuaState.call()

        try {
            // Define a function
            luaState.load("function add(a, b) return a + b end", "=simple");

            // Evaluate the chunk, thus defining the function
            luaState.call(0, 0); // No arguments, no returns

            // Prepare a function call
            luaState.getGlobal("add"); // Push the function on the stack
            luaState.pushInteger(1); // Push argument #1
            luaState.pushInteger(1); // Push argument #2
View Full Code Here

Examples of com.netflix.bdp.s3mper.common.RetryTask.call()

        for(Path path : paths) {
            Key startKey = null;
           
            do {
                RetryTask<QueryResult> queryTask = new RetryTask(new QueryTask(path, startKey), retryCount, timeout);
                QueryResult result = queryTask.call();
               
                for(Map<String, AttributeValue> item : result.getItems()) {
                    FileInfo file = new FileInfo(new Path(scheme+":"+item.get(HASH_KEY).getS() +"/"+ item.get(RANGE_KEY).getS()));
                   
                    if(item.containsKey(DELETE_MARKER)) {
View Full Code Here

Examples of com.oracle.truffle.api.CallTarget.call()

                }

                final RubyRootNode parsedRootNode = truffleContext.getTranslator().parse(truffleContext, source, parserContext, parentFrame, null);
                final CallTarget callTarget = Truffle.getRuntime().createCallTarget(parsedRootNode);

                return callTarget.call(RubyArguments.pack(null, parentFrame, self, null, new Object[]{}));
            }

        }, truffleContext.getCoreLibrary().getNilObject());
    }
View Full Code Here

Examples of com.paypal.sdk.services.CallerServices.call()

    requestDetail.setOrderDescription("");
    requestDetail.setCustom("");
   
    requestHeader.setSetExpressCheckoutRequestDetails(requestDetail);

    SetExpressCheckoutResponseType response = (SetExpressCheckoutResponseType) caller.call("SetExpressCheckout", requestHeader);
    if (!response.getAck().equals(AckCodeType.Success)) {
      throw new PaymentException(response.getAck().getValue().toString());
    }
    token = response.getToken();
  }
View Full Code Here

Examples of com.paypal.sdk.services.NVPCallerServices.call()

        } catch (PayPalException e) {
            Debug.logError(e.getMessage(), module);
        }

        String requestMessage = encoder.encode();
        String responseMessage = caller.call(requestMessage);

        NVPDecoder decoder = new NVPDecoder();
        decoder.decode(responseMessage);
        if (!"Success".equals(decoder.get("ACK"))) {
            Debug.logError("A response other than success was received from PayPal: " + responseMessage, module);
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.