1 package com.daffodilwoods.daffodildb.server.serversystem; 2 3 import java.util.*; 4 5 import com.daffodilwoods.database.resource.*; 6 7 public interface _Server { 8 9 public static String browserUser = "DAFFODIL"; 10 public static String browserPassword = ""; 11 public static final String DAFFODILDB_HOME = "daffodilDB_home"; 12 13 public static final String UNICODESUPPORT = "UNICODESUPPORT"; public static final String MULTIFILESUPPORT = "MULTIFILESUPPORT" ; public static final String INITIALFILESIZE = "INITIALFILESIZE"; public static final String INCREMENTFACTOR = "INCREMENTFACTOR"; public static final String ENCRYPTIONSUPPORT = "ENCRYPTIONSUPPORT"; public static final String ENCRYPTIONALGO = "ENCRYPTIONALGO"; public static final String ENCRYPTIONKEY = "ENCRYPTIONKEY"; public static final String CLUSTERSIZE = "CLUSTERSIZE"; public static final boolean ISONEDOLLARDB = true; 22 23 public static final String USER = "USER"; 24 public static final String PASSWORD = "PASSWORD"; 25 public static final String CREATE = "CREATE"; 26 public static final String ISCREATED = "ISCREATED"; 27 public static final String CONSTRAINTCHECKING = "CONSTRAINT_CHECKING"; 28 public static final String XID = "XID"; 29 public static final String VERBOSE = "VERBOSE"; 30 public static final String SCHEMA = "SCHEMA"; 31 public static final String READONLY = "READONLY"; 32 33 public static final String [] DAFFODILDBPROPERTIES = new String [] { 34 DAFFODILDB_HOME, MULTIFILESUPPORT, UNICODESUPPORT, INITIALFILESIZE, 35 INCREMENTFACTOR, ENCRYPTIONSUPPORT, ENCRYPTIONALGO, ENCRYPTIONKEY, 36 CLUSTERSIZE, USER, PASSWORD, CREATE, ISCREATED, CONSTRAINTCHECKING, XID, 37 VERBOSE,SCHEMA,READONLY}; 38 39 _Connection getConnection(String databaseName, Properties prop) throws DException; 40 _DXAResource getDxaResource() throws DException; 41 _User getUser(String userName, String password) throws DException; 42 String getHostName()throws DException; 43 int getPortNumber()throws DException; 44 boolean isValidUser(String userName, String password) throws DException; 45 void changeHome(String home) throws DException; 47 void addSchedule(String databaseName,String scheduleName, String timeIntervalForBackup,String backupType,String backupPath,String databaseNameForBackup,long lastBackupTime) throws DException ; 48 ArrayList getAllDatabases(String userName) throws DException ; 49 void getInconsistentOnlineBackup(String destination, 50 String databaseNameSource, 51 String databaseNameDestination, 52 boolean overwrite) throws DException; 53 void offlineBackup(String userName,String password,String destination,String databaseNameSource, 54 String databaseNameDestination, boolean overwrite) throws DException; 55 56 ArrayList getScheduleForDatabase(String databaseName) throws 57 DException; 58 59 void dropSchedule(String scheduleName) throws DException; 60 void restore(String userName, String password,String sourcePath, 61 String databaseNameSource, 62 String databaseNameDestination, 63 boolean overwrite) throws DException ; 64 65 void restoreSaveMode(String oldDBName, String newdbName) 66 throws DException; 67 } 68 | Popular Tags |