Autopsy
4.15.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
Classes | |
enum | Service |
class | ServicesMonitorException |
class | ServicesMonitoringTask |
enum | ServiceStatus |
Public Member Functions | |
void | addSubscriber (PropertyChangeListener subscriber) |
void | addSubscriber (Set< String > services, PropertyChangeListener subscriber) |
void | addSubscriber (String service, PropertyChangeListener subscriber) |
String | getServiceStatus (String service) throws ServicesMonitorException |
void | removeSubscriber (PropertyChangeListener subscriber) |
void | removeSubscriber (Set< String > services, PropertyChangeListener subscriber) |
void | removeSubscriber (String service, PropertyChangeListener subscriber) |
void | setServiceStatus (String service, String status, String details) |
Static Public Member Functions | |
static synchronized ServicesMonitor | getInstance () |
Private Member Functions | |
ServicesMonitor () | |
void | checkAllServices () |
void | checkDatabaseConnectionStatus () |
void | checkKeywordSearchServerConnectionStatus () |
void | checkMessagingServerConnectionStatus () |
void | checkServiceStatus (String service) |
Private Attributes | |
final AutopsyEventPublisher | eventPublisher |
final ScheduledThreadPoolExecutor | periodicTasksExecutor |
final ConcurrentHashMap< String, String > | statusByService |
Static Private Attributes | |
static final Set< String > | coreServices = Stream.of(ServicesMonitor.Service.values()).map(Service::toString).collect(Collectors.toSet()) |
static final long | CRASH_DETECTION_INTERVAL_MINUTES = 15 |
static final Logger | logger = Logger.getLogger(ServicesMonitor.class.getName()) |
static final int | NUMBER_OF_PERIODIC_TASK_THREADS = 1 |
static final String | PERIODIC_TASK_THREAD_NAME = "services-monitor-periodic-task-%d" |
static ServicesMonitor | servicesMonitor = new ServicesMonitor() |
Monitors the status of services and publishes events and user notifications when the status of a service changes. The database server, keyword search server, and messaging service are considered to be core services in a collaborative, multi-user case environment. Additional services can provide current status by calling the setServiceStatus() method.
Definition at line 51 of file ServicesMonitor.java.
|
private |
Constructs a services monitor that monitors the status of services and publishes events and user notifications when the status of a service changes.
Start a periodic task to do ongoing service status checks.
Definition at line 112 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.checkAllServices().
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.getInstance().
void org.sleuthkit.autopsy.core.ServicesMonitor.addSubscriber | ( | PropertyChangeListener | subscriber | ) |
Adds a subscriber to service status events for the core services.
subscriber | The subscriber to add. |
Definition at line 208 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.addSubscriber().
Referenced by org.sleuthkit.autopsy.ingest.IngestManager.subscribeToServiceMonitorEvents().
void org.sleuthkit.autopsy.core.ServicesMonitor.addSubscriber | ( | Set< String > | services, |
PropertyChangeListener | subscriber | ||
) |
Adds a subscriber to service status events for a subset of the services known to the services monitor.
services | The services the subscriber is interested in. |
subscriber | The subscriber to add. |
Definition at line 219 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.addSubscriber().
void org.sleuthkit.autopsy.core.ServicesMonitor.addSubscriber | ( | String | service, |
PropertyChangeListener | subscriber | ||
) |
Adds a subscriber to service status events for a specific service known to the services monitor.
service | The service the subscriber is interested in. |
subscriber | The subscriber to add. |
Definition at line 230 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.addSubscriber().
|
private |
Checks the status of the core services in a collaborative, multi-user case environment: the database server, the keyword search server and the messaging service. Publishes a service event and user notification if the status of a service has changed since the last check.
Definition at line 271 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.checkServiceStatus(), and org.sleuthkit.autopsy.core.UserPreferences.getIsMultiUserModeEnabled().
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.ServicesMonitoringTask.run(), and org.sleuthkit.autopsy.core.ServicesMonitor.ServicesMonitor().
|
private |
Performs a database server availability status check.
Definition at line 333 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.DOWN, org.sleuthkit.autopsy.core.UserPreferences.getDatabaseConnectionInfo(), org.sleuthkit.autopsy.core.ServicesMonitor.Service.REMOTE_CASE_DATABASE, org.sleuthkit.autopsy.core.ServicesMonitor.setServiceStatus(), and org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.UP.
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.checkServiceStatus().
|
private |
Performs a keyword search service availability status check.
Definition at line 353 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.DOWN, org.sleuthkit.autopsy.core.UserPreferences.getIndexingServerHost(), org.sleuthkit.autopsy.core.UserPreferences.getIndexingServerPort(), org.sleuthkit.autopsy.core.ServicesMonitor.Service.REMOTE_KEYWORD_SEARCH, org.sleuthkit.autopsy.core.ServicesMonitor.setServiceStatus(), org.sleuthkit.autopsy.keywordsearchservice.KeywordSearchService.tryConnect(), and org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.UP.
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.checkServiceStatus().
|
private |
Performs messaging service availability status check.
Definition at line 378 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.DOWN, org.sleuthkit.autopsy.core.UserPreferences.getMessageServiceConnectionInfo(), org.sleuthkit.autopsy.core.ServicesMonitor.Service.MESSAGING, org.sleuthkit.autopsy.core.ServicesMonitor.setServiceStatus(), org.sleuthkit.autopsy.events.MessageServiceConnectionInfo.tryConnect(), and org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.UP.
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.checkServiceStatus().
|
private |
Performs a core service availability status check.
service | Name of the service to check. |
Definition at line 320 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.checkDatabaseConnectionStatus(), org.sleuthkit.autopsy.core.ServicesMonitor.checkKeywordSearchServerConnectionStatus(), org.sleuthkit.autopsy.core.ServicesMonitor.checkMessagingServerConnectionStatus(), org.sleuthkit.autopsy.core.ServicesMonitor.Service.MESSAGING, org.sleuthkit.autopsy.core.ServicesMonitor.Service.REMOTE_CASE_DATABASE, and org.sleuthkit.autopsy.core.ServicesMonitor.Service.REMOTE_KEYWORD_SEARCH.
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.checkAllServices(), and org.sleuthkit.autopsy.core.ServicesMonitor.getServiceStatus().
|
static |
Gets the services monitor that monitors the status of services and publishes events and user notifications when the status of a service changes.
Definition at line 100 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.servicesMonitor, and org.sleuthkit.autopsy.core.ServicesMonitor.ServicesMonitor().
String org.sleuthkit.autopsy.core.ServicesMonitor.getServiceStatus | ( | String | service | ) | throws ServicesMonitorException |
Get last recorded status for a service.
service | Name of the service. |
ServicesMonitorException | If the service name is unknown to the services monitor. |
Definition at line 182 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.checkServiceStatus().
Referenced by org.sleuthkit.autopsy.ingest.IngestManager.startIngestJob().
void org.sleuthkit.autopsy.core.ServicesMonitor.removeSubscriber | ( | PropertyChangeListener | subscriber | ) |
Removes a subscriber to service status events for the core services.
subscriber | The subscriber to remove. |
Definition at line 239 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.removeSubscriber().
void org.sleuthkit.autopsy.core.ServicesMonitor.removeSubscriber | ( | Set< String > | services, |
PropertyChangeListener | subscriber | ||
) |
Removes a subscriber to service status events for a subset of the services known to the services monitor.
services | The services the subscriber is no longer interested in. |
subscriber | The subscriber to remove. |
Definition at line 250 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.removeSubscriber().
void org.sleuthkit.autopsy.core.ServicesMonitor.removeSubscriber | ( | String | service, |
PropertyChangeListener | subscriber | ||
) |
Adds a subscriber to service status events for a specific service known to the services monitor.
service | The service the subscriber is no longer interested in. |
subscriber | The subscriber to remove. |
Definition at line 261 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.events.AutopsyEventPublisher.removeSubscriber().
void org.sleuthkit.autopsy.core.ServicesMonitor.setServiceStatus | ( | String | service, |
String | status, | ||
String | details | ||
) |
Records the status of a service and publishes a service status event if the current status is different from the previously reported status.
service | Name of the service. |
status | Current status of the service. |
details | Additional status details. |
Definition at line 138 of file ServicesMonitor.java.
References org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.DOWN, org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Notify.error(), org.sleuthkit.autopsy.core.ServicesMonitor.Service.getDisplayName(), org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.Notify.info(), org.sleuthkit.autopsy.events.AutopsyEventPublisher.publishLocally(), and org.sleuthkit.autopsy.core.ServicesMonitor.ServiceStatus.UP.
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.checkDatabaseConnectionStatus(), org.sleuthkit.autopsy.core.ServicesMonitor.checkKeywordSearchServerConnectionStatus(), and org.sleuthkit.autopsy.core.ServicesMonitor.checkMessagingServerConnectionStatus().
|
staticprivate |
Definition at line 87 of file ServicesMonitor.java.
|
staticprivate |
Definition at line 86 of file ServicesMonitor.java.
|
private |
Definition at line 91 of file ServicesMonitor.java.
|
staticprivate |
Definition at line 83 of file ServicesMonitor.java.
|
staticprivate |
Definition at line 85 of file ServicesMonitor.java.
|
staticprivate |
Definition at line 84 of file ServicesMonitor.java.
|
private |
Definition at line 89 of file ServicesMonitor.java.
|
staticprivate |
Definition at line 88 of file ServicesMonitor.java.
Referenced by org.sleuthkit.autopsy.core.ServicesMonitor.getInstance().
|
private |
Definition at line 90 of file ServicesMonitor.java.
Copyright © 2012-2020 Basis Technology. Generated on: Mon Jul 6 2020
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.