Autopsy
4.20.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Public Member Functions | |
BatchProcessor (int batchSize, long secondsTimeout, Consumer< List< T >> itemsConsumer) | |
synchronized void | add (T item) throws InterruptedException |
synchronized void | flushAndReset () throws InterruptedException |
Private Member Functions | |
synchronized void | asyncProcessBatch () throws InterruptedException |
Private Attributes | |
final BlockingQueue< T > | batchingQueue |
final int | batchSize |
final Consumer< List< T > > | itemsConsumer |
ExecutorService | processingExecutorService = Executors.newSingleThreadExecutor() |
final long | secondsTimeout |
Processes a batch when number of items reaches batchSize or flush. Processing blocks (and subsequently add and flush operations) until previous batch finishes.
Definition at line 39 of file BatchProcessor.java.
com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< T >.BatchProcessor | ( | int | batchSize, |
long | secondsTimeout, | ||
Consumer< List< T >> | itemsConsumer | ||
) |
Definition at line 48 of file BatchProcessor.java.
synchronized void com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< T >.add | ( | T | item | ) | throws InterruptedException |
Definition at line 55 of file BatchProcessor.java.
|
private |
Definition at line 76 of file BatchProcessor.java.
Referenced by com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< FileRecord >.add(), and com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< FileRecord >.flushAndReset().
synchronized void com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< T >.flushAndReset | ( | ) | throws InterruptedException |
Definition at line 62 of file BatchProcessor.java.
|
private |
Definition at line 43 of file BatchProcessor.java.
|
private |
Definition at line 44 of file BatchProcessor.java.
Referenced by com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< FileRecord >.add(), and com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< FileRecord >.BatchProcessor().
|
private |
Definition at line 45 of file BatchProcessor.java.
Referenced by com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< FileRecord >.BatchProcessor().
|
private |
Definition at line 41 of file BatchProcessor.java.
|
private |
Definition at line 46 of file BatchProcessor.java.
Referenced by com.basistech.df.cybertriage.autopsy.malwarescan.BatchProcessor< FileRecord >.BatchProcessor().
Copyright © 2012-2022 Basis Technology. Generated on: Tue Aug 1 2023
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.