| 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 | { |