Exemplo n.º 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();
  }
Exemplo n.º 2
0
 public ResourceIterator<File> listStoreFiles() throws IOException {
   return kernelModule.fileListing().listStoreFiles();
 }
Exemplo n.º 3
0
 public KernelAPI getKernel() {
   return kernelModule.kernelAPI();
 }