1 22 23 package org.continuent.sequoia.common.jmx.mbeans; 24 25 import java.util.ArrayList ; 26 import java.util.List ; 27 import java.util.Map ; 28 29 import org.continuent.sequoia.common.exceptions.VirtualDatabaseException; 30 import org.continuent.sequoia.common.jmx.management.DumpInfo; 31 import org.continuent.sequoia.common.jmx.monitoring.backend.BackendStatistics; 32 33 40 public interface VirtualDatabaseMBean 41 { 42 50 68 void initializeFromBackend(String databaseBackendName, boolean force) 69 throws VirtualDatabaseException; 70 71 82 void initializeFromBackend(String databaseBackendName) 83 throws VirtualDatabaseException; 84 85 89 97 void forceEnableBackend(String databaseBackendName) 98 throws VirtualDatabaseException; 99 100 107 void enableBackendFromCheckpoint(String backendName) 108 throws VirtualDatabaseException; 109 110 117 void forceDisableBackend(String databaseBackendName) 118 throws VirtualDatabaseException; 119 120 128 void disableBackendWithCheckpoint(String databaseBackendName) 129 throws VirtualDatabaseException; 130 131 138 List getAllBackendNames() throws VirtualDatabaseException; 139 140 150 void replicateBackend(String backendName, String newBackendName, 151 Map parameters) throws VirtualDatabaseException; 152 153 161 void transferBackend(String backend, String controllerDestination) 162 throws VirtualDatabaseException; 163 164 168 180 void copyLogFromCheckpoint(String dumpName, String controllerName) 181 throws VirtualDatabaseException; 182 183 192 void deleteLogUpToCheckpoint(String checkpointName) 193 throws VirtualDatabaseException; 194 195 203 void setBackendLastKnownCheckpoint(String backendName, String checkpoint) 204 throws VirtualDatabaseException; 205 206 210 217 String [] getBackuperNames(); 218 219 225 String getDumpFormatForBackuper(String backuperName); 226 227 246 void backupBackend(String backendName, String login, String password, 247 String dumpName, String backuperName, String path, boolean force, 248 ArrayList tables) throws VirtualDatabaseException; 249 250 258 void backupBackend(String backendName, String login, String password, 259 String dumpName, String backuperName, String path, ArrayList tables) 260 throws VirtualDatabaseException; 261 262 269 DumpInfo[] getAvailableDumps() throws VirtualDatabaseException; 270 271 278 void updateDumpPath(String dumpName, String newPath) 279 throws VirtualDatabaseException; 280 281 292 void deleteDump(String dumpName, boolean keepsFile) 293 throws VirtualDatabaseException; 294 295 303 void renameDump(String oldDumpName, String newDumpName) 304 throws VirtualDatabaseException; 305 306 324 void restoreDumpOnBackend(String databaseBackendName, String login, 325 String password, String dumpName, ArrayList tables) 326 throws VirtualDatabaseException; 327 328 343 void transferDump(String dumpName, String remoteControllerName, boolean noCopy) 344 throws VirtualDatabaseException; 345 346 350 357 String getBackendInformation(String backendName) 358 throws VirtualDatabaseException; 359 360 362 367 String getXml(); 368 369 373 385 boolean checkAdminAuthentication(String adminLogin, String adminPassword) 386 throws VirtualDatabaseException; 387 388 394 String getVirtualDatabaseName(); 395 396 405 boolean hasRecoveryLog(); 406 407 416 boolean hasResultCache(); 417 418 425 boolean isDistributed(); 426 427 435 void shutdown(int level) throws VirtualDatabaseException; 436 437 445 String viewOwningController(); 446 447 456 BackendStatistics getBackendStatistics(String backendName) throws Exception ; 457 458 460 470 String [] viewControllerList(); 471 472 478 int getCurrentNbOfThreads(); 479 480 483 493 void setMonitoringToActive(boolean active) throws VirtualDatabaseException; 494 } | Popular Tags |