public class HelixClusterAgentsFactory
extends java.lang.Object
implements com.github.ambry.clustermap.ClusterAgentsFactory
HelixClusterManager
and HelixParticipant
. Only one instance of each
type of objects will ever be created by this factory.Constructor and Description |
---|
HelixClusterAgentsFactory(com.github.ambry.config.ClusterMapConfig clusterMapConfig,
java.lang.String hardwareLayoutFilePath,
java.lang.String partitionLayoutFilePath)
Construct an object of this factory.
|
Modifier and Type | Method and Description |
---|---|
HelixClusterManager |
getClusterMap() |
com.github.ambry.clustermap.HelixParticipant |
getClusterParticipant() |
public HelixClusterAgentsFactory(com.github.ambry.config.ClusterMapConfig clusterMapConfig, java.lang.String hardwareLayoutFilePath, java.lang.String partitionLayoutFilePath)
clusterMapConfig
- the ClusterMapConfig
associated with this factory.hardwareLayoutFilePath
- unused.partitionLayoutFilePath
- unused.public HelixClusterManager getClusterMap() throws java.io.IOException
getClusterMap
in interface com.github.ambry.clustermap.ClusterAgentsFactory
java.io.IOException
public com.github.ambry.clustermap.HelixParticipant getClusterParticipant() throws java.io.IOException
getClusterParticipant
in interface com.github.ambry.clustermap.ClusterAgentsFactory
java.io.IOException