Autopsy  4.6.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
IngestJobContext.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2014 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.ingest;
20 
21 import java.util.List;
22 import org.sleuthkit.datamodel.AbstractFile;
23 import org.sleuthkit.datamodel.Content;
24 
29 public final class IngestJobContext {
30 
31  private final DataSourceIngestJob ingestJob;
32 
33  IngestJobContext(DataSourceIngestJob ingestJob) {
34  this.ingestJob = ingestJob;
35  }
36 
42  public String getExecutionContext() {
43  return this.ingestJob.getExecutionContext();
44  }
45 
51  public Content getDataSource() {
52  return this.ingestJob.getDataSource();
53  }
54 
60  public long getJobId() {
61  return this.ingestJob.getId();
62  }
63 
73  @Deprecated
74  public boolean isJobCancelled() {
75  return this.dataSourceIngestIsCancelled();
76  }
77 
85  public boolean dataSourceIngestIsCancelled() {
86  return this.ingestJob.currentDataSourceIngestModuleIsCancelled() || this.ingestJob.isCancelled();
87  }
88 
96  public boolean fileIngestIsCancelled() {
97  return this.ingestJob.isCancelled();
98  }
99 
106  public boolean processingUnallocatedSpace() {
107  return this.ingestJob.shouldProcessUnallocatedSpace();
108  }
109 
118  @Deprecated
119  public void scheduleFiles(List<AbstractFile> files) {
120  this.addFilesToJob(files);
121  }
122 
129  public void addFilesToJob(List<AbstractFile> files) {
130  this.ingestJob.addFiles(files);
131  }
132 
133 }
void addFilesToJob(List< AbstractFile > files)
void scheduleFiles(List< AbstractFile > files)

Copyright © 2012-2016 Basis Technology. Generated on: Mon May 7 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.