Package com.github.ambry.clustermap
Class HelixClusterAgentsFactory
- java.lang.Object
-
- com.github.ambry.clustermap.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 constructHelixClusterManager
andHelixParticipant
. 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HelixClusterManager
getClusterMap()
java.util.List<com.github.ambry.clustermap.ClusterParticipant>
getClusterParticipants()
-
-
-
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
- theClusterMapConfig
associated with this factory.hardwareLayoutFilePath
- unused.partitionLayoutFilePath
- unused.
-
-
Method Detail
-
getClusterMap
public HelixClusterManager getClusterMap() throws java.io.IOException
- Specified by:
getClusterMap
in interfacecom.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 interfacecom.github.ambry.clustermap.ClusterAgentsFactory
- Throws:
java.io.IOException
-
-