| Constructor and Description |
|---|
ServiceInfo() |
ServiceInfo(String key) |
ServiceInfo(String name,
String clusters) |
ServiceInfo(String name,
String clusters,
String env) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
expired() |
long |
getCacheMillis() |
String |
getChecksum() |
String |
getClusters() |
List<Instance> |
getHosts() |
String |
getJsonFromServer() |
String |
getKey() |
static String |
getKey(String name,
String clusters,
String unit) |
static String |
getKey(String name,
String clusters,
String unit,
boolean isAllIPs) |
String |
getKeyEncoded() |
long |
getLastRefTime() |
String |
getName() |
int |
ipCount() |
boolean |
isAllIPs() |
boolean |
isValid() |
void |
setAllIPs(boolean allIPs) |
void |
setCacheMillis(long cacheMillis) |
void |
setChecksum(String checksum) |
void |
setClusters(String clusters) |
void |
setHosts(List<Instance> hosts) |
void |
setJsonFromServer(String jsonFromServer) |
void |
setLastRefTime(long lastRefTime) |
void |
setName(String name) |
String |
toString() |
boolean |
validate() |
public static final String SPLITER
public ServiceInfo()
public ServiceInfo(String key)
public boolean isAllIPs()
public void setAllIPs(boolean allIPs)
public int ipCount()
public boolean expired()
public boolean isValid()
public String getName()
public void setName(String name)
public void setLastRefTime(long lastRefTime)
public long getLastRefTime()
public String getClusters()
public void setClusters(String clusters)
public long getCacheMillis()
public void setCacheMillis(long cacheMillis)
public boolean validate()
public String getJsonFromServer()
public void setJsonFromServer(String jsonFromServer)
public String getKey()
public String getKeyEncoded()
public String getChecksum()
public void setChecksum(String checksum)
Copyright © 2018 Alibaba Group. All rights reserved.