Examples of execute()


Examples of com.aerospike.client.query.QueryAggregateExecutor.execute()

  ) throws AerospikeException {
    if (policy == null) {
      policy = new QueryPolicy();
    }
    QueryAggregateExecutor executor = new QueryAggregateExecutor(cluster, policy, statement, packageName, functionName, functionArgs);
    executor.execute();
    return executor.getResultSet();
  }

  /**
   * Create secondary index.
View Full Code Here

Examples of com.aerospike.client.query.QueryRecordExecutor.execute()

  public final RecordSet query(QueryPolicy policy, Statement statement) throws AerospikeException {
    if (policy == null) {
      policy = new QueryPolicy();
    }
    QueryRecordExecutor executor = new QueryRecordExecutor(cluster, policy, statement);
    executor.execute();
    return executor.getRecordSet();
  }
 
  /**
   * Execute query, apply statement's aggregation function, and return result iterator. The query
View Full Code Here

Examples of com.aerospike.client.query.ServerExecutor.execute()

    String packageName,
    String functionName,
    Value... functionArgs
  ) throws AerospikeException {
    ServerExecutor executor = new ServerExecutor(policy, statement, packageName, functionName, functionArgs);
    executor.execute(cluster.getNodes());
    return new ExecuteTask(cluster, statement);
  }

  //--------------------------------------------------------
  // Query functions (Supported by Aerospike 3 servers only)
View Full Code Here

Examples of com.alexnevsky.hotel.commands.ICommand.execute()

  private void processRequest(HttpServletRequest request, HttpServletResponse response) {
    String page = null;

    try {
      ICommand command = RequestHelper.getInstance().getCommand(request);
      page = command.execute(request, response);
    } finally {
      logger.info("User '" + request.getSession().getAttribute(AttributesManager.PARAM_NAME_LOGIN) + "'. "
          + "Dispatching to view: " + page + ". RemoteAddr: " + request.getRemoteAddr());

      RequestDispatcher dispatcher = this.getServletContext().getRequestDispatcher(page);
View Full Code Here

Examples of com.alibaba.citrus.service.moduleloader.Module.execute()

        getInvocationContext("/app1");
        initRequestContext();

        Module module = moduleLoader.getModule("screens", "class.MyScreen");

        module.execute();

        assertEquals("execute", rundata.getAttribute("handler"));
    }

    @Test
View Full Code Here

Examples of com.alibaba.citrus.service.moduleloader.impl.adapter.ActionEventAdapter.execute()

                                    + ": method execute has 2 parameters, but no DataResolvers defined."));
        }

        // action.doMyEvent(无参数) - 正常执行
        ActionEventAdapter aeAdapter = (ActionEventAdapter) moduleLoaderService.getModule("action", "myAction");
        aeAdapter.execute();

        // action.doMyEvent(带参数)
        try {
            moduleLoaderService.getModule("action", "myParameterizedAction");
            fail();
View Full Code Here

Examples of com.alibaba.citrus.service.moduleloader.impl.adapter.DataBindingAdapter.execute()

        getInvocationContext("/app1?event_submit_do_my_event=yes");
        initRequestContext(factory);

        // screen.execute(无参数) - 正常执行
        DataBindingAdapter dbAdapter = (DataBindingAdapter) moduleLoaderService.getModule("screen", "myScreen");
        dbAdapter.execute();

        // screen.execute(带参数)
        try {
            moduleLoaderService.getModule("screen", "myParameterizedScreen");
            fail();
View Full Code Here

Examples of com.alibaba.druid.pool.DruidPooledCallableStatement.execute()

    }

    public void test_getObject() throws Exception {
        Connection conn = dataSource.getConnection();
        DruidPooledCallableStatement stmt = (DruidPooledCallableStatement) conn.prepareCall("select 1");
        stmt.execute();

        Assert.assertEquals(0, dataSource.getErrorCount());

        Exception error = null;
        try {
View Full Code Here

Examples of com.alibaba.druid.pool.DruidPooledPreparedStatement.execute()

        stmtHoler_0 = stmt_0.getPreparedStatementHolder();
       
        Assert.assertTrue(stmtHoler_0.isInUse());
        Assert.assertTrue(stmtHoler_0.isPooling());
       
        stmt_0.execute();
       
        {
            DruidPooledPreparedStatement stmt_1 = (DruidPooledPreparedStatement) conn.prepareStatement(sql_1);
            Assert.assertEquals(1, stmtPool.size());
           
View Full Code Here

Examples of com.alibaba.jstorm.callback.Callback.execute()

      return;
    }

    Callback callback = changingCallbacks.get(changeStatus);

    Object obj = callback.execute(args);
    if (obj != null && obj instanceof StormStatus) {
      StormStatus newStatus = (StormStatus) obj;
      // update status to ZK
      data.getStormClusterState().update_storm(topologyid, newStatus);
      LOG.info("Successfully updated " + topologyid + " as status "
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.