Skip to content
11 changes: 11 additions & 0 deletions zookeeper-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ under the License.
<artifactId>metrics-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.helix</groupId>
<artifactId>metadata-store-directory-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.apache.zookeeper</groupId>
<artifactId>zookeeper</artifactId>
Expand Down Expand Up @@ -79,6 +84,12 @@ under the License.
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<resources>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* under the License.
*/

import org.apache.helix.msdcommon.datamodel.MetadataStoreRoutingData;
import org.apache.helix.zookeeper.api.client.RealmAwareZkClient;


Expand All @@ -30,16 +31,25 @@ public interface RealmAwareZkClientFactory {
* Build a RealmAwareZkClient using specified connection config and client config.
* @param connectionConfig
* @param clientConfig
* @param metadataStoreRoutingData
* @return HelixZkClient
*/
// TODO: remove MetadataStoreRoutingData
RealmAwareZkClient buildZkClient(RealmAwareZkClient.RealmAwareZkConnectionConfig connectionConfig,
RealmAwareZkClient.RealmAwareZkClientConfig clientConfig);
RealmAwareZkClient.RealmAwareZkClientConfig clientConfig,
MetadataStoreRoutingData metadataStoreRoutingData);

/**
* Builds a RealmAwareZkClient using specified connection config and default client config.
* @param connectionConfig
* @param metadataStoreRoutingData
* @return RealmAwareZkClient
*/
RealmAwareZkClient buildZkClient(
RealmAwareZkClient.RealmAwareZkConnectionConfig connectionConfig);
// TODO: remove MetadataStoreRoutingData
default RealmAwareZkClient buildZkClient(
RealmAwareZkClient.RealmAwareZkConnectionConfig connectionConfig,
MetadataStoreRoutingData metadataStoreRoutingData) {
return buildZkClient(connectionConfig, new RealmAwareZkClient.RealmAwareZkClientConfig(),
metadataStoreRoutingData);
}
}
Loading