Autopsy  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent Class Referenceabstract

Inherits org.sleuthkit.autopsy.events.AutopsyEvent, and Serializable.

Inherited by org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisCompletedEvent, and org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisStartedEvent.

Public Member Functions

 DataSourceAnalysisEvent (IngestManager.IngestJobEvent eventType, long ingestJobId, Content dataSource)
 
 DataSourceAnalysisEvent (IngestManager.IngestJobEvent eventType, long ingestJobId, long unused, Content dataSource)
 
Content getDataSource ()
 
long getDataSourceIngestJobId ()
 
long getIngestJobId ()
 
Object getSource ()
 
SourceType getSourceType ()
 

Private Attributes

transient Content dataSource
 
final long dataSourceIngestJobId
 
final long dataSourceObjectId
 
final long ingestJobId
 

Static Private Attributes

static final Logger logger = Logger.getLogger(DataSourceAnalysisEvent.class.getName())
 
static final long serialVersionUID = 1L
 

Detailed Description

A base class for events published in connection with the analysis (ingest) of a data source.

Definition at line 35 of file DataSourceAnalysisEvent.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.DataSourceAnalysisEvent ( IngestManager.IngestJobEvent  eventType,
long  ingestJobId,
Content  dataSource 
)

Constructs an instance of the base class for events published in connection with the analysis (ingest) of a data source.

Parameters
eventTypeThe event type string.
ingestJobIdThe identifier of the ingest job. For a multi-user case, this ID is only unique on the host where the ingest job is running.
dataSourceThe data source.

Definition at line 54 of file DataSourceAnalysisEvent.java.

References org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.dataSource, and org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.ingestJobId.

org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.DataSourceAnalysisEvent ( IngestManager.IngestJobEvent  eventType,
long  ingestJobId,
long  unused,
Content  dataSource 
)

Constructs an instance of the base class for events published in connection with the analysis (ingest) of a data source by an ingest job.

Parameters
eventTypeThe event type string.
ingestJobIdThe identifier of the ingest job. For a multi-user case, this ID is only unique on the host where the ingest job is running.
unusedUnused.
dataSourceThe data source.
Deprecated:
Do not use.

Definition at line 76 of file DataSourceAnalysisEvent.java.

References org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.dataSource.

Member Function Documentation

Content org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.getDataSource ( )

Gets the data source associated with this event.

Returns
The data source or null if there is an error getting the data source from an event published by a remote host.

The dataSource field is set in the constructor, but it is transient so it will become null when the event is serialized for publication over a network. Doing a lazy load of the Content object bypasses the issues related to the serialization and de-serialization of Content objects and may also save database round trips from other hosts since subscribers to this event are often not interested in the event data.

Definition at line 109 of file DataSourceAnalysisEvent.java.

References org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.dataSource, org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), and org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase().

long org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.getDataSourceIngestJobId ( )

Gets the ID of the ingest job. For a multi-user case, this ID is only unique on the host where the ingest job is running.

Returns
The ingest job ID.
Deprecated:
Use getIngestJobId() instead.

Definition at line 99 of file DataSourceAnalysisEvent.java.

References org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.dataSourceIngestJobId.

long org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.getIngestJobId ( )

Gets the ID of the ingest job. For a multi-user case, this ID is only unique on the host where the ingest job is running.

Returns
The ingest job ID.

Definition at line 86 of file DataSourceAnalysisEvent.java.

References org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.ingestJobId.

Object org.sleuthkit.autopsy.events.AutopsyEvent.getSource ( )
inherited

Gets the event source type (local or remote) as a string.

Returns
A string, either "LOCAL" or "REMOTE."

Definition at line 88 of file AutopsyEvent.java.

SourceType org.sleuthkit.autopsy.events.AutopsyEvent.getSourceType ( )
inherited

Member Data Documentation

transient Content org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.dataSource
private
final long org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.dataSourceIngestJobId
private
final long org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.dataSourceObjectId
private

Definition at line 42 of file DataSourceAnalysisEvent.java.

final long org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.ingestJobId
private
final Logger org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.logger = Logger.getLogger(DataSourceAnalysisEvent.class.getName())
staticprivate

Definition at line 38 of file DataSourceAnalysisEvent.java.

final long org.sleuthkit.autopsy.ingest.events.DataSourceAnalysisEvent.serialVersionUID = 1L
staticprivate

Definition at line 37 of file DataSourceAnalysisEvent.java.


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

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