Package com.github.ambry.cloud
Class CloudStorageManager
- java.lang.Object
-
- com.github.ambry.cloud.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)
-
-
-
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 interfacecom.github.ambry.server.StoreManager
-
shutdownBlobStore
public boolean shutdownBlobStore(com.github.ambry.clustermap.PartitionId id)
- Specified by:
shutdownBlobStore
in interfacecom.github.ambry.server.StoreManager
-
getStore
public com.github.ambry.store.Store getStore(com.github.ambry.clustermap.PartitionId id)
- Specified by:
getStore
in interfacecom.github.ambry.server.StoreManager
-
scheduleNextForCompaction
public boolean scheduleNextForCompaction(com.github.ambry.clustermap.PartitionId id)
- Specified by:
scheduleNextForCompaction
in interfacecom.github.ambry.server.StoreManager
-
startBlobStore
public boolean startBlobStore(com.github.ambry.clustermap.PartitionId id)
- Specified by:
startBlobStore
in interfacecom.github.ambry.server.StoreManager
-
controlCompactionForBlobStore
public boolean controlCompactionForBlobStore(com.github.ambry.clustermap.PartitionId id, boolean enabled)
- Specified by:
controlCompactionForBlobStore
in interfacecom.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 interfacecom.github.ambry.server.StoreManager
-
getReplica
public com.github.ambry.clustermap.ReplicaId getReplica(java.lang.String partitionName)
- Specified by:
getReplica
in interfacecom.github.ambry.server.StoreManager
-
getLocalPartitions
public java.util.Collection<com.github.ambry.clustermap.PartitionId> getLocalPartitions()
- Specified by:
getLocalPartitions
in interfacecom.github.ambry.server.StoreManager
-
removeBlobStore
public boolean removeBlobStore(com.github.ambry.clustermap.PartitionId id)
- Specified by:
removeBlobStore
in interfacecom.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 interfacecom.github.ambry.server.StoreManager
-
-