Autopsy  4.17.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
IngestServices.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2012-2018 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.ingest;
20 
21 import java.util.Map;
26 import org.sleuthkit.datamodel.SleuthkitCase;
27 
32 public final class IngestServices {
33 
34  private static IngestServices instance = null;
35 
41  private IngestServices() {
42  }
43 
51  public static synchronized IngestServices getInstance() {
52  if (instance == null) {
53  instance = new IngestServices();
54  }
55  return instance;
56  }
57 
66  return Case.getCurrentCaseThrows();
67  }
68 
76  public SleuthkitCase getCaseDatabase() throws NoCurrentCaseException {
78  }
79 
88  public Logger getLogger(String moduleDisplayName) {
89  return Logger.getLogger(moduleDisplayName);
90  }
91 
97  public void postMessage(final IngestMessage message) {
98  IngestManager.getInstance().postIngestMessage(message);
99  }
100 
110  @Deprecated
111  public void fireModuleDataEvent(ModuleDataEvent moduleDataEvent) {
112  IngestManager.getInstance().fireIngestModuleDataEvent(moduleDataEvent);
113  }
114 
123  public void fireModuleContentEvent(ModuleContentEvent moduleContentEvent) {
124  IngestManager.getInstance().fireIngestModuleContentEvent(moduleContentEvent);
125  }
126 
134  public long getFreeDiskSpace() {
135  return IngestManager.getInstance().getFreeDiskSpace();
136  }
137 
146  public String getConfigSetting(String moduleName, String settingName) {
147  return ModuleSettings.getConfigSetting(moduleName, settingName);
148  }
149 
157  public void setConfigSetting(String moduleName, String settingName, String setting) {
158  ModuleSettings.setConfigSetting(moduleName, settingName, setting);
159  }
160 
168  public Map<String, String> getConfigSettings(String moduleName) {
169  return ModuleSettings.getConfigSettings(moduleName);
170  }
171 
178  public void setConfigSettings(String moduleName, Map<String, String> settings) {
179  ModuleSettings.setConfigSettings(moduleName, settings);
180  }
181 
189  @Deprecated
190  public SleuthkitCase getCurrentSleuthkitCaseDb() {
192  }
193 
201  @Deprecated
202  public Case getCurrentCase() {
203  return Case.getCurrentCase();
204  }
205 
206 }
static synchronized String getConfigSetting(String moduleName, String settingName)
static synchronized IngestManager getInstance()
Logger getLogger(String moduleDisplayName)
static synchronized void setConfigSetting(String moduleName, String settingName, String settingVal)
void setConfigSettings(String moduleName, Map< String, String > settings)
void postMessage(final IngestMessage message)
void fireModuleDataEvent(ModuleDataEvent moduleDataEvent)
String getConfigSetting(String moduleName, String settingName)
static synchronized void setConfigSettings(String moduleName, Map< String, String > settings)
void fireModuleContentEvent(ModuleContentEvent moduleContentEvent)
synchronized static Logger getLogger(String name)
Definition: Logger.java:124
Map< String, String > getConfigSettings(String moduleName)
void setConfigSetting(String moduleName, String settingName, String setting)
static synchronized Map< String, String > getConfigSettings(String moduleName)
static synchronized IngestServices getInstance()

Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.