Class ClusterConfigurationBucketFactory

  • All Implemented Interfaces:
    BucketFactory

    public final class ClusterConfigurationBucketFactory
    extends Object
    implements BucketFactory
    Factory for objects abstracting buckets in Exasol's BucketFS.
    • Constructor Detail

      • ClusterConfigurationBucketFactory

        public ClusterConfigurationBucketFactory​(BucketFsMonitor monitor,
                                                 String ipAddress,
                                                 BucketFsSerivceConfigurationProvider serviceConfigurationProvider,
                                                 Map<Integer,​Integer> portMappings)
        Create a new instance of a ClusterConfigurationBucketFactory.
        Parameters:
        monitor - BucketFS synchronization monitor
        ipAddress - IP address of the the BucketFS service
        serviceConfigurationProvider - provider for the configuration of BucketFS services
        portMappings - mapping of container internal to exposed port numbers
    • Method Detail

      • getBucket

        public Bucket getBucket​(String serviceName,
                                String bucketName)
        Description copied from interface: BucketFactory
        Get a BucketFS bucket.
        Specified by:
        getBucket in interface BucketFactory
        Parameters:
        serviceName - name of the BucketFS service that hosts the bucket
        bucketName - name of the bucket
        Returns:
        bucket
      • getBucketFromCache

        public Bucket getBucketFromCache​(String cacheKey)
        Returns bucket from cache.
        Parameters:
        cacheKey - cache key
        Returns:
        bucket