Autopsy  4.4
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 2011-2014 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;
25 import org.sleuthkit.datamodel.SleuthkitCase;
26 
32 public final class IngestServices {
33 
34  private static IngestServices instance = null;
36 
37  private IngestServices() {
38  }
39 
45  public static synchronized IngestServices getInstance() {
46  if (instance == null) {
47  instance = new IngestServices();
48  }
49  return instance;
50  }
51 
57  public Case getCurrentCase() {
58  return Case.getCurrentCase();
59  }
60 
66  public SleuthkitCase getCurrentSleuthkitCaseDb() {
68  }
69 
78  public Logger getLogger(String moduleDisplayName) {
79  return Logger.getLogger(moduleDisplayName);
80  }
81 
87  public void postMessage(final IngestMessage message) {
88  manager.postIngestMessage(message);
89  }
90 
98  public void fireModuleDataEvent(ModuleDataEvent moduleDataEvent) {
99  IngestManager.getInstance().fireIngestModuleDataEvent(moduleDataEvent);
100  }
101 
110  public void fireModuleContentEvent(ModuleContentEvent moduleContentEvent) {
111  IngestManager.getInstance().fireIngestModuleContentEvent(moduleContentEvent);
112  }
113 
120  public long getFreeDiskSpace() {
121  return manager.getFreeDiskSpace();
122  }
123 
132  public String getConfigSetting(String moduleName, String settingName) {
133  return ModuleSettings.getConfigSetting(moduleName, settingName);
134  }
135 
143  public void setConfigSetting(String moduleName, String settingName, String settingVal) {
144  ModuleSettings.setConfigSetting(moduleName, settingName, settingVal);
145  }
146 
154  public Map<String, String> getConfigSettings(String moduleName) {
155  return ModuleSettings.getConfigSettings(moduleName);
156  }
157 
167  public void setConfigSettings(String moduleName, Map<String, String> settings) {
168  ModuleSettings.setConfigSettings(moduleName, settings);
169  }
170 }
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:161
Map< String, String > getConfigSettings(String moduleName)
void setConfigSetting(String moduleName, String settingName, String settingVal)
static synchronized IngestServices getInstance()

Copyright © 2012-2016 Basis Technology. Generated on: Tue Jun 13 2017
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.