Autopsy
4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Public Member Functions | |
AutopsyEventPublisher () | |
void | addSubscriber (Set< String > eventNames, PropertyChangeListener subscriber) |
void | addSubscriber (String eventName, PropertyChangeListener subscriber) |
void | closeRemoteEventChannel () |
void | openRemoteEventChannel (String channelName) throws AutopsyEventException |
void | publish (AutopsyEvent event) |
void | publishLocally (AutopsyEvent event) |
void | publishRemotely (AutopsyEvent event) |
void | removeSubscriber (Set< String > eventNames, PropertyChangeListener subscriber) |
void | removeSubscriber (String eventName, PropertyChangeListener subscriber) |
Private Member Functions | |
void | stopRemotePublisher () |
Private Attributes | |
String | currentChannelName |
final LocalEventPublisher | localPublisher |
RemoteEventPublisher | remotePublisher |
Static Private Attributes | |
static final Logger | logger = Logger.getLogger(AutopsyEventPublisher.class.getName()) |
static final int | MAX_REMOTE_EVENT_PUBLISH_TRIES = 1 |
Provides thread-safe support for publishing events to registered subscribers on both this Autopsy node and other Autopsy nodes. Subscribers are constrained to be PropertyChangeListeners to integrate with the legacy use of JavaBeans PropertyChangeEvents and PropertyChangeListeners as an application event system.
Definition at line 37 of file AutopsyEventPublisher.java.
org.sleuthkit.autopsy.events.AutopsyEventPublisher.AutopsyEventPublisher | ( | ) |
Constructs an object for publishing events to registered subscribers on both this Autopsy node and other Autopsy nodes. Communication with other nodes is not turned on by default - call openRemoteEventChannel() after construction.
Definition at line 54 of file AutopsyEventPublisher.java.
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.addSubscriber | ( | Set< String > | eventNames, |
PropertyChangeListener | subscriber | ||
) |
Adds an event subscriber to this publisher.
eventNames | The events the subscriber is interested in. |
subscriber | The subscriber to add. |
Definition at line 99 of file AutopsyEventPublisher.java.
Referenced by org.sleuthkit.autopsy.casemodule.Case.addEventSubscriber(), org.sleuthkit.autopsy.ingest.IngestManager.addIngestJobEventListener(), org.sleuthkit.autopsy.ingest.IngestManager.addIngestModuleEventListener(), org.sleuthkit.autopsy.ingest.IngestManager.addPropertyChangeListener(), and org.sleuthkit.autopsy.core.ServicesMonitor.addSubscriber().
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.addSubscriber | ( | String | eventName, |
PropertyChangeListener | subscriber | ||
) |
Adds an event subscriber to this publisher.
eventName | The event the subscriber is interested in. |
subscriber | The subscriber to add. |
Definition at line 109 of file AutopsyEventPublisher.java.
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.closeRemoteEventChannel | ( | ) |
Closes the event channel used for publishing events to and receiving events from other Autopsy nodes.
Definition at line 88 of file AutopsyEventPublisher.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.stopRemotePublisher().
Referenced by org.sleuthkit.autopsy.casemodule.Case.changeCurrentCase(), and org.sleuthkit.autopsy.events.AutopsyEventPublisher.openRemoteEventChannel().
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.openRemoteEventChannel | ( | String | channelName | ) | throws AutopsyEventException |
Opens the event channel used for publishing events to and receiving events from other Autopsy nodes. Only one channel may be open at a time.
channelName | The name of the event channel. |
AutopsyEventException | if the channel was not opened. |
Definition at line 66 of file AutopsyEventPublisher.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.closeRemoteEventChannel(), and org.sleuthkit.autopsy.core.UserPreferences.getMessageServiceConnectionInfo().
Referenced by org.sleuthkit.autopsy.casemodule.Case.changeCurrentCase(), and org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishRemotely().
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.publish | ( | AutopsyEvent | event | ) |
Publishes an event to this Autopsy node and other Autopsy nodes.
event | The event to publish. |
Definition at line 138 of file AutopsyEventPublisher.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishLocally(), and org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishRemotely().
Referenced by org.sleuthkit.autopsy.casemodule.Case.addReport(), org.sleuthkit.autopsy.casemodule.Case.deleteReports(), org.sleuthkit.autopsy.casemodule.Case.notifyAddingDataSource(), org.sleuthkit.autopsy.casemodule.Case.notifyBlackBoardArtifactTagAdded(), org.sleuthkit.autopsy.casemodule.Case.notifyBlackBoardArtifactTagDeleted(), org.sleuthkit.autopsy.casemodule.Case.notifyContentTagAdded(), org.sleuthkit.autopsy.casemodule.Case.notifyContentTagDeleted(), org.sleuthkit.autopsy.casemodule.Case.notifyDataSourceAdded(), org.sleuthkit.autopsy.casemodule.Case.notifyFailedAddingDataSource(), and org.sleuthkit.autopsy.ingest.IngestManager.PublishEventTask.run().
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishLocally | ( | AutopsyEvent | event | ) |
Publishes an event to this Autopsy node only.
event | The event to publish. |
Definition at line 148 of file AutopsyEventPublisher.java.
Referenced by org.sleuthkit.autopsy.casemodule.Case.changeCurrentCase(), org.sleuthkit.autopsy.events.AutopsyEventPublisher.publish(), and org.sleuthkit.autopsy.core.ServicesMonitor.setServiceStatus().
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishRemotely | ( | AutopsyEvent | event | ) |
Publishes an event to other Autopsy nodes only.
event | The event to publish. |
Definition at line 157 of file AutopsyEventPublisher.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.currentChannelName, org.sleuthkit.autopsy.events.AutopsyEventPublisher.openRemoteEventChannel(), and org.sleuthkit.autopsy.events.AutopsyEventPublisher.stopRemotePublisher().
Referenced by org.sleuthkit.autopsy.events.AutopsyEventPublisher.publish().
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.removeSubscriber | ( | Set< String > | eventNames, |
PropertyChangeListener | subscriber | ||
) |
Removes an event subscriber from this publisher.
eventNames | The events the subscriber is no longer interested in. |
subscriber | The subscriber to remove. |
Definition at line 119 of file AutopsyEventPublisher.java.
Referenced by org.sleuthkit.autopsy.casemodule.Case.removeEventSubscriber(), org.sleuthkit.autopsy.ingest.IngestManager.removeIngestJobEventListener(), org.sleuthkit.autopsy.ingest.IngestManager.removeIngestModuleEventListener(), org.sleuthkit.autopsy.ingest.IngestManager.removePropertyChangeListener(), and org.sleuthkit.autopsy.core.ServicesMonitor.removeSubscriber().
void org.sleuthkit.autopsy.events.AutopsyEventPublisher.removeSubscriber | ( | String | eventName, |
PropertyChangeListener | subscriber | ||
) |
Removes an event subscriber from this publisher.
eventName | The event the subscriber is no longer interested in. |
subscriber | The subscriber to remove. |
Definition at line 129 of file AutopsyEventPublisher.java.
|
private |
Stops the remote event publisher, but does not reset the current channel name.
Definition at line 182 of file AutopsyEventPublisher.java.
Referenced by org.sleuthkit.autopsy.events.AutopsyEventPublisher.closeRemoteEventChannel(), and org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishRemotely().
|
private |
Definition at line 46 of file AutopsyEventPublisher.java.
Referenced by org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishRemotely().
|
private |
Definition at line 44 of file AutopsyEventPublisher.java.
|
staticprivate |
Composed of thread-safe objects.
Definition at line 42 of file AutopsyEventPublisher.java.
|
staticprivate |
Definition at line 43 of file AutopsyEventPublisher.java.
|
private |
Definition at line 45 of file AutopsyEventPublisher.java.
Copyright © 2012-2016 Basis Technology. Generated on: Tue Oct 25 2016
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.