19package org.sleuthkit.autopsy.events;
21import java.beans.PropertyChangeListener;
22import java.net.URISyntaxException;
24import java.util.logging.Level;
25import javax.annotation.concurrent.GuardedBy;
26import javax.annotation.concurrent.ThreadSafe;
27import jakarta.jms.JMSException;
28import org.sleuthkit.autopsy.core.UserPreferencesException;
29import org.sleuthkit.autopsy.core.UserPreferences;
30import org.sleuthkit.autopsy.coreutils.Logger;
75 }
catch (URISyntaxException | JMSException ex) {
76 String message =
"Failed to open remote event channel";
77 logger.log(Level.SEVERE, message, ex);
80 String message =
"Error accessing messaging service connection info";
81 logger.log(Level.SEVERE, message, ex);
101 public void addSubscriber(Set<String> eventNames, PropertyChangeListener subscriber) {
111 public void addSubscriber(String eventName, PropertyChangeListener subscriber) {
161 boolean published =
false;
172 logger.log(Level.SEVERE, String.format(
"Failed to publish %s using channel %s (tryCount = %s)", event.getPropertyName(),
currentChannelName, tryCount), ex);
188 }
catch (JMSException ex) {
189 logger.log(Level.SEVERE, String.format(
"Error closing remote event publisher for channel %s",
currentChannelName), ex);
static MessageServiceConnectionInfo getMessageServiceConnectionInfo()
synchronized static Logger getLogger(String name)
synchronized void closeRemoteEventChannel()
synchronized void publishRemotely(AutopsyEvent event)
static final Logger logger
void publishLocally(AutopsyEvent event)
final LocalEventPublisher localPublisher
void addSubscriber(Set< String > eventNames, PropertyChangeListener subscriber)
RemoteEventPublisher remotePublisher
synchronized void openRemoteEventChannel(String channelName)
void addSubscriber(String eventName, PropertyChangeListener subscriber)
void removeSubscriber(String eventName, PropertyChangeListener subscriber)
synchronized void stopRemotePublisher()
String currentChannelName
static final int MAX_REMOTE_EVENT_PUBLISH_TRIES
void removeSubscriber(Set< String > eventNames, PropertyChangeListener subscriber)
void publish(AutopsyEvent event)