Package sherpa.protocol

Examples of sherpa.protocol.DataRequest


   * @param startRow
   *          Start row needed in return batch
   */
  private void asyncMoreRequest(int startRow) {
    try {
      DataRequest moreRequest = new DataRequest();
      moreRequest.queryId = queryId;
      moreRequest.startRow = startRow;
      moreRequest.maxSize = maxBatchSize;
      logger.debug("Client requesting {} .. {}", startRow, (startRow + maxBatchSize - 1));

View Full Code Here


public class TestDummyQueryResponder {

  private void testDataResponseCount(int start, int size, int totalRowCount, int expectedCount, boolean expectedMore) throws Exception {
    DummyQueryResponder responder = new DummyQueryResponder(totalRowCount);
    DataRequest dataRequest = new DataRequest();
    dataRequest.queryId = "a";
    dataRequest.startRow = start;
    dataRequest.maxSize = size;
    DataResponse response = responder.data(dataRequest);
   
View Full Code Here

TOP

Related Classes of sherpa.protocol.DataRequest

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.