19 package org.sleuthkit.autopsy.casemodule;
21 import java.util.List;
22 import java.util.logging.Level;
33 class StreamingAddDataSourceCallbacks
implements AddDataSourceCallbacks {
35 private final Logger logger = Logger.getLogger(StreamingAddDataSourceCallbacks.class.getName());
36 private final IngestStream ingestStream;
45 StreamingAddDataSourceCallbacks(IngestStream stream) {
46 ingestStream = stream;
50 public void onFilesAdded(List<Long> fileObjectIds) {
51 if (ingestStream.wasStopped()) {
56 ingestStream.addFiles(fileObjectIds);
57 }
catch (IngestStreamClosedException ex) {
58 if (!ingestStream.wasStopped()) {
62 logger.log(Level.SEVERE,
"Error adding files to ingest stream - ingest stream is closed");