Autopsy  4.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Installer.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2011 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.coreutils;
20 
21 import java.util.logging.Handler;
22 import org.openide.modules.ModuleInstall;
23 import java.util.logging.Level;
24 
28 public class Installer extends ModuleInstall {
29 
30  private static final Logger autopsyLogger = Logger.getLogger(""); //root logger
31  private static Handler logs;
32 
33  private static Installer instance;
34 
35  public synchronized static Installer getDefault() {
36  if (instance == null) {
37  instance = new Installer();
38  }
39  return instance;
40  }
41 
42  private Installer() {
43  super();
44  }
45 
46  @Override
47  public void restored() {
48  autopsyLogger.log(Level.INFO, "Default charset: " + PlatformUtil.getDefaultPlatformCharset()); //NON-NLS
49  autopsyLogger.log(Level.INFO, "Default file encoding: " + PlatformUtil.getDefaultPlatformFileEncoding()); //NON-NLS
50 
51  autopsyLogger.log(Level.INFO, "Java runtime version: " + Version.getJavaRuntimeVersion()); //NON-NLS
52 
53  autopsyLogger.log(Level.INFO, "Netbeans Platform build: " + Version.getNetbeansBuild()); //NON-NLS
54 
55  autopsyLogger.log(Level.INFO, "Application name: " + Version.getName() //NON-NLS
56  + ", version: " + Version.getVersion() + ", build: " + Version.getBuildType()); //NON-NLS NON-NLS
57 
58  autopsyLogger.log(Level.INFO, "os.name: " + System.getProperty("os.name")); //NON-NLS
59  autopsyLogger.log(Level.INFO, "os.arch: " + System.getProperty("os.arch")); //NON-NLS
60  autopsyLogger.log(Level.INFO, "PID: " + PlatformUtil.getPID()); //NON-NLS
61  autopsyLogger.log(Level.INFO, "Process Virtual Memory Used: " + PlatformUtil.getProcessVirtualMemoryUsed()); //NON-NLS
62 
63  }
64 
65  @Override
66  public void uninstalled() {
67  }
68 }
static Version.Type getBuildType()
Definition: Version.java:87
static synchronized long getProcessVirtualMemoryUsed()
synchronized static Logger getLogger(String name)
Definition: Logger.java:161
static synchronized Installer getDefault()
Definition: Installer.java:35

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