KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > daffodilwoods > rmi > interfaces > _RmiServer


1 package com.daffodilwoods.rmi.interfaces;
2
3 import java.rmi.*;
4 import java.util.Properties JavaDoc;
5
6 import com.daffodilwoods.database.resource.*;
7 import java.util.ArrayList JavaDoc;
8
9 public interface _RmiServer extends Remote {
10
11    _RmiConnection getConnection(String JavaDoc databaseName, Properties JavaDoc prop) throws DException, RemoteException;
12
13    _RmiUser getUser(String JavaDoc userName, String JavaDoc password) throws DException, RemoteException;
14
15    String JavaDoc getHostName() throws RemoteException;
16
17    int getPortNumber() throws RemoteException;
18
19    boolean isValidUser(String JavaDoc userName, String JavaDoc password) throws DException, RemoteException;
20
21    _RmiDXAResource getDxaResource() throws DException,RemoteException;
22
23    void shutDown(boolean exit) throws RemoteException;
24
25    void changeHome(String JavaDoc home) throws DException,RemoteException;
26    void addSchedule(String JavaDoc databaseName,String JavaDoc scheduleName, String JavaDoc timeIntervalForBackup,String JavaDoc backupType,String JavaDoc backupPath,String JavaDoc databaseNameForBackup,long lastBackupTime) throws DException,RemoteException ;
27    ArrayList JavaDoc getAllDatabases(String JavaDoc userName) throws DException,RemoteException ;
28    void getInconsistentOnlineBackup(String JavaDoc destination,
29                                         String JavaDoc databaseNameSource,
30                                         String JavaDoc databaseNameDestination,
31                                         boolean overwrite) throws DException,RemoteException;
32    void offlineBackup(String JavaDoc userName,String JavaDoc password, String JavaDoc destination,String JavaDoc databaseNameSource,
33                            String JavaDoc databaseNameDestination, boolean overwrite) throws DException,RemoteException;
34
35    ArrayList JavaDoc getScheduleForDatabase(String JavaDoc databaseName) throws
36             DException,RemoteException;
37
38    void dropSchedule(String JavaDoc scheduleName) throws DException,RemoteException;
39    void restore(String JavaDoc userName, String JavaDoc password,String JavaDoc sourcePath,
40                                                    String JavaDoc databaseNameSource,
41                                                    String JavaDoc databaseNameDestination,
42                                                    boolean overwrite) throws DException, RemoteException ;
43
44    void restoreSaveMode(String JavaDoc oldDBName, String JavaDoc newdbName)
45        throws DException, RemoteException;
46
47 }
48
Popular Tags