public class HostReactor extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HostReactor.UpdateTask |
| Constructor and Description |
|---|
HostReactor(EventDispatcher eventDispatcher,
NamingProxy serverProxy,
String cacheDir) |
HostReactor(EventDispatcher eventDispatcher,
NamingProxy serverProxy,
String cacheDir,
boolean loadCacheAtStart,
int pollingThreadCount) |
| Modifier and Type | Method and Description |
|---|---|
ScheduledFuture<?> |
addTask(HostReactor.UpdateTask task) |
ServiceInfo |
getServiceInfo(String serviceName,
String clusters) |
ServiceInfo |
getServiceInfoDirectlyFromServer(String serviceName,
String clusters) |
Map<String,ServiceInfo> |
getServiceInfoMap() |
ServiceInfo |
processServiceJSON(String json) |
void |
refreshOnly(String serviceName,
String clusters) |
void |
scheduleUpdateIfAbsent(String serviceName,
String clusters) |
void |
updateServiceNow(String serviceName,
String clusters) |
public HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, String cacheDir)
public HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, String cacheDir, boolean loadCacheAtStart, int pollingThreadCount)
public Map<String,ServiceInfo> getServiceInfoMap()
public ScheduledFuture<?> addTask(HostReactor.UpdateTask task)
public ServiceInfo processServiceJSON(String json)
public ServiceInfo getServiceInfoDirectlyFromServer(String serviceName, String clusters) throws NacosException
NacosExceptionpublic ServiceInfo getServiceInfo(String serviceName, String clusters)
Copyright © 2018–2020 Alibaba Group. All rights reserved.