Autopsy  4.18.0
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  IngestJobCompletiontListener
 

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 38 of file IngestJobRunner.java.

Constructor & Destructor Documentation

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

IngestRunner instances cannot be instantiated.

Definition at line 77 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 54 of file IngestJobRunner.java.

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

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-2021 Basis Technology. Generated on: Thu Jul 8 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.