Exemplo n.º 1
0
 /** @since 2.0 */
 @Override
 public synchronized ITmfContext armRequest(final ITmfEventRequest request) {
   if (executorIsShutdown()) {
     return null;
   }
   if (!TmfTimestamp.BIG_BANG.equals(request.getRange().getStartTime())
       && (request.getIndex() == 0)) {
     final ITmfContext context = seekEvent(request.getRange().getStartTime());
     request.setStartIndex((int) context.getRank());
     return context;
   }
   return seekEvent(request.getIndex());
 }
Exemplo n.º 2
0
  /** @since 2.0 */
  @Override
  public synchronized ITmfContext armRequest(final ITmfEventRequest request) {

    // Make sure we have something to read from
    if (fTraces == null) {
      return null;
    }

    if (!TmfTimestamp.BIG_BANG.equals(request.getRange().getStartTime())
        && request.getIndex() == 0) {
      final ITmfContext context = seekEvent(request.getRange().getStartTime());
      request.setStartIndex((int) context.getRank());
      return context;
    }

    return seekEvent(request.getIndex());
  }