public class ZKConfig extends Object
| Modifier | Constructor and Description |
|---|---|
|
ZKConfig() |
|
ZKConfig(File configFile)
Construct ZKConfig using configuration YAML file.
|
protected |
ZKConfig(String zkServers,
int timeout,
String matchColor,
String mismatchColor,
String jaas) |
| Modifier and Type | Method and Description |
|---|---|
String |
getJaas() |
String |
getMatchColor() |
String |
getMismatchColor() |
int |
getTimeout() |
String |
getZkServers() |
void |
setJaas(String jaas) |
void |
setMatchColor(String matchColor) |
void |
setMismatchColor(String mismatchColor) |
void |
setPropertyJaas()
Set java.security.auth.login.config environment variable
|
void |
setTimeout(int timeout) |
void |
setZkServers(String zkServers) |
public ZKConfig(File configFile) throws com.fasterxml.jackson.core.JsonParseException, com.fasterxml.jackson.databind.JsonMappingException, IOException
configFile - YAML config filecom.fasterxml.jackson.core.JsonParseExceptioncom.fasterxml.jackson.databind.JsonMappingExceptionIOExceptionpublic ZKConfig()
public void setPropertyJaas()
public String getZkServers()
public int getTimeout()
public String getMatchColor()
public String getMismatchColor()
public String getJaas()
public void setZkServers(String zkServers)
public void setTimeout(int timeout)
public void setMatchColor(String matchColor)
public void setMismatchColor(String mismatchColor)
public void setJaas(String jaas)
Copyright © 2020. All rights reserved.