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

Public Member Functions

synchronized void cancelRunning ()
 
synchronized boolean isRunning ()
 
synchronized void submit (List<?extends SwingWorker<?,?>> submittedWorkers)
 

Private Attributes

final ExecutorService executorService = Executors.newFixedThreadPool(1)
 
List< Future<?> > futures = Collections.emptyList()
 
List<?extends SwingWorker<?,?> > workers = Collections.emptyList()
 

Detailed Description

Runs a list of swing workers in sequential order. Also, provides the ability to reset or cancel a run.

Based on: https://stackoverflow.com/questions/31580805/java-swingworker-one-after-another-and-update-gui

Definition at line 37 of file SwingWorkerSequentialExecutor.java.

Member Function Documentation

synchronized void org.sleuthkit.autopsy.datasourcesummary.uiutils.SwingWorkerSequentialExecutor.cancelRunning ( )
synchronized boolean org.sleuthkit.autopsy.datasourcesummary.uiutils.SwingWorkerSequentialExecutor.isRunning ( )

Returns whether or not any of the workers provided are still running.

Returns
Whether or not any of the submitted workers are still running.

Definition at line 80 of file SwingWorkerSequentialExecutor.java.

synchronized void org.sleuthkit.autopsy.datasourcesummary.uiutils.SwingWorkerSequentialExecutor.submit ( List<?extends SwingWorker<?,?>>  submittedWorkers)

Cancels currently running operations and starts running the new list of swing workers.

Parameters
submittedWorkersThe list of submitted swing workers.

Definition at line 49 of file SwingWorkerSequentialExecutor.java.

References org.sleuthkit.autopsy.datasourcesummary.uiutils.SwingWorkerSequentialExecutor.cancelRunning().

Member Data Documentation

final ExecutorService org.sleuthkit.autopsy.datasourcesummary.uiutils.SwingWorkerSequentialExecutor.executorService = Executors.newFixedThreadPool(1)
private

Definition at line 39 of file SwingWorkerSequentialExecutor.java.

List<Future<?> > org.sleuthkit.autopsy.datasourcesummary.uiutils.SwingWorkerSequentialExecutor.futures = Collections.emptyList()
private

Definition at line 41 of file SwingWorkerSequentialExecutor.java.

List<? extends SwingWorker<?, ?> > org.sleuthkit.autopsy.datasourcesummary.uiutils.SwingWorkerSequentialExecutor.workers = Collections.emptyList()
private

Definition at line 40 of file SwingWorkerSequentialExecutor.java.


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.