public class HostReactor extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
HostReactor.UpdateTask |
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_DELAY |
long |
updateHoldInterval |
| Constructor and Description |
|---|
HostReactor(EventDispatcher eventDispatcher,
NamingProxy serverProxy,
String cacheDir,
boolean loadCacheAtStart) |
| Modifier and Type | Method and Description |
|---|---|
ScheduledFuture<?> |
addTask(HostReactor.UpdateTask task) |
ServiceInfo |
getServiceInfo(String serviceName,
String clusters) |
ServiceInfo |
getServiceInfo(String serviceName,
String clusters,
String env) |
ServiceInfo |
getServiceInfo(String serviceName,
String clusters,
String env,
boolean allIPs) |
Map<String,ServiceInfo> |
getServiceInfoMap() |
ServiceInfo |
processServiceJSON(String json) |
void |
refreshOnly(String serviceName,
String clusters,
String env,
boolean allIPs) |
void |
scheduleUpdateIfAbsent(String serviceName,
String clusters,
String env,
boolean allIPs) |
void |
updateService4AllIPNow(String serviceName,
String clusters,
String env) |
void |
updateService4AllIPNow(String serviceName,
String clusters,
String env,
long timeout) |
void |
updateServiceNow(String serviceName,
String clusters,
String env) |
public static final long DEFAULT_DELAY
public long updateHoldInterval
public HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, String cacheDir, boolean loadCacheAtStart)
public Map<String,ServiceInfo> getServiceInfoMap()
public ScheduledFuture<?> addTask(HostReactor.UpdateTask task)
public ServiceInfo processServiceJSON(String json)
public ServiceInfo getServiceInfo(String serviceName, String clusters, String env)
public ServiceInfo getServiceInfo(String serviceName, String clusters)
public ServiceInfo getServiceInfo(String serviceName, String clusters, String env, boolean allIPs)
public void scheduleUpdateIfAbsent(String serviceName, String clusters, String env, boolean allIPs)
public void updateService4AllIPNow(String serviceName, String clusters, String env)
public void updateService4AllIPNow(String serviceName, String clusters, String env, long timeout)
Copyright © 2018 Alibaba Group. All rights reserved.