Autopsy
4.17.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Inherits org.sleuthkit.autopsy.keywordsearchservice.KeywordSearchService, and org.sleuthkit.autopsy.appservices.AutopsyService.
Public Member Functions | |
default void | close () throws IOException |
void | closeCaseResources (CaseContext context) throws AutopsyServiceException |
void | deleteDataSource (Long dataSourceId) throws KeywordSearchServiceException |
void | deleteTextIndex (CaseMetadata metadata) throws KeywordSearchServiceException |
String | getServiceName () |
void | index (Content content) throws TskCoreException |
void | indexArtifact (BlackboardArtifact artifact) throws TskCoreException |
void | openCaseResources (CaseContext context) throws AutopsyServiceException |
void | tryConnect (String host, int port) throws KeywordSearchServiceException |
Static Private Attributes | |
static final String | BAD_IP_ADDRESS_FORMAT = "ioexception occurred when talking to server" |
static final int | IS_REACHABLE_TIMEOUT_MS = 1000 |
static final Logger | logger = Logger.getLogger(SolrSearchService.class.getName()) |
static final String | SERVER_REFUSED_CONNECTION = "server refused connection" |
An implementation of the KeywordSearchService interface that uses Solr for text indexing and search.
Definition at line 58 of file SolrSearchService.java.
|
inherited |
Closes the keyword search service.
IOException | If there is a problem closing the file manager. |
Definition at line 93 of file KeywordSearchService.java.
void org.sleuthkit.autopsy.keywordsearch.SolrSearchService.closeCaseResources | ( | CaseContext | context | ) | throws AutopsyServiceException |
Closes the open core.
context |
Implements org.sleuthkit.autopsy.appservices.AutopsyService.
Definition at line 376 of file SolrSearchService.java.
References org.sleuthkit.autopsy.appservices.AutopsyService.CaseContext.getCase(), org.sleuthkit.autopsy.casemodule.Case.getCaseDirectory(), org.sleuthkit.autopsy.keywordsearch.KeywordSearch.getServer(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().
void org.sleuthkit.autopsy.keywordsearch.SolrSearchService.deleteDataSource | ( | Long | dataSourceId | ) | throws KeywordSearchServiceException |
Deletes a data source from Solr for a case.
dataSourceId | the id of the data source to delete. |
Implements org.sleuthkit.autopsy.keywordsearchservice.KeywordSearchService.
Definition at line 193 of file SolrSearchService.java.
References org.sleuthkit.autopsy.keywordsearch.KeywordSearch.getServer().
void org.sleuthkit.autopsy.keywordsearch.SolrSearchService.deleteTextIndex | ( | CaseMetadata | metadata | ) | throws KeywordSearchServiceException |
Deletes Solr core for a case.
metadata | The CaseMetadata which will have its core deleted. |
Implements org.sleuthkit.autopsy.keywordsearchservice.KeywordSearchService.
Definition at line 216 of file SolrSearchService.java.
References org.sleuthkit.autopsy.coreutils.FileUtil.deleteDir(), org.sleuthkit.autopsy.casemodule.CaseMetadata.getCaseDirectory(), and org.sleuthkit.autopsy.keywordsearch.KeywordSearch.getServer().
String org.sleuthkit.autopsy.keywordsearch.SolrSearchService.getServiceName | ( | ) |
Gets the service name.
Implements org.sleuthkit.autopsy.appservices.AutopsyService.
Definition at line 251 of file SolrSearchService.java.
void org.sleuthkit.autopsy.keywordsearch.SolrSearchService.index | ( | Content | content | ) | throws TskCoreException |
Indexes the given content for keyword search.
IMPORTANT: Currently, there are two correct uses for this code:
1) Indexing an artifact created during while either the file level ingest module pipeline or the first stage data source level ingest module pipeline of an ingest job is running.
2) Indexing a report.
content | The content to index. |
TskCoreException | If there is a problem indexing the content. |
Implements org.sleuthkit.autopsy.keywordsearchservice.KeywordSearchService.
Definition at line 81 of file SolrSearchService.java.
References org.sleuthkit.autopsy.textextractors.TextExtractorFactory.getExtractor(), org.sleuthkit.autopsy.textextractors.TextExtractor.getReader(), and org.sleuthkit.autopsy.textextractors.TextExtractorFactory.getStringsExtractor().
void org.sleuthkit.autopsy.keywordsearch.SolrSearchService.indexArtifact | ( | BlackboardArtifact | artifact | ) | throws TskCoreException |
Adds an artifact to the keyword search text index as a concantenation of all of its attributes.
artifact | The artifact to index. |
org.sleuthkit.datamodel.TskCoreException |
Implements org.sleuthkit.autopsy.keywordsearchservice.KeywordSearchService.
Definition at line 432 of file SolrSearchService.java.
References org.sleuthkit.autopsy.textextractors.TextExtractorFactory.getExtractor(), and org.sleuthkit.autopsy.textextractors.TextExtractor.getReader().
void org.sleuthkit.autopsy.keywordsearch.SolrSearchService.openCaseResources | ( | CaseContext | context | ) | throws AutopsyServiceException |
Creates/opens the Solr core/text index for a case
context | The case context. |
Implements org.sleuthkit.autopsy.appservices.AutopsyService.
Definition at line 273 of file SolrSearchService.java.
References org.sleuthkit.autopsy.appservices.AutopsyService.CaseContext.cancelRequested, org.sleuthkit.autopsy.appservices.AutopsyService.CaseContext.getCase(), org.sleuthkit.autopsy.casemodule.Case.getCaseDirectory(), org.sleuthkit.autopsy.appservices.AutopsyService.CaseContext.getProgressIndicator(), org.sleuthkit.autopsy.keywordsearch.KeywordSearch.getServer(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), and org.sleuthkit.autopsy.progress.ProgressIndicator.progress().
void org.sleuthkit.autopsy.keywordsearch.SolrSearchService.tryConnect | ( | String | host, |
int | port | ||
) | throws KeywordSearchServiceException |
Tries to connect to the keyword search service.
host | The hostname or IP address of the service. |
port | The port used by the service. |
KeywordSearchServiceException | if cannot connect. |
Implements org.sleuthkit.autopsy.keywordsearchservice.KeywordSearchService.
Definition at line 146 of file SolrSearchService.java.
References org.sleuthkit.autopsy.keywordsearch.KeywordSearch.getServer().
|
staticprivate |
Definition at line 60 of file SolrSearchService.java.
|
staticprivate |
Definition at line 62 of file SolrSearchService.java.
|
staticprivate |
Definition at line 63 of file SolrSearchService.java.
|
staticprivate |
Definition at line 61 of file SolrSearchService.java.
Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.