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

Public Member Functions

 SearchJobInfo (long jobId, long dataSourceId, List< String > keywordListNames)
 
long getJobId ()
 
long getDataSourceId ()
 
synchronized List< String > getKeywordListNames ()
 
synchronized void addKeywordListName (String keywordListName)
 
synchronized List< Long > currentKeywordResults (Keyword k)
 
synchronized void addKeywordResults (Keyword k, List< Long > resultsIDs)
 
boolean isWorkerRunning ()
 
void setWorkerRunning (boolean flag)
 
synchronized SearchRunner.Searcher getCurrentSearcher ()
 
synchronized void setCurrentSearcher (SearchRunner.Searcher searchRunner)
 
void incrementModuleReferenceCount ()
 
long decrementModuleReferenceCount ()
 
void waitForCurrentWorker () throws InterruptedException
 
void searchNotify ()
 

Private Attributes

final long jobId
 
final long dataSourceId
 
volatile boolean workerRunning
 
List< String > keywordListNames
 
Map< Keyword, List< Long > > currentResults
 
SearchRunner.Searcher currentSearcher
 
AtomicLong moduleReferenceCount = new AtomicLong(0)
 
final Object finalSearchLock = new Object()
 

Detailed Description

Data structure to keep track of keyword lists, current results, and search running status for each jobid

Definition at line 249 of file SearchRunner.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.SearchJobInfo ( long  jobId,
long  dataSourceId,
List< String >  keywordListNames 
)

Member Function Documentation

synchronized void org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.addKeywordListName ( String  keywordListName)

Definition at line 281 of file SearchRunner.java.

synchronized void org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.addKeywordResults ( Keyword  k,
List< Long >  resultsIDs 
)
synchronized List<Long> org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.currentKeywordResults ( Keyword  k)
long org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.decrementModuleReferenceCount ( )
synchronized SearchRunner.Searcher org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.getCurrentSearcher ( )
long org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.getDataSourceId ( )
long org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.getJobId ( )
synchronized List<String> org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.getKeywordListNames ( )
void org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.incrementModuleReferenceCount ( )

Definition at line 311 of file SearchRunner.java.

boolean org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.isWorkerRunning ( )
void org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.searchNotify ( )

Unset workerRunning and wake up thread(s) waiting on finalSearchLock

Definition at line 334 of file SearchRunner.java.

References org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.finalSearchLock.

Referenced by org.sleuthkit.autopsy.keywordsearch.SearchRunner.Searcher.doInBackground().

synchronized void org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.setCurrentSearcher ( SearchRunner.Searcher  searchRunner)
void org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.setWorkerRunning ( boolean  flag)
void org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.waitForCurrentWorker ( ) throws InterruptedException

In case this job still has a worker running, wait for it to finish

Exceptions
InterruptedException

Definition at line 323 of file SearchRunner.java.

References org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.finalSearchLock.

Referenced by org.sleuthkit.autopsy.keywordsearch.SearchRunner.doFinalSearch().

Member Data Documentation

Map<Keyword, List<Long> > org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.currentResults
private

Definition at line 255 of file SearchRunner.java.

SearchRunner.Searcher org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.currentSearcher
private
final long org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.dataSourceId
private
final Object org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.finalSearchLock = new Object()
private
final long org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.jobId
private
List<String> org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.keywordListNames
private
AtomicLong org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.moduleReferenceCount = new AtomicLong(0)
private

Definition at line 257 of file SearchRunner.java.

volatile boolean org.sleuthkit.autopsy.keywordsearch.SearchRunner.SearchJobInfo.workerRunning
private

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

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