public class ServiceInfo extends Object
| Constructor and Description |
|---|
ServiceInfo() |
ServiceInfo(String key) |
ServiceInfo(String name,
String clusters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
expired() |
static ServiceInfo |
fromKey(String 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() |
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 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)
public String getChecksum()
public void setChecksum(String checksum)
Copyright © 2018–2019 Alibaba Group. All rights reserved.