1 24 25 package org.objectweb.cjdbc.scenario.raidb1.recovery; 26 27 import org.objectweb.cjdbc.scenario.templates.OneHundredTablesRaidb1Template; 28 29 35 public class Raidb1IntensiveBackupScenario 36 extends OneHundredTablesRaidb1Template 37 { 38 private static final String BACKUP_LOGIN = "user"; 39 private static final String BACKUP_PASSWORD = ""; 40 private static final String BACKUPER = "Octopus"; 41 private static final String BACKUP_PATH = "../backup"; 42 43 48 public void testMultipleBackupSessions() throws Exception 49 { 50 long time = System.currentTimeMillis(); 51 String dump = "dump" + time; 52 mainVdb.backupBackend("localhost", BACKUP_LOGIN, BACKUP_PASSWORD, dump, 53 BACKUPER, BACKUP_PATH, null); 54 } 55 56 59 protected void setUp() 60 { 61 try 62 { 63 super.setUp(); 64 cm.loadVirtualDatabases(controller, "myDB", "hsqldb-raidb1.xml"); 65 mainVdb = controller.getVirtualDatabase("myDB"); 66 mainVdb.enableAllBackends(); 67 } 68 catch (Exception e) 69 { 70 e.printStackTrace(); 71 fail("Could not start controller"); 72 tearDown(); 73 } 74 } 75 76 79 protected void tearDown() 80 { 81 super.tearDown(); 82 } 83 84 } | Popular Tags |