1 23 24 package org.objectweb.cjdbc.controller.backup; 25 26 import java.io.IOException ; 27 import java.util.ArrayList ; 28 import java.util.Date ; 29 30 import org.objectweb.cjdbc.common.exceptions.BackupException; 31 import org.objectweb.cjdbc.controller.backend.DatabaseBackend; 32 33 42 public interface Backuper 43 { 44 45 49 56 String getDumpFormat(); 57 58 64 String getOptions(); 65 66 72 void setOptions(String options); 73 74 78 93 Date backup(DatabaseBackend backend, String login, String password, 94 String dumpName, String path, ArrayList tables) throws BackupException; 95 96 109 void restore(DatabaseBackend backend, String login, String password, 110 String dumpName, String path, ArrayList tables) throws BackupException; 111 112 116 123 void deleteDump(String path, String dumpName) throws BackupException; 124 125 129 141 void fetchDump(DumpTransferInfo dumpTransferInfo, String path, String dumpName) 142 throws BackupException, IOException ; 143 144 152 DumpTransferInfo setupServer() throws IOException ; 153 154 162 BackupManager getBackupManager(); 163 164 } 165 | Popular Tags |