Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
AutoIngestDataSource.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011-2019 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.datasourceprocessors;
20 
21 import java.nio.file.Path;
22 import java.util.ArrayList;
23 import java.util.List;
24 import javax.annotation.concurrent.ThreadSafe;
26 import org.sleuthkit.datamodel.Content;
27 
28 @ThreadSafe
29 public class AutoIngestDataSource {
30 
31  private final String deviceId;
32  private final Path path;
34  private List<String> errorMessages;
35  private List<Content> content;
36 
37  public AutoIngestDataSource(String deviceId, Path path) {
38  this.deviceId = deviceId;
39  this.path = path;
40  }
41 
42  public String getDeviceId() {
43  return deviceId;
44  }
45 
46  public Path getPath() {
47  return this.path;
48  }
49 
50  public synchronized void setDataSourceProcessorOutput(DataSourceProcessorResult result, List<String> errorMessages, List<Content> content) {
51  this.resultCode = result;
52  this.errorMessages = new ArrayList<>(errorMessages);
53  this.content = new ArrayList<>(content);
54  }
55 
57  return resultCode;
58  }
59 
60  public synchronized List<String> getDataSourceProcessorErrorMessages() {
61  return new ArrayList<>(errorMessages);
62  }
63 
64  public synchronized List<Content> getContent() {
65  return new ArrayList<>(content);
66  }
67 
68 }
synchronized DataSourceProcessorResult getResultDataSourceProcessorResultCode()
synchronized void setDataSourceProcessorOutput(DataSourceProcessorResult result, List< String > errorMessages, List< Content > content)

Copyright © 2012-2022 Basis Technology. Generated on: Thu Sep 29 2022
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.