Starts all of the scanners asynchronously and returns the data fetched once all of the scanners have completed. Note that the result may be an exception if one or more of the scanners encountered an exception. The first error will be returned, others will be logged. @return A deferred to wait on for
()
| 267 | * @return A deferred to wait on for results. |
| 268 | */ |
| 269 | public Deferred<SortedMap<byte[], Span>> scan() { |
| 270 | start_time = System.currentTimeMillis(); |
| 271 | int i = 0; |
| 272 | for (final Scanner scanner: scanners) { |
| 273 | new ScannerCB(scanner, i++).scan(); |
| 274 | } |
| 275 | return results; |
| 276 | } |
| 277 | |
| 278 | public Deferred<SortedMap<byte[], HistogramSpan>> scanHistogram() { |
| 279 | start_time = DateTime.currentTimeMillis(); |