| 构造器和说明 |
|---|
ServiceInfoHolder(String namespace,
String notifierEventScope,
NacosClientProperties properties) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCacheDir() |
ServiceInfo |
getFailoverServiceInfo(String serviceName,
String groupName,
String clusters) |
ServiceInfo |
getServiceInfo(String serviceName,
String groupName,
String clusters) |
Map<String,ServiceInfo> |
getServiceInfoMap() |
boolean |
isFailoverSwitch() |
ServiceInfo |
processServiceInfo(ServiceInfo serviceInfo)
Process service info.
|
ServiceInfo |
processServiceInfo(String json)
Process service json.
|
void |
shutdown() |
public ServiceInfoHolder(String namespace, String notifierEventScope, NacosClientProperties properties)
public Map<String,ServiceInfo> getServiceInfoMap()
public ServiceInfo getServiceInfo(String serviceName, String groupName, String clusters)
public ServiceInfo processServiceInfo(String json)
json - service jsonpublic ServiceInfo processServiceInfo(ServiceInfo serviceInfo)
serviceInfo - new service infopublic String getCacheDir()
public boolean isFailoverSwitch()
public ServiceInfo getFailoverServiceInfo(String serviceName, String groupName, String clusters)
public void shutdown()
throws NacosException
shutdown 在接口中 CloseableNacosExceptionCopyright © 2018–2024 Alibaba Group. All rights reserved.