Class HelixVcrClusterFactory

  • All Implemented Interfaces:
    com.github.ambry.clustermap.VirtualReplicatorClusterFactory

    public class HelixVcrClusterFactory
    extends java.lang.Object
    implements com.github.ambry.clustermap.VirtualReplicatorClusterFactory
    HelixVcrClusterFactory to generate HelixVcrCluster 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 for HelixVcrClusterFactory
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      com.github.ambry.clustermap.VirtualReplicatorCluster getVirtualReplicatorCluster()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 for HelixVcrClusterFactory
        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 interface com.github.ambry.clustermap.VirtualReplicatorClusterFactory
        Throws:
        java.lang.Exception
      • close

        public void close()
                   throws java.lang.Exception
        Throws:
        java.lang.Exception