Autopsy  4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | List of all members
org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback Class Reference

Inherits org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.

Public Member Functions

 AddDataSourceCallback (Case caseForJob, AutoIngestDataSource dataSourceInfo, UUID taskId, Object lock)
 
void done (DataSourceProcessorResult result, List< String > errList, List< Content > newDataSources)
 
void done (DataSourceProcessorCallback.DataSourceProcessorResult result, List< String > errorMessages, List< Content > dataSourceContent)
 
abstract void doneEDT (DataSourceProcessorResult result, List< String > errList, List< Content > newDataSources)
 
void doneEDT (DataSourceProcessorCallback.DataSourceProcessorResult result, List< String > errorMessages, List< Content > dataSources)
 

Private Attributes

final Case caseForJob
 
final AutoIngestDataSource dataSourceInfo
 
final Object lock
 
final UUID taskId
 

Detailed Description

A "callback" that collects the results of running a data source processor on a data source and unblocks the job processing thread when the data source processor finishes running in its own thread.

Definition at line 35 of file AddDataSourceCallback.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.AddDataSourceCallback ( Case  caseForJob,
AutoIngestDataSource  dataSourceInfo,
UUID  taskId,
Object  lock 
)

Constructs a "callback" that collects the results of running a data source processor on a data source and unblocks the job processing thread when the data source processor finishes running in its own thread.

Parameters
caseForJobThe case for the current job.
dataSourceInfoThe data source
taskIdThe task id to associate with ingest job events.
lockThe DSP lock

Definition at line 52 of file AddDataSourceCallback.java.

References org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.caseForJob, org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.dataSourceInfo, org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.lock, and org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.taskId.

Member Function Documentation

void org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.done ( DataSourceProcessorResult  result,
List< String >  errList,
List< Content >  newDataSources 
)
inherited
void org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.done ( DataSourceProcessorCallback.DataSourceProcessorResult  result,
List< String >  errorMessages,
List< Content >  dataSourceContent 
)

Called by the data source processor when it finishes running in its own thread.

Parameters
resultThe result code for the processing of the data source.
errorMessagesAny error messages generated during the processing of the data source.
dataSourceContentThe content produced by processing the data source.

Definition at line 70 of file AddDataSourceCallback.java.

References org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.lock, org.sleuthkit.autopsy.casemodule.Case.notifyDataSourceAdded(), org.sleuthkit.autopsy.casemodule.Case.notifyFailedAddingDataSource(), org.sleuthkit.autopsy.datasourceprocessors.AutoIngestDataSource.setDataSourceProcessorOutput(), and org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.taskId.

Referenced by org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.doneEDT().

abstract void org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.doneEDT ( DataSourceProcessorResult  result,
List< String >  errList,
List< Content >  newDataSources 
)
abstractinherited

Called by a data source processor when it is done adding a data source to the case database, if the default done method has not been overridden.

IMPORTANT: Concrete implementations of DataSourceProcessorCallback should override the done method and provide an implementation of this method that throws an UnsupportedOperationException if the callback SHOULD NOT be done in the EDT.

Parameters
resultResult code.
errListList of error messages, possibly empty.
newDataSourcesA list of the data sources added, empty if critical errors occurred or processing was successfully cancelled.

Referenced by org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.done().

void org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.doneEDT ( DataSourceProcessorCallback.DataSourceProcessorResult  result,
List< String >  errorMessages,
List< Content >  dataSources 
)

Called by the data source processor when it finishes running in its own thread, if that thread is the AWT (Abstract Window Toolkit) event dispatch thread (EDT).

Parameters
resultThe result code for the processing of the data source.
errorMessagesAny error messages generated during the processing of the data source.
dataSourcesThe content produced by processing the data source.

Definition at line 95 of file AddDataSourceCallback.java.

References org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.done().

Member Data Documentation

final Case org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.caseForJob
private
final AutoIngestDataSource org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.dataSourceInfo
private
final Object org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.lock
private
final UUID org.sleuthkit.autopsy.datasourceprocessors.AddDataSourceCallback.taskId
private

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

Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.