mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-15 01:07:42 +00:00
7332 artifact pipeline work
This commit is contained in:
parent
dbfecb626b
commit
00852a9327
@ -84,13 +84,13 @@ IngestProgressSnapshotPanel.SnapshotsTableModel.colNames.jobID=Job ID
|
|||||||
IngestJobTableModel.colName.jobID=Job ID
|
IngestJobTableModel.colName.jobID=Job ID
|
||||||
IngestJobTableModel.colName.dataSource=Data Source
|
IngestJobTableModel.colName.dataSource=Data Source
|
||||||
IngestJobTableModel.colName.start=Start
|
IngestJobTableModel.colName.start=Start
|
||||||
IngestJobTableModel.colName.numProcessed=Num Processed
|
IngestJobTableModel.colName.numProcessed=Files Processed
|
||||||
IngestJobTableModel.colName.filesPerSec=Files/Sec
|
IngestJobTableModel.colName.filesPerSec=Files/Sec
|
||||||
IngestJobTableModel.colName.inProgress=In Progress
|
IngestJobTableModel.colName.inProgress=In Progress
|
||||||
IngestJobTableModel.colName.filesQueued=Files Queued
|
IngestJobTableModel.colName.filesQueued=Files Queued
|
||||||
IngestJobTableModel.colName.dirQueued=Dir Queued
|
IngestJobTableModel.colName.dirQueued=Dirs Queued
|
||||||
IngestJobTableModel.colName.rootQueued=Root Queued
|
IngestJobTableModel.colName.rootQueued=Roots Queued
|
||||||
IngestJobTableModel.colName.streamingQueued=Streaming Queued
|
IngestJobTableModel.colName.streamingQueued=Streamed Files Queued
|
||||||
IngestJobTableModel.colName.dsQueued=DS Queued
|
IngestJobTableModel.colName.dsQueued=DS Queued
|
||||||
IngestJobTableModel.colName.artifactsQueued=Artifacts Queued
|
IngestJobTableModel.colName.artifactsQueued=Artifacts Queued
|
||||||
ModuleTableModel.colName.module=Module
|
ModuleTableModel.colName.module=Module
|
||||||
|
@ -100,13 +100,13 @@ IngestProgressSnapshotPanel.SnapshotsTableModel.colNames.jobID=Job ID
|
|||||||
IngestJobTableModel.colName.jobID=Job ID
|
IngestJobTableModel.colName.jobID=Job ID
|
||||||
IngestJobTableModel.colName.dataSource=Data Source
|
IngestJobTableModel.colName.dataSource=Data Source
|
||||||
IngestJobTableModel.colName.start=Start
|
IngestJobTableModel.colName.start=Start
|
||||||
IngestJobTableModel.colName.numProcessed=Num Processed
|
IngestJobTableModel.colName.numProcessed=Files Processed
|
||||||
IngestJobTableModel.colName.filesPerSec=Files/Sec
|
IngestJobTableModel.colName.filesPerSec=Files/Sec
|
||||||
IngestJobTableModel.colName.inProgress=In Progress
|
IngestJobTableModel.colName.inProgress=In Progress
|
||||||
IngestJobTableModel.colName.filesQueued=Files Queued
|
IngestJobTableModel.colName.filesQueued=Files Queued
|
||||||
IngestJobTableModel.colName.dirQueued=Dir Queued
|
IngestJobTableModel.colName.dirQueued=Dirs Queued
|
||||||
IngestJobTableModel.colName.rootQueued=Root Queued
|
IngestJobTableModel.colName.rootQueued=Roots Queued
|
||||||
IngestJobTableModel.colName.streamingQueued=Streaming Queued
|
IngestJobTableModel.colName.streamingQueued=Streamed Files Queued
|
||||||
IngestJobTableModel.colName.dsQueued=DS Queued
|
IngestJobTableModel.colName.dsQueued=DS Queued
|
||||||
IngestJobTableModel.colName.artifactsQueued=Artifacts Queued
|
IngestJobTableModel.colName.artifactsQueued=Artifacts Queued
|
||||||
ModuleTableModel.colName.module=Module
|
ModuleTableModel.colName.module=Module
|
||||||
|
@ -678,7 +678,12 @@ final class IngestJobPipeline {
|
|||||||
* GUI.
|
* GUI.
|
||||||
*/
|
*/
|
||||||
if (hasFileIngestModules()) {
|
if (hasFileIngestModules()) {
|
||||||
long filesToProcess = dataSource.accept(new GetFilesCountVisitor());;
|
long filesToProcess;
|
||||||
|
if (files.isEmpty()) {
|
||||||
|
filesToProcess = dataSource.accept(new GetFilesCountVisitor());
|
||||||
|
} else {
|
||||||
|
filesToProcess = files.size();
|
||||||
|
}
|
||||||
synchronized (fileIngestProgressLock) {
|
synchronized (fileIngestProgressLock) {
|
||||||
estimatedFilesToProcess = filesToProcess;
|
estimatedFilesToProcess = filesToProcess;
|
||||||
}
|
}
|
||||||
@ -777,20 +782,22 @@ final class IngestJobPipeline {
|
|||||||
stage = IngestJobPipeline.Stages.FIRST_STAGE;
|
stage = IngestJobPipeline.Stages.FIRST_STAGE;
|
||||||
currentDataSourceIngestPipeline = firstStageDataSourceIngestPipeline;
|
currentDataSourceIngestPipeline = firstStageDataSourceIngestPipeline;
|
||||||
|
|
||||||
/*
|
if (hasFileIngestModules()) {
|
||||||
* Do a count of the files the data source processor has added to
|
/*
|
||||||
* the case database. This estimate will be used for ingest progress
|
* Do a count of the files the data source processor has added
|
||||||
* snapshots and for the file ingest progress bar if running with a
|
* to the case database. This estimate will be used for ingest
|
||||||
* GUI.
|
* progress snapshots and for the file ingest progress bar if
|
||||||
*/
|
* running with a GUI.
|
||||||
long filesToProcess = dataSource.accept(new GetFilesCountVisitor()) - processedFiles;
|
*/
|
||||||
synchronized (fileIngestProgressLock) {
|
long filesToProcess = dataSource.accept(new GetFilesCountVisitor()) - processedFiles;
|
||||||
if (processedFiles <= filesToProcess) {
|
synchronized (fileIngestProgressLock) {
|
||||||
filesToProcess -= processedFiles;
|
if (processedFiles <= filesToProcess) {
|
||||||
}
|
filesToProcess -= processedFiles;
|
||||||
estimatedFilesToProcess = filesToProcess;
|
}
|
||||||
if (doUI && fileIngestProgressBar != null) {
|
estimatedFilesToProcess = filesToProcess;
|
||||||
fileIngestProgressBar.switchToDeterminate((int) estimatedFilesToProcess);
|
if (doUI && fileIngestProgressBar != null) {
|
||||||
|
fileIngestProgressBar.switchToDeterminate((int) estimatedFilesToProcess);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -167,28 +167,19 @@ class IngestProgressSnapshotPanel extends javax.swing.JPanel {
|
|||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
private final String[] columnNames = {NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.jobID"),
|
private final String[] columnNames = {
|
||||||
NbBundle.getMessage(this.getClass(),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.jobID"),
|
||||||
"IngestJobTableModel.colName.dataSource"),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.dataSource"),
|
||||||
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.start"),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.start"),
|
||||||
NbBundle.getMessage(this.getClass(),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.numProcessed"),
|
||||||
"IngestJobTableModel.colName.numProcessed"),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.filesPerSec"),
|
||||||
NbBundle.getMessage(this.getClass(),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.inProgress"),
|
||||||
"IngestJobTableModel.colName.filesPerSec"),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.filesQueued"),
|
||||||
NbBundle.getMessage(this.getClass(),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.dirQueued"),
|
||||||
"IngestJobTableModel.colName.inProgress"),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.rootQueued"),
|
||||||
NbBundle.getMessage(this.getClass(),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.streamingQueued"),
|
||||||
"IngestJobTableModel.colName.filesQueued"),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.dsQueued"),
|
||||||
NbBundle.getMessage(this.getClass(),
|
NbBundle.getMessage(this.getClass(), "IngestJobTableModel.colName.artifactsQueued")};
|
||||||
"IngestJobTableModel.colName.dirQueued"),
|
|
||||||
NbBundle.getMessage(this.getClass(),
|
|
||||||
"IngestJobTableModel.colName.rootQueued"),
|
|
||||||
NbBundle.getMessage(this.getClass(),
|
|
||||||
"IngestJobTableModel.colName.streamingQueued"),
|
|
||||||
NbBundle.getMessage(this.getClass(),
|
|
||||||
"IngestJobTableModel.colName.dsQueued"),
|
|
||||||
NbBundle.getMessage(this.getClass(),
|
|
||||||
"IngestJobTableModel.colName.artifactsQueued")};
|
|
||||||
|
|
||||||
private List<Snapshot> jobSnapshots;
|
private List<Snapshot> jobSnapshots;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user