Examples of execute()


Examples of com.adm.biz.Service.execute()

    Map<String,String> params = ServletUtil.getParamters(request);
    //获取到service
    Service s = (Service)this.ctx.getBean(params.get("s"));
    params.remove("s");
    try {
      s.execute(params,request,response);
    } catch (Throwable e) {
      e.printStackTrace();
      throw new ServletException(e.getMessage());
    }
  }
View Full Code Here

Examples of com.aerospike.client.command.DeleteCommand.execute()

   * @throws AerospikeException  if delete fails
   */
  public final boolean delete(WritePolicy policy, Key key) throws AerospikeException {
    DeleteCommand command = new DeleteCommand(cluster, key);
    command.setDelete(policy, key);   
    command.execute(policy);
    return command.getResultCode() == ResultCode.OK;
  }

  //-------------------------------------------------------
  // Touch Operations
View Full Code Here

Examples of com.aerospike.client.command.ExecuteCommand.execute()

   * @throws AerospikeException  if transaction fails
   */
  public final Object execute(Policy policy, Key key, String packageName, String functionName, Value... args)
    throws AerospikeException {
    ExecuteCommand command = new ExecuteCommand(cluster, policy, key, packageName, functionName, args);
    command.execute();
   
    Record record = command.getRecord();
   
    if (record == null || record.bins == null) {
      return null;
View Full Code Here

Examples of com.aerospike.client.command.ExistsCommand.execute()

   * @return            whether record exists or not
   * @throws AerospikeException  if command fails
   */
  public final boolean exists(Policy policy, Key key) throws AerospikeException {
    ExistsCommand command = new ExistsCommand(cluster, policy, key);
    command.execute();
    return command.exists();
  }

  /**
   * Check if multiple record keys exist in one batch call.
View Full Code Here

Examples of com.aerospike.client.command.OperateCommand.execute()

   * @throws AerospikeException  if command fails
   */
  public final Record operate(WritePolicy policy, Key key, Operation... operations)
    throws AerospikeException {   
    OperateCommand command = new OperateCommand(cluster, policy, key, operations);
    command.execute();
    return command.getRecord();
  }

  //-------------------------------------------------------
  // Scan Operations
View Full Code Here

Examples of com.aerospike.client.command.ReadCommand.execute()

   * @throws AerospikeException  if command fails
   */
  public final boolean exists(Policy policy, Key key) throws AerospikeException {
    ReadCommand command = new ReadCommand(cluster, key);
    command.setExists(key);
    command.execute(policy);
    return command.getResultCode() == ResultCode.OK;
  }

  /**
   * Check if multiple record keys exist in one batch call.
View Full Code Here

Examples of com.aerospike.client.command.ReadHeaderCommand.execute()

   * @return            if found, return record instance.  If not found, return null.
   * @throws AerospikeException  if read fails
   */
  public final Record getHeader(Policy policy, Key key) throws AerospikeException {
    ReadHeaderCommand command = new ReadHeaderCommand(cluster, policy, key);
    command.execute();
    return command.getRecord();
  }

  //-------------------------------------------------------
  // Batch Read Operations
View Full Code Here

Examples of com.aerospike.client.command.ScanCommand.execute()

    // Retry policy must be one-shot for scans.
    policy.maxRetries = 0;

    ScanCommand command = new ScanCommand(node, callback);
    command.setScan(policy, namespace, setName, binNames);
    command.execute(policy);
  }

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

Examples of com.aerospike.client.command.TouchCommand.execute()

   * @param key          unique record identifier
   * @throws AerospikeException  if touch fails
   */
  public final void touch(WritePolicy policy, Key key) throws AerospikeException {
    TouchCommand command = new TouchCommand(cluster, policy, key);
    command.execute();
  }

  //-------------------------------------------------------
  // Existence-Check Operations
  //-------------------------------------------------------
View Full Code Here

Examples of com.aerospike.client.command.WriteCommand.execute()

   * @throws AerospikeException  if write fails
   */
  public final void put(WritePolicy policy, Key key, Bin... bins) throws AerospikeException {
    WriteCommand command = new WriteCommand(cluster, key);
    command.setWrite(policy, Operation.Type.WRITE, key, bins);
    command.execute(policy);
  }

  //-------------------------------------------------------
  // String Operations
  //-------------------------------------------------------
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.