(final TSDB tsdb, final Annotation note,
final HttpQuery query)
| 355 | } |
| 356 | |
| 357 | private void fetchMultipleAnnotations(final TSDB tsdb, final Annotation note, |
| 358 | final HttpQuery query) throws Exception { |
| 359 | if (note.getEndTime() == 0) { |
| 360 | note.setEndTime(System.currentTimeMillis()); |
| 361 | } |
| 362 | final List<Annotation> annotations = |
| 363 | Annotation.getGlobalAnnotations(tsdb, note.getStartTime(), note.getEndTime()) |
| 364 | .joinUninterruptibly(); |
| 365 | if (annotations == null) { |
| 366 | throw new BadRequestException(HttpResponseStatus.NOT_FOUND, |
| 367 | "Unable to locate annotations in storage"); |
| 368 | } |
| 369 | query.sendReply(query.serializer().formatAnnotationsV1(annotations)); |
| 370 | } |
| 371 | |
| 372 | /** |
| 373 | * Parses a query string for a bulk delet request |
no test coverage detected