MCPcopy Create free account
hub / github.com/epcdiy/timemachineplus / init

Method init

src/main/java/serviceRun.java:30–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28 final static String targetBkDirName="BACKUPDATABASE";
29 private Random random;
30 public void init()
31 {
32 logger.info("init db...");
33 PropertyConfigurator.configure ( this.getClass().getClassLoader().getResourceAsStream("log4j.properties"));
34 // Set the logger level to Level.INFO
35 logger.setLevel(Level.INFO);
36 mysqlHelper=new MySQLHelper("dbconfig");
37 try {
38 myclient=new HttpClintTool();
39 } catch (Exception e) {
40 e.printStackTrace();
41 }
42 long seed=System.nanoTime();
43 random=new Random(seed);
44 logger.info("using rand seed :"+seed);
45 }
46
47 public void loadBackupRoot() throws SQLException
48 {

Callers 1

mainMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected