00001
00025
package org.objectweb.cjdbc.common.jmx.mbeans;
00026
00027
import java.util.ArrayList;
00028
import java.util.Hashtable;
00029
import java.util.Map;
00030
00031
import org.objectweb.cjdbc.common.exceptions.BackupException;
00032
import org.objectweb.cjdbc.common.exceptions.OctopusException;
00033
import org.objectweb.cjdbc.common.exceptions.VirtualDatabaseException;
00034
import org.objectweb.cjdbc.common.shared.BackupListener;
00035
00043 public interface
VirtualDatabaseMBean
00044 {
00045
00046
00056
void backupBackendWithCheckpoint(String backendName, String checkpointName,
00057 ArrayList tables)
throws VirtualDatabaseException;
00058
00066 String getBackendInformation(String backendName)
00067
throws VirtualDatabaseException;
00068
00075
boolean hasRecoveryLog();
00076
00085 String[] viewBackendInformation(String backendName)
00086
throws VirtualDatabaseException;
00087
00096
void enableBackend(String databaseBackendName)
00097
throws VirtualDatabaseException;
00098
00106
void enableBackendFromLastCheckpoint(String backendName)
00107
throws VirtualDatabaseException;
00108
00118
void enableBackendFromCheckpoint(String databaseBackendName,
00119 String checkpointName)
throws VirtualDatabaseException;
00120
00128
void disableBackend(String databaseBackendName)
00129
throws VirtualDatabaseException;
00130
00143
void restoreBackendFromBackupCheckpoint(String databaseBackendName,
00144 String checkpointName)
throws VirtualDatabaseException,
BackupException,
00145
OctopusException;
00146
00156
void disableBackendForCheckpoint(String databaseBackendName,
00157 String checkpointName)
throws VirtualDatabaseException;
00158
00159
00160
00166 String getName();
00167
00174 ArrayList viewCheckpointNames();
00175
00183 String getBackendState(String backendName)
throws VirtualDatabaseException;
00184
00192 ArrayList viewAllBackendNames()
throws VirtualDatabaseException;
00193
00202 Hashtable viewGroupBackends()
throws VirtualDatabaseException;
00203
00209
void enableAllBackend()
throws VirtualDatabaseException;
00210
00217
void enableAllBackend(String checkpoint)
throws VirtualDatabaseException;
00218
00227
void enableAllBackendsFromRecovery(String checkpoint)
00228
throws VirtualDatabaseException;
00229
00235
void disableAllBackend()
throws VirtualDatabaseException;
00236
00243
void disableAllBackendForCheckpoint(String checkpoint)
00244
throws VirtualDatabaseException;
00245
00252
void removeCheckpoint(String checkpoint)
throws VirtualDatabaseException;
00253
00262
boolean checkAdminAuthentication(String adminLogin, String adminPassword)
00263
throws VirtualDatabaseException;
00264
00270
void shutdown()
throws VirtualDatabaseException;
00271
00280
void setBackendLastKnownCheckpoint(String backendName, String checkpoint)
00281
throws VirtualDatabaseException;
00282
00288 String viewOwningController();
00289
00297
boolean isDistributed();
00298
00309
void replicateBackend(String backendName, String newBackendName,
00310 Map parameters)
throws VirtualDatabaseException;
00311
00318 String[][] retrieveBackendsData()
throws Exception;
00319
00328 String[] viewControllerList();
00329
00337
void removeBackend(String backend)
throws VirtualDatabaseException;
00338
00347
void transferBackend(String backend, String controllerDestination)
00348
throws VirtualDatabaseException;
00349
00363
void callBackupManager(
boolean backup, String backendName, String checkpoint,
00364 ArrayList tables,
boolean enableAfter,
BackupListener listener)
00365
throws VirtualDatabaseException;
00366
00367 }