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.DataSourcePipelineModule 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.DataSourcePipelineModule 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 long getArtifactTasksQueueSize() {
203 boolean isCancelled() {
212 IngestJob.CancellationReason getCancellationReason() {
223 List<String> getCancelledDataSourceIngestModules() {
224 return Collections.unmodifiableList(this.cancelledDataSourceModules);
final Date fileIngestStartTime
final boolean fileIngestRunning
transient final List< String > cancelledDataSourceModules
transient final DataSourceIngestPipeline.DataSourcePipelineModule dataSourceLevelIngestModule
final long estimatedFilesToProcess
transient final IngestJob.CancellationReason jobCancellationReason
final long processedFiles
final IngestTasksScheduler.IngestJobTasksSnapshot tasksSnapshot
transient final boolean jobCancelled
static final long serialVersionUID