Examples of call()


Examples of org.tarantool.facade.TarantoolTemplate.call()

  public void testCall() throws MalformedURLException {
    Mapping<User> mapping = new Mapping<User>(User.class, 126, "id", "phone");
    SocketChannelPooledConnectionFactory connectionFactory = new SocketChannelPooledConnectionFactory("localhost", 33313, 1, 10);
    TarantoolTemplate template = new TarantoolTemplate(connectionFactory);
    template.addMapping(mapping);
    template.call(User.class, "box.delete", "126", 4321).callForOne();
    assertNotNull(template.call(User.class, "box.insert", "126", 4321, 323323L).callForOne());
    assertNull(template.call(User.class, "box.select", 126, 0, 4321).luaMode(true).callForOne());
    template.call(User.class, "box.delete", "126", 4321).callForOne();
  }
}
View Full Code Here

Examples of org.tarantool.msgpack.TarantoolConnection16.call()

        List<Value> delete = con.delete(0, Arrays.asList(1));
        List<Value> insert = con.insert(0, Arrays.asList(1, "hello"));
        Message[] insert1 = con.insert(Message[].class, 0, new Message());
        List<Value> select0 = con.select(0, 0, Arrays.asList(1), 0, 100);
        Message[] select = con.select(Message[].class, 0, 0, new int[]{0}, 0, 10);
        List<Value> time = con.call("box.time");
        float[][] time2 = con.call(float[][].class, "box.time");
        Message[] updated = con.update(Message[].class, 0, new int[]{0}, Arrays.asList(Arrays.asList("=", 1, "!!!")));
        factory.returnConnection(con);
        factory.close();
View Full Code Here

Examples of org.tinyuml.util.MethodCall.call()

   */
  public void testMethodCall() throws Exception {
    MyObject myobj = new MyObject();
    MethodCall mycall = new MethodCall(myobj.getClass().getMethod("mymethod",
      String.class), "wascalled");
    mycall.call(myobj);
    assertEquals("wascalled", myobj.callparam);
  }
}
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetBusyHandler.call()

        assert (db != null);
        assert (db.getMutex().held());
        final ISqlJetBusyHandler busyHandler = db.getBusyHandler();
        if (busyHandler == null)
            return false;
        return busyHandler.call(number);
    }

    /*
     * (non-Javadoc)
     *
 
View Full Code Here

Examples of org.torquebox.web.component.RackApplicationComponent.call()

        RackApplicationComponent rackApp;
        try {
            runtime = this.runtimePool.borrowRuntime( "rack" );
            rackApp = (RackApplicationComponent) this.componentResolver.resolve( runtime );
            rackEnv = new RackEnvironment( runtime, request );
            rackApp.call( rackEnv ).respond( response );
        } catch (RaiseException e) {
            log.error( "Error invoking Rack filter", e );
            log.error( "Underlying Ruby exception", e.getCause() );
            throw new ServletException( e );
        } catch (Exception e) {
View Full Code Here

Examples of org.voltdb.ProcedureRunner.call()

                }

                // Check partitioning of single-partition and n-partition transactions.
                if (runner.checkPartition(m_txnState, siteConnection.getCurrentHashinator())) {
                    runner.setupTransaction(m_txnState);
                    cr = runner.call(callerParams);

                    m_txnState.setHash(cr.getHash());
                    //Don't pay the cost of returning the result tables for a replicated write
                    //With reads don't apply the optimization just in case
//                    if (!task.shouldReturnResultTables() && !task.isReadOnly()) {
View Full Code Here

Examples of org.xlightweb.client.HttpClient.call()

   
    @Test
    public void testSSL() throws Exception {
    HttpClient httpClient = new HttpClient(SSLTestContextFactory.getSSLContext());
   
    IHttpResponse response = httpClient.call(new GetRequest("https://localhost:" + proxySslServer.getLocalPort() + "/test"));
    Assert.assertEquals(200, response.getStatus());
    Assert.assertEquals("isSecured=true", response.getBody().readString());
   
    httpClient.close();
  }
View Full Code Here

Examples of org.xlightweb.client.HttpClientConnection.call()

     
      NonBlockingConnectionPool pool = new NonBlockingConnectionPool();
             
        for (int i = 0; i < 1000; i++) {
            HttpClientConnection httpCon = new HttpClientConnection(pool.getNonBlockingConnection("localhost", server.getLocalPort()));
            IHttpResponse resp = httpCon.call(new GetRequest("http://localhost:" + server.getLocalPort() + "/"));
       
            InputStream in = Channels.newInputStream(resp.getBlockingBody());
            in.close();
               
            httpCon.close();
View Full Code Here

Examples of org.xlightweb.client.IHttpClientEndpoint.call()

      new NonBlockingConnection(InetAddress.getByName("www.web.de"), 80, ch, false, 2000);
     
      QAUtil.sleep(1500);
     
      IHttpClientEndpoint httpEndpoint = ch.getHttpConnection();
      IHttpResponse response = httpEndpoint.call(new GetRequest("/"));

      Assert.assertTrue((response.getStatus() >= 200) && (response.getStatus() < 400));
  }

 
View Full Code Here

Examples of pl.icedev.rpc.client.JSONRPC.call()

    public static void main(String[] args) throws IOException {
        JSONRPC rpc = new JSONRPC("localhost", 6949);
        rpc.setAuthKey("test");

        Object resp = rpc.call("createUser", "Example");

        System.out.println(resp);

        rpc.close();
    }
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.