Autopsy  4.18.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Classes | Public Member Functions | Protected Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R > Class Template Reference

Inherits SwingWorker< R, Void >.

Classes

class  DataFetchComponents
 

Public Member Functions

 DataFetchWorker (DataFetchComponents< A, R > components, A args)
 
 DataFetchWorker (DataFetcher< A, R > processor, Consumer< DataFetchResult< R >> resultHandler, A args)
 

Protected Member Functions

doInBackground () throws Exception
 
void done ()
 

Private Attributes

final A args
 
final DataFetcher< A, R > processor
 
final Consumer< DataFetchResult< R > > resultHandler
 

Static Private Attributes

static final Logger logger = Logger.getLogger(DataFetchWorker.class.getName())
 
static final int MAX_INNER_EXCEPTION_DEPTH = 100
 

Detailed Description

A Swing worker that accepts an argument of a data fetcher and a result handler. If the data fetcher throws an InterruptedException, it is treated as a cancellation and not passed to the result handler.

Definition at line 31 of file DataFetchWorker.java.

Constructor & Destructor Documentation

Main constructor for this swing worker.

Parameters
componentsAccepts a components arg which provides a data processor and a results consumer.
argsThe argument to be provided to the data processor.

Definition at line 86 of file DataFetchWorker.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.args, org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.DataFetchComponents< A1, R1 >.getFetcher(), and org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.DataFetchComponents< A1, R1 >.getResultHandler().

org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.DataFetchWorker ( DataFetcher< A, R >  processor,
Consumer< DataFetchResult< R >>  resultHandler,
args 
)

Main constructor for this swing worker.

Parameters
processorThe function that will do the fetching of the data provided the given args. InterruptedException's are treated as cancellations and are not passed to the result handler.
resultHandlerThe ui function that will handle the result of the data processing.
argsThe args provided to the data processor.

Definition at line 101 of file DataFetchWorker.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.args, org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.processor, and org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.resultHandler.

Member Function Documentation

R org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.doInBackground ( ) throws Exception
protected

Member Data Documentation

final Logger org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.logger = Logger.getLogger(DataFetchWorker.class.getName())
staticprivate

Definition at line 72 of file DataFetchWorker.java.

final int org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.MAX_INNER_EXCEPTION_DEPTH = 100
staticprivate
final Consumer<DataFetchResult<R> > org.sleuthkit.autopsy.datasourcesummary.uiutils.DataFetchWorker< A, R >.resultHandler
private

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.