Package com.github.ambry.cloud
Class HelixVcrClusterFactory
- java.lang.Object
-
- com.github.ambry.cloud.HelixVcrClusterFactory
-
- All Implemented Interfaces:
com.github.ambry.clustermap.VirtualReplicatorClusterFactory
public class HelixVcrClusterFactory extends java.lang.Object implements com.github.ambry.clustermap.VirtualReplicatorClusterFactory
HelixVcrClusterFactory
to generateHelixVcrCluster
for dynamic partition assignment.
-
-
Constructor Summary
Constructors Constructor Description HelixVcrClusterFactory(com.github.ambry.config.CloudConfig cloudConfig, com.github.ambry.config.ClusterMapConfig clusterMapConfig, com.github.ambry.clustermap.ClusterMap clusterMap, com.github.ambry.account.AccountService accountService, com.github.ambry.config.StoreConfig storeConfig, CloudDestination cloudDestination, com.codahale.metrics.MetricRegistry metricRegistry)
Constructor forHelixVcrClusterFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
com.github.ambry.clustermap.VirtualReplicatorCluster
getVirtualReplicatorCluster()
-
-
-
Constructor Detail
-
HelixVcrClusterFactory
public HelixVcrClusterFactory(com.github.ambry.config.CloudConfig cloudConfig, com.github.ambry.config.ClusterMapConfig clusterMapConfig, com.github.ambry.clustermap.ClusterMap clusterMap, com.github.ambry.account.AccountService accountService, com.github.ambry.config.StoreConfig storeConfig, CloudDestination cloudDestination, com.codahale.metrics.MetricRegistry metricRegistry)
Constructor forHelixVcrClusterFactory
- Parameters:
cloudConfig
-CloudConfig
object.clusterMapConfig
-ClusterMapConfig
object.clusterMap
-ClusterMap
object.accountService
-AccountService
object.storeConfig
-StoreConfig
object.cloudDestination
-CloudDestination
object.metricRegistry
-MetricRegistry
object.
-
-
Method Detail
-
getVirtualReplicatorCluster
public com.github.ambry.clustermap.VirtualReplicatorCluster getVirtualReplicatorCluster() throws java.lang.Exception
- Specified by:
getVirtualReplicatorCluster
in interfacecom.github.ambry.clustermap.VirtualReplicatorClusterFactory
- Throws:
java.lang.Exception
-
close
public void close() throws java.lang.Exception
- Throws:
java.lang.Exception
-
-