Autopsy  4.7.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 
108  public void fireModuleDataEvent(ModuleDataEvent moduleDataEvent) {
109  IngestManager.getInstance().fireIngestModuleDataEvent(moduleDataEvent);
110  }
111 
119  public void fireModuleContentEvent(ModuleContentEvent moduleContentEvent) {
120  IngestManager.getInstance().fireIngestModuleContentEvent(moduleContentEvent);
121  }
122 
130  public long getFreeDiskSpace() {
131  return IngestManager.getInstance().getFreeDiskSpace();
132  }
133 
142  public String getConfigSetting(String moduleName, String settingName) {
143  return ModuleSettings.getConfigSetting(moduleName, settingName);
144  }
145 
153  public void setConfigSetting(String moduleName, String settingName, String setting) {
154  ModuleSettings.setConfigSetting(moduleName, settingName, setting);
155  }
156 
164  public Map<String, String> getConfigSettings(String moduleName) {
165  return ModuleSettings.getConfigSettings(moduleName);
166  }
167 
177  public void setConfigSettings(String moduleName, Map<String, String> settings) {
178  ModuleSettings.setConfigSettings(moduleName, settings);
179  }
180 
188  @Deprecated
189  public SleuthkitCase getCurrentSleuthkitCaseDb() {
191  }
192 
200  @Deprecated
201  public Case getCurrentCase() {
202  return Case.getCurrentCase();
203  }
204 
205 }
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-2016 Basis Technology. Generated on: Mon Jun 18 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.