@@ -40,6 +40,7 @@ public class HALeaseManagementModule extends AbstractModule {
4040 private String currentTsoPath = "/current-tso" ;
4141 private String zkCluster = "localhost:2181" ;
4242 private String zkNamespace = "omid" ;
43+ private String zkLoginContextName ;
4344
4445 // ----------------------------------------------------------------------------------------------------------------
4546 // WARNING: Do not remove empty constructor, needed by snake_yaml!
@@ -51,20 +52,20 @@ public HALeaseManagementModule() {
5152
5253 @ VisibleForTesting
5354 public HALeaseManagementModule (long leasePeriodInMs , String tsoLeasePath , String currentTsoPath ,
54- String zkCluster , String zkNamespace ) {
55+ String zkCluster , String zkNamespace , String zkLoginContextName ) {
5556
5657 this .leasePeriodInMs = leasePeriodInMs ;
5758 this .tsoLeasePath = tsoLeasePath ;
5859 this .currentTsoPath = currentTsoPath ;
5960 this .zkCluster = zkCluster ;
6061 this .zkNamespace = zkNamespace ;
62+ this .zkLoginContextName = zkLoginContextName ;
6163
6264 }
6365
6466 @ Override
6567 protected void configure () {
66-
67- install (new ZKModule (zkCluster , zkNamespace ));
68+ install (new ZKModule (zkCluster , zkNamespace , zkLoginContextName ));
6869
6970 }
7071
@@ -133,4 +134,12 @@ public void setZkNamespace(String zkNamespace) {
133134 this .zkNamespace = zkNamespace ;
134135 }
135136
137+ public String getZkLoginContextName () {
138+ return zkLoginContextName ;
139+ }
140+
141+ public void setZkLoginContextName (String zkLoginContextName ) {
142+ this .zkLoginContextName = zkLoginContextName ;
143+ }
144+
136145}
0 commit comments