public class RegistryConfig extends Object implements IConfigCheck
| 构造器和说明 |
|---|
RegistryConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
check()
检查配置
配置非法时,抛出异常 RpcException
|
void |
close()
关闭链接
|
String |
getAuth()
getter method
|
String |
getConnectstr()
getter method
|
String |
getId()
getter method
|
String |
getNamespace()
getter method
|
int |
getRetry()
getter method
|
int |
getTimeout()
getter method
|
boolean |
isSingleton()
getter method
|
org.apache.curator.framework.CuratorFramework |
obtainZkClient()
获取zkClient
|
void |
setAuth(String auth)
setter method
|
void |
setConnectstr(String connectstr)
setter method
|
void |
setId(String id)
setter method
|
void |
setNamespace(String namespace)
setter method
|
void |
setRetry(int retry)
setter method
|
void |
setSingleton(boolean singleton)
setter method
|
void |
setTimeout(int timeout)
setter method
|
public org.apache.curator.framework.CuratorFramework obtainZkClient()
throws RpcException
CuratorFrameworkExceptionRpcExceptionpublic void close()
public void check()
throws RpcException
IConfigCheckRpcException
check 在接口中 IConfigCheckRpcExceptionpublic String getConnectstr()
connectstrpublic void setConnectstr(String connectstr)
connectstr - the connectstr to setconnectstrpublic int getTimeout()
timeoutpublic void setTimeout(int timeout)
timeout - the timeout to settimeoutpublic int getRetry()
retrypublic void setRetry(int retry)
retry - the retry to setretrypublic boolean isSingleton()
singletonpublic void setSingleton(boolean singleton)
singleton - the singleton to setsingletonpublic void setNamespace(String namespace)
namespace - the namespace to setnamespaceCopyright © 2015 Baifendian Corporation. All rights reserved.