public class CloudStorageManager
extends java.lang.Object
implements com.github.ambry.server.StoreManager
Constructor and Description |
---|
CloudStorageManager(com.github.ambry.config.VerifiableProperties properties,
VcrMetrics vcrMetrics,
CloudDestination cloudDestination,
com.github.ambry.clustermap.ClusterMap clusterMap) |
Modifier and Type | Method and 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) |
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) |
public CloudStorageManager(com.github.ambry.config.VerifiableProperties properties, VcrMetrics vcrMetrics, CloudDestination cloudDestination, com.github.ambry.clustermap.ClusterMap clusterMap)
public boolean addBlobStore(com.github.ambry.clustermap.ReplicaId replica)
addBlobStore
in interface com.github.ambry.server.StoreManager
public boolean shutdownBlobStore(com.github.ambry.clustermap.PartitionId id)
shutdownBlobStore
in interface com.github.ambry.server.StoreManager
public com.github.ambry.store.Store getStore(com.github.ambry.clustermap.PartitionId id)
getStore
in interface com.github.ambry.server.StoreManager
public boolean scheduleNextForCompaction(com.github.ambry.clustermap.PartitionId id)
scheduleNextForCompaction
in interface com.github.ambry.server.StoreManager
public boolean startBlobStore(com.github.ambry.clustermap.PartitionId id)
startBlobStore
in interface com.github.ambry.server.StoreManager
public boolean controlCompactionForBlobStore(com.github.ambry.clustermap.PartitionId id, boolean enabled)
controlCompactionForBlobStore
in interface com.github.ambry.server.StoreManager
public java.util.List<com.github.ambry.clustermap.PartitionId> setBlobStoreStoppedState(java.util.List<com.github.ambry.clustermap.PartitionId> partitionIds, boolean markStop)
setBlobStoreStoppedState
in interface com.github.ambry.server.StoreManager
public boolean removeBlobStore(com.github.ambry.clustermap.PartitionId id)
removeBlobStore
in interface com.github.ambry.server.StoreManager
public com.github.ambry.server.ServerErrorCode checkLocalPartitionStatus(com.github.ambry.clustermap.PartitionId partition, com.github.ambry.clustermap.ReplicaId localReplica)
checkLocalPartitionStatus
in interface com.github.ambry.server.StoreManager