Class RecoveryTestClusterAgentsFactory

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

    public class RecoveryTestClusterAgentsFactory
    extends java.lang.Object
    implements com.github.ambry.clustermap.ClusterAgentsFactory
    A factory class to construct RecoveryTestClusterManager and a no op ClusterParticipant. Only one instance of each type of objects will ever be created by this factory.
    • Constructor Detail

      • RecoveryTestClusterAgentsFactory

        public RecoveryTestClusterAgentsFactory​(com.github.ambry.config.ClusterMapConfig clusterMapConfig,
                                                java.lang.String hardwareLayoutFilePath,
                                                java.lang.String partitionLayoutFilePath)
                                         throws org.json.JSONException
        Create an instance of this class.
        Parameters:
        clusterMapConfig - the ClusterMapConfig to use.
        hardwareLayoutFilePath - the path to the hardware layout file.
        partitionLayoutFilePath - the path to the partition layout file.
        Throws:
        org.json.JSONException - if there is an exception parsing the layout files.
    • Method Detail

      • 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