Autopsy  3.1
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;
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 
68  }
69 
77  public Logger getLogger(String moduleDisplayName) {
78  return Logger.getLogger(moduleDisplayName);
79  }
80 
86  public void postMessage(final IngestMessage message) {
87  manager.postIngestMessage(message);
88  }
89 
97  public void fireModuleDataEvent(ModuleDataEvent moduleDataEvent) {
98  IngestManager.getInstance().fireIngestModuleDataEvent(moduleDataEvent);
99  }
100 
109  public void fireModuleContentEvent(ModuleContentEvent moduleContentEvent) {
110  IngestManager.getInstance().fireIngestModuleContentEvent(moduleContentEvent);
111  }
112 
119  public long getFreeDiskSpace() {
120  return manager.getFreeDiskSpace();
121  }
122 
130  public String getConfigSetting(String moduleName, String settingName) {
131  return ModuleSettings.getConfigSetting(moduleName, settingName);
132  }
133 
141  public void setConfigSetting(String moduleName, String settingName, String settingVal) {
142  ModuleSettings.setConfigSetting(moduleName, settingName, settingVal);
143  }
144 
151  public Map<String, String> getConfigSettings(String moduleName) {
152  return ModuleSettings.getConfigSettings(moduleName);
153  }
154 
164  public void setConfigSettings(String moduleName, Map<String, String> settings) {
165  ModuleSettings.setConfigSettings(moduleName, settings);
166  }
167 }
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)
Map< String, String > getConfigSettings(String moduleName)
void setConfigSetting(String moduleName, String settingName, String settingVal)
static Logger getLogger(String name)
Definition: Logger.java:131
static synchronized IngestServices getInstance()

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