Example #1
0
  /**
   * Hook that must be called whenever there is an HA mode switch (eg master/slave switch). This
   * must only be called when the database is otherwise inaccessible.
   */
  public void afterModeSwitch() {
    loadSchemaCache();

    // Stop all running transactions and get rid of all pooled transactions, as they will otherwise
    // reference
    // components that have been swapped out during the mode switch.
    kernelModule.kernelTransactions().disposeAll();
  }
Example #2
0
 public ResourceIterator<File> listStoreFiles() throws IOException {
   return kernelModule.fileListing().listStoreFiles();
 }
Example #3
0
 public KernelAPI getKernel() {
   return kernelModule.kernelAPI();
 }