Class CloudStorageManager

  • All Implemented Interfaces:
    com.github.ambry.server.StoreManager

    public class CloudStorageManager
    extends java.lang.Object
    implements com.github.ambry.server.StoreManager
    The storage manager that does book keeping for all of the partitions handled by this vcr node.
    • Constructor Summary

      Constructors 
      Constructor Description
      CloudStorageManager​(com.github.ambry.config.VerifiableProperties properties, VcrMetrics vcrMetrics, CloudDestination cloudDestination, com.github.ambry.clustermap.ClusterMap clusterMap)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean addBlobStore​(com.github.ambry.clustermap.ReplicaId replica)  
      com.github.ambry.server.ServerErrorCode checkLocalPartitionStatus​(com.github.ambry.clustermap.PartitionId partition, com.github.ambry.clustermap.ReplicaId localReplica)  
      boolean controlCompactionForBlobStore​(com.github.ambry.clustermap.PartitionId id, boolean enabled)  
      java.util.Collection<com.github.ambry.clustermap.PartitionId> getLocalPartitions()  
      com.github.ambry.clustermap.ReplicaId getReplica​(java.lang.String partitionName)  
      com.github.ambry.store.Store getStore​(com.github.ambry.clustermap.PartitionId id)  
      boolean removeBlobStore​(com.github.ambry.clustermap.PartitionId id)  
      boolean scheduleNextForCompaction​(com.github.ambry.clustermap.PartitionId id)  
      java.util.List<com.github.ambry.clustermap.PartitionId> setBlobStoreStoppedState​(java.util.List<com.github.ambry.clustermap.PartitionId> partitionIds, boolean markStop)  
      boolean shutdownBlobStore​(com.github.ambry.clustermap.PartitionId id)  
      boolean startBlobStore​(com.github.ambry.clustermap.PartitionId id)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CloudStorageManager

        public CloudStorageManager​(com.github.ambry.config.VerifiableProperties properties,
                                   VcrMetrics vcrMetrics,
                                   CloudDestination cloudDestination,
                                   com.github.ambry.clustermap.ClusterMap clusterMap)
    • Method Detail

      • addBlobStore

        public boolean addBlobStore​(com.github.ambry.clustermap.ReplicaId replica)
        Specified by:
        addBlobStore in interface com.github.ambry.server.StoreManager
      • shutdownBlobStore

        public boolean shutdownBlobStore​(com.github.ambry.clustermap.PartitionId id)
        Specified by:
        shutdownBlobStore in interface com.github.ambry.server.StoreManager
      • getStore

        public com.github.ambry.store.Store getStore​(com.github.ambry.clustermap.PartitionId id)
        Specified by:
        getStore in interface com.github.ambry.server.StoreManager
      • scheduleNextForCompaction

        public boolean scheduleNextForCompaction​(com.github.ambry.clustermap.PartitionId id)
        Specified by:
        scheduleNextForCompaction in interface com.github.ambry.server.StoreManager
      • startBlobStore

        public boolean startBlobStore​(com.github.ambry.clustermap.PartitionId id)
        Specified by:
        startBlobStore in interface com.github.ambry.server.StoreManager
      • controlCompactionForBlobStore

        public boolean controlCompactionForBlobStore​(com.github.ambry.clustermap.PartitionId id,
                                                     boolean enabled)
        Specified by:
        controlCompactionForBlobStore in interface com.github.ambry.server.StoreManager
      • setBlobStoreStoppedState

        public java.util.List<com.github.ambry.clustermap.PartitionId> setBlobStoreStoppedState​(java.util.List<com.github.ambry.clustermap.PartitionId> partitionIds,
                                                                                                boolean markStop)
        Specified by:
        setBlobStoreStoppedState in interface com.github.ambry.server.StoreManager
      • getReplica

        public com.github.ambry.clustermap.ReplicaId getReplica​(java.lang.String partitionName)
        Specified by:
        getReplica in interface com.github.ambry.server.StoreManager
      • getLocalPartitions

        public java.util.Collection<com.github.ambry.clustermap.PartitionId> getLocalPartitions()
        Specified by:
        getLocalPartitions in interface com.github.ambry.server.StoreManager
      • removeBlobStore

        public boolean removeBlobStore​(com.github.ambry.clustermap.PartitionId id)
        Specified by:
        removeBlobStore in interface com.github.ambry.server.StoreManager
      • checkLocalPartitionStatus

        public com.github.ambry.server.ServerErrorCode checkLocalPartitionStatus​(com.github.ambry.clustermap.PartitionId partition,
                                                                                 com.github.ambry.clustermap.ReplicaId localReplica)
        Specified by:
        checkLocalPartitionStatus in interface com.github.ambry.server.StoreManager