Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.testutils.IngestJobRunner Class Reference

Classes

class  IngestJobCompletionListener
 

Static Public Member Functions

static List< IngestModuleErrorrunIngestJob (Collection< Content > dataSources, IngestJobSettings settings) throws InterruptedException
 

Private Member Functions

 IngestJobRunner ()
 

Static Private Attributes

static final Set< IngestManager.IngestJobEvent > INGEST_JOB_EVENTS_OF_INTEREST = EnumSet.of(IngestManager.IngestJobEvent.COMPLETED, IngestManager.IngestJobEvent.CANCELLED)
 

Detailed Description

A utility that runs an ingest job, blocking until the job is completed.

Definition at line 39 of file IngestJobRunner.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.testutils.IngestJobRunner.IngestJobRunner ( )
private

IngestRunner instances cannot be instantiated.

Definition at line 78 of file IngestJobRunner.java.

Member Function Documentation

static List<IngestModuleError> org.sleuthkit.autopsy.testutils.IngestJobRunner.runIngestJob ( Collection< Content >  dataSources,
IngestJobSettings  settings 
) throws InterruptedException
static

Runs an ingest job, blocking until the job is completed.

Parameters
dataSourcesThe data sources for the ingest job.
settingsThe settings for the ingest job
Returns
A list of ingest module start up error messages, empty if the job was started sucessfully.
Exceptions
InterruptedExceptionIf interrupted while wiagin for the ingest job to complete.

Definition at line 55 of file IngestJobRunner.java.

References org.sleuthkit.autopsy.ingest.IngestManager.addIngestJobEventListener(), org.sleuthkit.autopsy.ingest.IngestManager.getInstance(), org.sleuthkit.autopsy.ingest.IngestJobStartResult.getModuleErrors(), and org.sleuthkit.autopsy.testutils.IngestJobRunner.INGEST_JOB_EVENTS_OF_INTEREST.

Referenced by org.sleuthkit.autopsy.testutils.IngestUtils.runIngestJob().

Member Data Documentation

final Set<IngestManager.IngestJobEvent> org.sleuthkit.autopsy.testutils.IngestJobRunner.INGEST_JOB_EVENTS_OF_INTEREST = EnumSet.of(IngestManager.IngestJobEvent.COMPLETED, IngestManager.IngestJobEvent.CANCELLED)
staticprivate

The documentation for this class was generated from the following file:

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