Class HelixClusterAgentsFactory

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

    public class HelixClusterAgentsFactory
    extends java.lang.Object
    implements com.github.ambry.clustermap.ClusterAgentsFactory
    A factory class to construct HelixClusterManager and HelixParticipant. Only one instance of each type of objects will ever be created by this factory.
    • Constructor Summary

      Constructors 
      Constructor Description
      HelixClusterAgentsFactory​(com.github.ambry.config.ClusterMapConfig clusterMapConfig, java.lang.String hardwareLayoutFilePath, java.lang.String partitionLayoutFilePath)
      Construct an object of this factory.
    • Constructor Detail

      • HelixClusterAgentsFactory

        public HelixClusterAgentsFactory​(com.github.ambry.config.ClusterMapConfig clusterMapConfig,
                                         java.lang.String hardwareLayoutFilePath,
                                         java.lang.String partitionLayoutFilePath)
        Construct an object of this factory.
        Parameters:
        clusterMapConfig - the ClusterMapConfig associated with this factory.
        hardwareLayoutFilePath - unused.
        partitionLayoutFilePath - unused.
    • Method Detail

      • getClusterMap

        public HelixClusterManager getClusterMap()
                                          throws java.io.IOException
        Specified by:
        getClusterMap in interface com.github.ambry.clustermap.ClusterAgentsFactory
        Throws:
        java.io.IOException
      • getClusterParticipants

        public java.util.List<com.github.ambry.clustermap.ClusterParticipant> getClusterParticipants()
                                                                                              throws java.io.IOException
        Specified by:
        getClusterParticipants in interface com.github.ambry.clustermap.ClusterAgentsFactory
        Throws:
        java.io.IOException