Package com.github.ambry.cloud.azure
Class AzureCloudDestinationFactory
- java.lang.Object
-
- com.github.ambry.cloud.azure.AzureCloudDestinationFactory
-
- All Implemented Interfaces:
CloudDestinationFactory
public class AzureCloudDestinationFactory extends java.lang.Object implements CloudDestinationFactory
Factory for constructingAzureCloudDestination
instances.
-
-
Constructor Summary
Constructors Constructor Description AzureCloudDestinationFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry, com.github.ambry.clustermap.ClusterMap clusterMap)
Constructor forAzureCloudDestinationFactory
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CloudDestination
getCloudDestination()
static AzureReplicationFeed.FeedType
getReplicationFeedType(com.github.ambry.config.VerifiableProperties verifiableProperties)
Derive the replication feed type to use from the type of token factory passed in the config.
-
-
-
Constructor Detail
-
AzureCloudDestinationFactory
public AzureCloudDestinationFactory(com.github.ambry.config.VerifiableProperties verifiableProperties, com.codahale.metrics.MetricRegistry metricRegistry, com.github.ambry.clustermap.ClusterMap clusterMap)
Constructor forAzureCloudDestinationFactory
- Parameters:
verifiableProperties
- properties containing configs.metricRegistry
- metric registry.
-
-
Method Detail
-
getCloudDestination
public CloudDestination getCloudDestination() throws java.lang.IllegalStateException
- Specified by:
getCloudDestination
in interfaceCloudDestinationFactory
- Returns:
- an instance of
CloudDestination
generated by this factory. - Throws:
java.lang.IllegalStateException
- if theCloudDestination
instance cannot be created.
-
getReplicationFeedType
public static AzureReplicationFeed.FeedType getReplicationFeedType(com.github.ambry.config.VerifiableProperties verifiableProperties)
Derive the replication feed type to use from the type of token factory passed in the config.- Parameters:
verifiableProperties
- properties containing configs.- Returns:
AzureReplicationFeed.FeedType
object.
-
-