Autopsy  4.6.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 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 import org.sleuthkit.datamodel.SleuthkitCase;
27 
33 public final class IngestServices {
34 
35  private static IngestServices instance = null;
37 
38  private IngestServices() {
39  }
40 
46  public static synchronized IngestServices getInstance() {
47  if (instance == null) {
48  instance = new IngestServices();
49  }
50  return instance;
51  }
52 
60  return Case.getOpenCase();
61  }
62 
69  public SleuthkitCase getCurrentSleuthkitCaseDb() throws NoCurrentCaseException {
71  }
72 
81  public Logger getLogger(String moduleDisplayName) {
82  return Logger.getLogger(moduleDisplayName);
83  }
84 
90  public void postMessage(final IngestMessage message) {
91  manager.postIngestMessage(message);
92  }
93 
101  public void fireModuleDataEvent(ModuleDataEvent moduleDataEvent) {
102  IngestManager.getInstance().fireIngestModuleDataEvent(moduleDataEvent);
103  }
104 
113  public void fireModuleContentEvent(ModuleContentEvent moduleContentEvent) {
114  IngestManager.getInstance().fireIngestModuleContentEvent(moduleContentEvent);
115  }
116 
123  public long getFreeDiskSpace() {
124  return manager.getFreeDiskSpace();
125  }
126 
135  public String getConfigSetting(String moduleName, String settingName) {
136  return ModuleSettings.getConfigSetting(moduleName, settingName);
137  }
138 
146  public void setConfigSetting(String moduleName, String settingName, String settingVal) {
147  ModuleSettings.setConfigSetting(moduleName, settingName, settingVal);
148  }
149 
157  public Map<String, String> getConfigSettings(String moduleName) {
158  return ModuleSettings.getConfigSettings(moduleName);
159  }
160 
170  public void setConfigSettings(String moduleName, Map<String, String> settings) {
171  ModuleSettings.setConfigSettings(moduleName, settings);
172  }
173 }
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 settingVal)
static synchronized IngestServices getInstance()

Copyright © 2012-2016 Basis Technology. Generated on: Mon May 7 2018
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.