Package org.teiid.dqp.message

Examples of org.teiid.dqp.message.RequestID


      // Create command context, used in rewriting, planning, and processing
        // Identifies a "group" of requests on a per-connection basis to allow later
        // cleanup of all resources in the group on connection shutdown
        String groupName = workContext.getSessionId();

        RequestID reqID = workContext.getRequestID(this.requestMsg.getExecutionId());
       
        Properties props = new Properties();
        props.setProperty(ContextProperties.SESSION_ID, workContext.getSessionId());
       
        this.context =
View Full Code Here


      TestProcessor.doProcess(plan, dataManager, expectedResults, context);
    }

    protected CommandContext createCommandContext() {
        CommandContext context = new CommandContext(new RequestID(), "test", "user", "myvdb", 1); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
        return context;
    }      
View Full Code Here

  public String getAppName() {
    return session.getApplicationName();
  }
 
  public RequestID getRequestID(long exeuctionId) {
    return new RequestID(this.getSessionId(), exeuctionId);
  }
View Full Code Here

      return results;
  }   

  public ResultsFuture<ResultsMessage> executeRequest(long reqID,RequestMessage requestMsg) {
      DQPWorkContext workContext = DQPWorkContext.getWorkContext();
    RequestID requestID = workContext.getRequestID(reqID);
    requestMsg.setFetchSize(Math.min(requestMsg.getFetchSize(), this.config.getMaxRowsFetchSize()));
    Request request = null;
      if ( requestMsg.isPreparedStatement() || requestMsg.isCallableStatement()) {
        request = new PreparedStatementRequest(prepPlanCache);
      } else {
View Full Code Here

            LogManager.logWarning(LogConstants.CTX_DQP, "rollback failed for requestID=" + sessionId); //$NON-NLS-1$
        }
    }

    public boolean cancelRequest(String sessionId, long executionId) throws TeiidComponentException {
      RequestID requestID = new RequestID(sessionId, executionId);
      return cancelRequest(requestID);
    }
View Full Code Here

        return;
      }
     
        RequestMessage msg = workItem.requestMsg;
        DQPWorkContext workContext = DQPWorkContext.getWorkContext();
        RequestID rID = new RequestID(workContext.getSessionId(), msg.getExecutionId());
      String txnID = null;
    TransactionContext tc = workItem.getTransactionContext();
    if (tc != null && tc.getTransactionType() != Scope.NONE) {
      txnID = tc.getTransactionId();
    }
      String appName = workContext.getAppName();
        // Log to request log
        CommandLogMessage message = null;
        if (status == Event.NEW) {
            message = new CommandLogMessage(System.currentTimeMillis(), rID.toString(), txnID, workContext.getSessionId(), appName, workContext.getUserName(), workContext.getVdbName(), workContext.getVdbVersion(), msg.getCommandString());
        } else {
            message = new CommandLogMessage(System.currentTimeMillis(), rID.toString(), txnID, workContext.getSessionId(), workContext.getUserName(), workContext.getVdbName(), workContext.getVdbVersion(), rowCount, status);
        }
        LogManager.log(MessageLevel.DETAIL, LogConstants.CTX_COMMANDLOGGING, message);
    }
View Full Code Here

TOP

Related Classes of org.teiid.dqp.message.RequestID

Copyright © 2018 www.massapicom. 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.