19 package org.sleuthkit.autopsy.ingest;
21 import java.io.Serializable;
22 import java.util.Collections;
23 import java.util.Date;
24 import java.util.List;
29 public final class Snapshot implements Serializable {
42 private final IngestTasksScheduler.IngestJobTasksSnapshot
tasksSnapshot;
51 Snapshot(String dataSourceName,
long jobId,
long jobStartTime, DataSourceIngestPipeline.PipelineModule dataSourceIngestModule,
52 boolean fileIngestRunning, Date fileIngestStartTime,
54 long processedFiles,
long estimatedFilesToProcess,
55 long snapshotTime, IngestTasksScheduler.IngestJobTasksSnapshot
tasksSnapshot) {
56 this.dataSource = dataSourceName;
65 this.cancelledDataSourceModules = cancelledModules;
69 this.snapShotTime = snapshotTime;
79 long getSnapshotTime() {
89 String getDataSource() {
109 long getJobStartTime() {
113 DataSourceIngestPipeline.PipelineModule getDataSourceLevelIngestModule() {
117 boolean getFileIngestIsRunning() {
121 Date getFileIngestStartTime() {
132 return (
double) processedFiles / ((snapShotTime -
jobStartTime) / 1000);
140 long getFilesProcessed() {
150 long getFilesEstimated() {
154 long getRootQueueSize() {
161 long getDirQueueSize() {
168 long getFileQueueSize() {
175 long getDsQueueSize() {
182 long getStreamingQueueSize() {
189 long getRunningListSize() {
196 boolean isCancelled() {
205 IngestJob.CancellationReason getCancellationReason() {
216 List<String> getCancelledDataSourceIngestModules() {
217 return Collections.unmodifiableList(this.cancelledDataSourceModules);
final Date fileIngestStartTime
final boolean fileIngestRunning
transient final List< String > cancelledDataSourceModules
final long estimatedFilesToProcess
transient final IngestJob.CancellationReason jobCancellationReason
final long processedFiles
final IngestTasksScheduler.IngestJobTasksSnapshot tasksSnapshot
transient final boolean jobCancelled
transient final DataSourceIngestPipeline.PipelineModule dataSourceLevelIngestModule
static final long serialVersionUID