Autopsy  4.8.0
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, long dataSourceIngestJobId, Content dataSource)
 
Content getDataSource ()
 
long getDataSourceIngestJobId ()
 
long getIngestJobId ()
 
Object getSource ()
 
SourceType getSourceType ()
 

Private Attributes

transient Content dataSource
 
final long dataSourceIngestJobId
 
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,
long  dataSourceIngestJobId,
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 string for the subtype.
ingestJobIdThe identifier of the ingest job, specific to this node.
dataSourceIngestJobIdThe identifier of the data source ingest job,specific to this node.
dataSourceThe data source.

Definition at line 54 of file DataSourceAnalysisEvent.java.

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

Member Function Documentation

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

Gets the data source associated with this event.

Returns
The data source.

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 nodes since subscribers to this event are often not interested in the event data.

Definition at line 86 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().

Referenced by org.sleuthkit.autopsy.timeline.ui.ViewFrame.handleAnalysisCompleted().

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

Gets the id of the data source ingest job of which the analysis of this data source is a part.

Returns
The id.

Definition at line 77 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 of which the analysis of this data source is a part.

Returns
The id.

Definition at line 67 of file DataSourceAnalysisEvent.java.

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

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

Gets the source type (local or remote) as a string. This is for clients that do not have access to the AutopsyEvent type, and is necessary because the events package is not currently a public package within the Autopsy-Core NetBeans Module (NBM).

Returns
A string, either "LOCAL" or "REMOTE", as an Object.

Definition at line 82 of file AutopsyEvent.java.

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

Gets the source type (local or remote).

Returns
SourceType The source type of the event, local or remote.

Definition at line 69 of file AutopsyEvent.java.

References org.sleuthkit.autopsy.events.AutopsyEvent.sourceType.

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.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-2018 Basis Technology. Generated on: Thu Oct 4 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.