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

Inherits org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.

Public Member Functions

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 > dataSourceContent)
 
List< Content > getDataSourceContent ()
 
List< String > getErrorMessages ()
 
DataSourceProcessorResult getResult ()
 

Private Member Functions

 ProcessorCallback (Object monitor)
 

Private Attributes

final List< Content > dataSourceContent = new ArrayList<>()
 
final List< String > errorMessages = new ArrayList<>()
 
final Object monitor
 
DataSourceProcessorResult result
 

Detailed Description

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

Definition at line 60 of file DataSourceProcessorRunner.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.ProcessorCallback ( Object  monitor)
private

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

Parameters
monitorA monitor for the callback to signal when the data source processor completes its processing.

Definition at line 76 of file DataSourceProcessorRunner.java.

References org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.monitor.

Member Function Documentation

void org.sleuthkit.autopsy.corecomponentinterfaces.DataSourceProcessorCallback.done ( DataSourceProcessorResult  result,
List< String >  errList,
List< Content >  newDataSources 
)
inherited
void org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.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 92 of file DataSourceProcessorRunner.java.

References org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.monitor, and org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.result.

Referenced by org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.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.testutils.DataSourceProcessorRunner.ProcessorCallback.doneEDT ( DataSourceProcessorCallback.DataSourceProcessorResult  result,
List< String >  errorMessages,
List< Content >  dataSourceContent 
)

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.
dataSourceContentThe content produced by processing the data source.

Definition at line 114 of file DataSourceProcessorRunner.java.

References org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.done().

List<Content> org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.getDataSourceContent ( )

Gets any data source Content objects produced by the data source processor.

Returns
A list of content objects, possibly empty.

Definition at line 133 of file DataSourceProcessorRunner.java.

References org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.dataSourceContent.

List<String> org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.getErrorMessages ( )

Gets any error messages emitted by the data source processor.

Returns
A list of error messages, possibly empty.

Definition at line 123 of file DataSourceProcessorRunner.java.

References org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.errorMessages.

DataSourceProcessorResult org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.getResult ( )

Gets the result of the data source processor run.

Returns
The result.

Definition at line 142 of file DataSourceProcessorRunner.java.

References org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.result.

Member Data Documentation

final List<Content> org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.dataSourceContent = new ArrayList<>()
private
final List<String> org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.errorMessages = new ArrayList<>()
private
final Object org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.monitor
private
DataSourceProcessorResult org.sleuthkit.autopsy.testutils.DataSourceProcessorRunner.ProcessorCallback.result
private

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

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