public class ServiceInfo extends Object
| 构造器和说明 |
|---|
ServiceInfo() |
ServiceInfo(String key) |
ServiceInfo(String name,
String clusters) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
expired() |
static ServiceInfo |
fromKey(String key)
Get
ServiceInfo from key. |
long |
getCacheMillis() |
String |
getChecksum() |
String |
getClusters() |
String |
getGroupName() |
List<Instance> |
getHosts() |
String |
getJsonFromServer() |
String |
getKey() |
static String |
getKey(String name,
String clusters) |
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 |
setGroupName(String groupName) |
void |
setHosts(List<Instance> hosts) |
void |
setJsonFromServer(String jsonFromServer) |
void |
setLastRefTime(long lastRefTime) |
void |
setName(String name) |
String |
toString() |
boolean |
validate()
Judge whether service info is validate.
|
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 String getGroupName()
public void setGroupName(String groupName)
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 static ServiceInfo fromKey(String key)
ServiceInfo from key.key - key of service infopublic String getChecksum()
public void setChecksum(String checksum)
Copyright © 2018–2020 Alibaba Group. All rights reserved.