Autopsy  3.1
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;
24 
29 public final class IngestJobContext {
30 
31  private final DataSourceIngestJob ingestJob;
32 
33  IngestJobContext(DataSourceIngestJob ingestJob) {
34  this.ingestJob = ingestJob;
35  }
36 
43  return this.ingestJob.getDataSource();
44  }
45 
51  public long getJobId() {
52  return this.ingestJob.getId();
53  }
54 
64  @Deprecated
65  public boolean isJobCancelled() {
66  return this.dataSourceIngestIsCancelled();
67  }
68 
76  public boolean dataSourceIngestIsCancelled() {
77  return this.ingestJob.currentDataSourceIngestModuleIsCancelled() || this.ingestJob.isCancelled();
78  }
79 
87  public boolean fileIngestIsCancelled() {
88  return this.ingestJob.isCancelled();
89  }
90 
97  public boolean processingUnallocatedSpace() {
98  return this.ingestJob.shouldProcessUnallocatedSpace();
99  }
100 
108  @Deprecated
109  public void scheduleFiles(List<AbstractFile> files) {
110  this.addFilesToJob(files);
111  }
112 
119  public void addFilesToJob(List<AbstractFile> files) {
120  this.ingestJob.addFiles(files);
121  }
122 
123 }
void addFilesToJob(List< AbstractFile > files)
void scheduleFiles(List< AbstractFile > files)

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.