Examples of invoke()


Examples of com.alibaba.dubbo.rpc.protocol.dubbo.support.DemoServiceImpl.invoke()

    Map<String, String> map = new HashMap<String, String>();
    map.put("aa", "bb");
    Set<String> set = service.keys(map);
    assertEquals(set.size(), 1);
    assertEquals(set.iterator().next(), "aa");
    service.invoke("dubbo://127.0.0.1:9010/" + DemoService.class.getName() + "", "invoke");

    service = proxy.getProxy(protocol.refer(DemoService.class, URL.valueOf("dubbo://127.0.0.1:9010/" + DemoService.class.getName() + "?client=netty")));
    // test netty client
    StringBuffer buf = new StringBuffer();
    for(int i=0;i<1024*32+32;i++)
 
View Full Code Here

Examples of com.alibaba.dubbo.rpc.service.GenericService.$invoke()

                parameter.put("name", "liangfei");
                parameter.put("Email", "liangfei@liang.fei");
                parameter.put("Age", 50);
                parameter.put("LoginDate", new Date(System.currentTimeMillis() - 1000000));
                parameter.put("ExpiryDate", new Date(System.currentTimeMillis() + 1000000));
                validationService.$invoke("save", new String[] {ValidationParameter.class.getName()}, new Object[] {parameter});
               
                // Save Error
                try {
                    parameter = new HashMap<String, Object>();
                    validationService.$invoke("save", new String[] {ValidationParameter.class.getName()}, new Object[] {parameter});
View Full Code Here

Examples of com.antonytrupe.server.games.GameEngine.invoke()

        "/com/antonytrupe/tend/Point.js",
        "/com/antonytrupe/tend/Board.js",
        "/com/antonytrupe/tend/Player.js",
        "/com/antonytrupe/tend/Trade.js",
        "/com/antonytrupe/tend/Settlement.js" });
    ge.invoke(board, "update", new String[] { "{\"board\":"
        + "{\"id\":1,\"players\":{}}" + "}" });
    assertEquals(1, board.get("id"));
  }

  @Test
View Full Code Here

Examples of com.arjuna.webservices.HeaderHandler.invoke()

                            checkMustUnderstand(streamReader, soapDetails) ;
                            ElementConsumer.consume(streamReader) ;
                        }
                        else
                        {
                            headerHandler.invoke(streamReader, messageContext) ;
                            handlers.add(headerHandler) ;
                        }
                        streamReader.require(XMLStreamConstants.END_ELEMENT,
                                headerName.getNamespaceURI(), headerName.getLocalPart()) ;
                    }
View Full Code Here

Examples of com.arjuna.webservices.SoapClient.invoke()

                client.invokeOneWay(soapBodyMessage, toURI) ;
                return null ;
            }
        }
       
        final SoapMessage response = client.invoke(soapBodyMessage, toURI) ;
        if (response instanceof SoapBodyMessage)
        {
            return ((SoapBodyMessage)response).getSoapBody() ;
        }
        throw new IOException(WSCLogger.log_mesg.getString("com.arjuna.webservices.wsaddr2005.client.WSAddr2005Client_5")) ;
View Full Code Here

Examples of com.astamuse.asta4d.snippet.SnippetInvoker.invoke()

                        final Context newContext = context.clone();
                        final String declaration = renderDeclaration;
                        crHelper.submitWithContext(newContext, declaration, refId, new Callable<Renderer>() {
                            @Override
                            public Renderer call() throws Exception {
                                return invoker.invoke(declaration);
                            }
                        });
                        element.attr(ExtNodeConstants.SNIPPET_NODE_ATTR_STATUS, ExtNodeConstants.SNIPPET_NODE_ATTR_STATUS_WAITING);
                    } else {
                        renderer = invoker.invoke(renderDeclaration);
View Full Code Here

Examples of com.badlogic.gdx.utils.reflect.Method.invoke()

    // Get current style.
    Method method = findMethod(actor.getClass(), "getStyle");
    if (method == null) return;
    Object style;
    try {
      style = method.invoke(actor);
    } catch (Exception ignored) {
      return;
    }
    // Determine new style.
    String name = find(style);
View Full Code Here

Examples of com.bj58.spat.gaea.client.proxy.ServiceProxy.invoke()

        if (ann != null) {
            if (!ann.methodName().equals(AnnotationUtil.DEFAULT_VALUE)) {
                methodName = "$" + ann.methodName();
            }
        }
        InvokeResult result = proxy.invoke(returnPara, lookup, methodName, paras);

        if (result != null && result.getOutPara() != null) {
            for (int i = 0; i < outParas.size() && i < result.getOutPara().length; i++) {
                Object op = args[outParas.get(i)];
                if(op instanceof Out){
View Full Code Here

Examples of com.bj58.spat.gaea.server.contract.context.IProxyStub.invoke()

        sw.startNew(swInvoderKey, sbInvokerMsg.toString());
        sw.setFromIP(context.getChannel().getRemoteIP());
        sw.setLocalIP(context.getChannel().getLocalIP());
       
        //invoker real service
        GaeaResponse gaeaResponse = localProxy.invoke(context);
       
        sw.stop(swInvoderKey);
       
        logger.debug("end localProxy.invoke");
        context.setGaeaResponse(gaeaResponse);
View Full Code Here

Examples of com.britesnow.snow.web.exception.WebExceptionCatcherRef.invoke()

    public boolean processWebExceptionCatcher(Throwable t, WebHandlerContext webHandlerContext, RequestContext rc) {
        WebExceptionContext webExceptionContext = new WebExceptionContext(webHandlerContext);

        WebExceptionCatcherRef webExceptionCatcherRef = webObjectRegistry.getWebExceptionCatcherRef(t.getClass());
        if (webExceptionCatcherRef != null) {
            webExceptionCatcherRef.invoke(t, webExceptionContext, rc);
            return true;
        } else {
            return false;
        }
    }
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.