1 24 25 package org.objectweb.cjdbc.common.jmx.mbeans; 26 27 import java.util.ArrayList ; 28 import java.util.Hashtable ; 29 import java.util.Map ; 30 31 import org.objectweb.cjdbc.common.exceptions.VirtualDatabaseException; 32 import org.objectweb.cjdbc.common.monitor.backend.BackendStatistics; 33 import org.objectweb.cjdbc.common.shared.DumpInfo; 34 35 42 public interface VirtualDatabaseMBean 43 { 44 52 56 64 void forceEnableBackend(String databaseBackendName) 65 throws VirtualDatabaseException; 66 67 74 void enableBackendFromCheckpoint(String backendName) 75 throws VirtualDatabaseException; 76 77 82 void enableAllBackends() throws VirtualDatabaseException; 83 84 86 93 void enableAllBackendsFromCheckpoint() throws VirtualDatabaseException; 94 95 97 104 void forceDisableBackend(String databaseBackendName) 105 throws VirtualDatabaseException; 106 107 115 void disableBackendWithCheckpoint(String databaseBackendName) 116 throws VirtualDatabaseException; 117 118 123 void disableAllBackends() throws VirtualDatabaseException; 124 125 127 133 void disableAllBackendsWithCheckpoint(String checkpoint) 134 throws VirtualDatabaseException; 135 136 138 145 ArrayList getAllBackendNames() throws VirtualDatabaseException; 146 147 157 void replicateBackend(String backendName, String newBackendName, 158 Map parameters) throws VirtualDatabaseException; 159 160 167 void removeBackend(String backend) throws VirtualDatabaseException; 168 169 177 void transferBackend(String backend, String controllerDestination) 178 throws VirtualDatabaseException; 179 180 184 196 void copyLogFromCheckpoint(String dumpName, String controllerName) 197 throws VirtualDatabaseException; 198 199 208 void deleteLogUpToCheckpoint(String checkpointName) 209 throws VirtualDatabaseException; 210 211 217 void removeCheckpoint(String checkpoint) throws VirtualDatabaseException; 218 219 227 void setBackendLastKnownCheckpoint(String backendName, String checkpoint) 228 throws VirtualDatabaseException; 229 230 236 ArrayList viewCheckpointNames(); 237 238 242 249 String [] getBackuperNames(); 250 251 257 String getDumpFormatForBackuper(String backuperName); 258 259 275 void backupBackend(String backendName, String login, String password, 276 String dumpName, String backuperName, String path, ArrayList tables) 277 throws VirtualDatabaseException; 278 279 286 DumpInfo[] getAvailableDumps() throws VirtualDatabaseException; 287 288 295 void updateDumpPath(String dumpName, String newPath) 296 throws VirtualDatabaseException; 297 298 305 boolean removeDump(String dumpName); 306 307 325 void restoreDumpOnBackend(String databaseBackendName, String login, 326 String password, String dumpName, ArrayList tables) 327 throws VirtualDatabaseException; 328 329 341 void copyDump(String dumpName, String remoteControllerName) 342 throws VirtualDatabaseException; 343 344 359 void transferDump(String dumpName, String remoteControllerName, boolean noCopy) 360 throws VirtualDatabaseException; 361 362 366 373 String getBackendInformation(String backendName) 374 throws VirtualDatabaseException; 375 376 378 388 String getBackendSchema(String backendName) throws VirtualDatabaseException; 389 390 397 String getBackendState(String backendName) throws VirtualDatabaseException; 398 399 401 406 String getXml(); 407 408 412 420 boolean checkAdminAuthentication(String adminLogin, String adminPassword) 421 throws VirtualDatabaseException; 422 423 428 String getVirtualDatabaseName(); 429 430 436 boolean hasRecoveryLog(); 437 438 444 boolean hasResultCache(); 445 446 453 boolean isDistributed(); 454 455 463 void shutdown(int level) throws VirtualDatabaseException; 464 465 473 String [] viewBackendInformation(String backendName) 474 throws VirtualDatabaseException; 475 476 478 486 Hashtable viewGroupBackends() throws VirtualDatabaseException; 487 488 493 String viewOwningController(); 494 495 501 String [][] retrieveBackendsData() throws Exception ; 502 503 505 514 BackendStatistics getBackendStatistics(String backendName) throws Exception ; 515 516 518 526 String [] viewControllerList(); 527 528 533 int getCurrentNbOfThreads(); 534 535 537 543 void cleanMonitoringData() throws VirtualDatabaseException; 544 545 547 554 void setMonitoringToActive(boolean active) throws VirtualDatabaseException; 555 557 } | Popular Tags |