Class TransactionBoundStorageCluster

java.lang.Object
com.apple.foundationdb.relational.transactionbound.TransactionBoundStorageCluster
All Implemented Interfaces:
StorageCluster

@API(EXPERIMENTAL) public class TransactionBoundStorageCluster extends Object implements StorageCluster
A thin implementation of StorageCluster creates a new TransactionBoundDatabase when loadDatabase(URI, Options) is called.
  • Constructor Details

    • TransactionBoundStorageCluster

      public TransactionBoundStorageCluster(@Nullable RelationalPlanCache planCache)
  • Method Details

    • loadDatabase

      @Nullable public RelationalDatabase loadDatabase(@Nonnull URI url, @Nonnull com.apple.foundationdb.relational.api.Options connOptions) throws com.apple.foundationdb.relational.api.exceptions.RelationalException
      Description copied from interface: StorageCluster
      Load the specified database, if it is located within this cluster. If the specified database does not exist in this cluster, null is returned. //TODO(bfines) ensure implementations actually hold to that spec.
      Specified by:
      loadDatabase in interface StorageCluster
      Parameters:
      url - the path to the database of interest.
      connOptions - options to use when connecting
      Returns:
      the Database at the specified location, or null if no such database exist within this cluster.
      Throws:
      com.apple.foundationdb.relational.api.exceptions.RelationalException - if something goes wrong.
    • getTransactionManager

      public TransactionManager getTransactionManager()
      Description copied from interface: StorageCluster
      Get the transaction manager for this cluster.
      Specified by:
      getTransactionManager in interface StorageCluster
      Returns:
      the transaction manager for this cluster;