Autopsy  4.12.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  }
115 
124  public void fireModuleContentEvent(ModuleContentEvent moduleContentEvent) {
125  IngestManager.getInstance().fireIngestModuleContentEvent(moduleContentEvent);
126  }
127 
135  public long getFreeDiskSpace() {
136  return IngestManager.getInstance().getFreeDiskSpace();
137  }
138 
147  public String getConfigSetting(String moduleName, String settingName) {
148  return ModuleSettings.getConfigSetting(moduleName, settingName);
149  }
150 
158  public void setConfigSetting(String moduleName, String settingName, String setting) {
159  ModuleSettings.setConfigSetting(moduleName, settingName, setting);
160  }
161 
169  public Map<String, String> getConfigSettings(String moduleName) {
170  return ModuleSettings.getConfigSettings(moduleName);
171  }
172 
179  public void setConfigSettings(String moduleName, Map<String, String> settings) {
180  ModuleSettings.setConfigSettings(moduleName, settings);
181  }
182 
190  @Deprecated
191  public SleuthkitCase getCurrentSleuthkitCaseDb() {
193  }
194 
202  @Deprecated
203  public Case getCurrentCase() {
204  return Case.getCurrentCase();
205  }
206 
207 }
static Map< String, String > getConfigSettings(String moduleName)
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)
static String getConfigSetting(String moduleName, String settingName)
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 IngestServices getInstance()

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