Examples of endTimeUsec()


Examples of com.google.appengine.api.log.LogQuery.endTimeUsec()

  private static void runTest(
      long timeOffset, long startTimeUsec, long endTimeUsec, int numShards, long[] startTimes) {
    LogQuery logQuery = LogQuery.Builder.withDefaults();
    logQuery.startTimeUsec(timeOffset + startTimeUsec);
    logQuery.endTimeUsec(timeOffset + endTimeUsec);
    LogInput input = new LogInput(logQuery, numShards);
    List<? extends InputReader<RequestLogs>> readers = input.createReaders();
    assertEquals("Incorrect number of readers", startTimes.length, readers.size());
    for (int i = 0; i < startTimes.length; i++) {
      LogInputReader reader = (LogInputReader) readers.get(i);
View Full Code Here

Examples of com.google.appengine.api.log.LogQuery.endTimeUsec()

  }

  private LogInputReader createReader(long startTimeUsec, long endTimeUsec) {
    LogQuery logQuery = LogQuery.Builder.withDefaults();
    logQuery.startTimeUsec(startTimeUsec);
    logQuery.endTimeUsec(endTimeUsec);
    ArrayList<String> versionList = new ArrayList<>();
    versionList.add(VERSION_ID);
    logQuery.majorVersionIds(versionList);
    return new LogInputReader(logQuery);
  }
View Full Code Here

Examples of com.google.appengine.api.log.LogQuery.endTimeUsec()

      long curEndTimeUsec = Math.round(startTimeUsec + (i * perShardTimeUsec));
      // Ensure we do not go past the end time due to rounding
      curEndTimeUsec = (curEndTimeUsec > endTimeUsec) ? endTimeUsec : curEndTimeUsec;
      LogQuery readerLogQuery = logQuery.clone();
      readerLogQuery.startTimeUsec(curStartTimeUsec);
      readerLogQuery.endTimeUsec(curEndTimeUsec);
      LogInputReader reader = new LogInputReader(readerLogQuery);
      readers.add(reader);
      curStartTimeUsec = curEndTimeUsec;
    }
    return readers;
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.