Examples of ExecuteRequest


Examples of com.alibaba.wasp.protobuf.generated.ClientProtos.ExecuteRequest

  /**
   * @see java.util.concurrent.Callable#call()
   */
  @Override
  public ExecuteResponse call() throws IOException {
    ExecuteRequest request = null;
    if(isTransaction) {
      request = RequestConverter.buildExecuteRequest(sqls, sessionId, true);
    } else {
      request = RequestConverter.buildExecuteRequest(sql, model, fetchSize, sessionId);
    }
View Full Code Here

Examples of com.alibaba.wasp.protobuf.generated.ClientProtos.ExecuteRequest

   * Close
   */
  @Override
  public void close() throws IOException {
    if (sessionId != null) {
      ExecuteRequest request = RequestConverter.buildExecuteRequest(sessionId,
          sql, true);
      try {
        server.execute(null, request);
      } catch (ServiceException e) {
        throw ProtobufUtil.getRemoteException(e);
View Full Code Here

Examples of org.geoserver.wps.executor.ExecuteRequest

        if (responseDocument != null && rawDataOutput != null) {
            throw new WPSException("Invalid request, only one of the raw data output or the "
                    + "response document should be specified in the request");
        }

        ExecuteRequest request = new ExecuteRequest(execute);

        // TODO: get the startup time from the execution status
        ExecuteResponseBuilder builder = new ExecuteResponseBuilder(execute, context, new Date());
        String executionId = executionManager.submit(request, !request.isAsynchronous());
        builder.setExecutionId(executionId);
        if (!request.isAsynchronous()) {
            try {
                Map<String, Object> outputs = executionManager.getOutput(executionId, -1);
                builder.setOutputs(outputs);
            } catch (Exception e) {
                LOGGER.log(Level.SEVERE, "Process execution failed", e);
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.