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

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

Classes

class  SerializableEventData
 

Public Member Functions

 BlackboardPostEvent (ModuleDataEvent eventData)
 
Object getOldValue ()
 
Object getSource ()
 
SourceType getSourceType ()
 

Private Attributes

transient ModuleDataEvent eventData
 

Static Private Attributes

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

Detailed Description

Event published when new data is posted to the blackboard of a case. The "old" value is a legacy ModuleDataEvent object. The "new" value is null.

Definition at line 41 of file BlackboardPostEvent.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.BlackboardPostEvent ( ModuleDataEvent  eventData)

Constructs an event to be published when new content is added to a case or there is a change a recorded attribute of existing content.

Parameters
eventDataA ModuleDataEvent object containing the data associated with the blackboard post.

Putting a serializable data holding object into oldValue to allow for lazy loading of the ModuleDataEvent object for remote events. This bypasses the issues related to the serialization and de-serialization of BlackboardArtifact objects when the event is published over a network.

Definition at line 54 of file BlackboardPostEvent.java.

References org.sleuthkit.autopsy.ingest.IngestManager.IngestModuleEvent.DATA_ADDED, org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.eventData, org.sleuthkit.autopsy.ingest.ModuleDataEvent.getArtifacts(), org.sleuthkit.autopsy.ingest.ModuleDataEvent.getBlackboardArtifactType(), and org.sleuthkit.autopsy.ingest.ModuleDataEvent.getModuleName().

Member Function Documentation

Object org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.getOldValue ( )

Gets the legacy ModuleDataEvent object associated with this event.

Returns
The ModuleDataEvent.

The eventData 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 ModuleDataEvent object bypasses the issues related to the serialization and de-serialization of BlackboardArtifact 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 80 of file BlackboardPostEvent.java.

References org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.SerializableEventData.artifactIds, org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.SerializableEventData.artifactTypeId, org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.eventData, org.sleuthkit.autopsy.casemodule.Case.getCurrentCaseThrows(), org.sleuthkit.autopsy.casemodule.Case.getSleuthkitCase(), and org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.SerializableEventData.moduleName.

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 ModuleDataEvent org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.eventData
private
final Logger org.sleuthkit.autopsy.ingest.events.BlackboardPostEvent.logger = Logger.getLogger(BlackboardPostEvent.class.getName())
staticprivate

Definition at line 44 of file BlackboardPostEvent.java.

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

Definition at line 43 of file BlackboardPostEvent.java.


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

Copyright © 2012-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.