Go to the documentation of this file.
19package org.sleuthkit.autopsy.casemodule;
22import java.util.logging.Level;
23import org.sleuthkit.autopsy.coreutils.Logger;
24import org.sleuthkit.autopsy.ingest.IngestStream;
25import org.sleuthkit.autopsy.ingest.IngestStreamClosedException;
26import org.sleuthkit.datamodel.AddDataSourceCallbacks;
33class 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");
Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.