public class ProviderInfo extends Object implements Serializable
| 构造器和说明 |
|---|
ProviderInfo()
Instantiates a new Provider.
|
ProviderInfo(String host,
int port)
Instantiates a new Provider.
|
ProviderInfo(String host,
int port,
String originUrl)
Instantiates a new Provider.
|
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
equals(Object o) |
String |
getAttr(String key)
得到属性值,先去动态属性,再取静态属性
|
Object |
getDynamicAttr(String dynamicAttrKey)
gets dynamic attribute.
|
ConcurrentHashMap<String,Object> |
getDynamicAttrs()
Gets dynamic attribute.
|
String |
getHost()
Gets host.
|
String |
getOriginUrl()
Gets origin url.
|
String |
getPath()
Gets path.
|
int |
getPort()
Gets port.
|
String |
getProtocolType()
Gets protocol type.
|
int |
getRpcVersion()
Gets sofa version.
|
String |
getSerializationType()
Gets serialization type.
|
String |
getStaticAttr(String staticAttrKey)
gets static attribute.
|
ConcurrentHashMap<String,String> |
getStaticAttrs()
Gets static attribute.
|
ProviderStatus |
getStatus()
Gets status.
|
int |
getWeight()
Gets weight.
|
int |
hashCode() |
ProviderInfo |
setDynamicAttr(String dynamicAttrKey,
Object dynamicAttrValue)
Sets dynamic attribute.
|
ProviderInfo |
setDynamicAttrs(Map<String,Object> dynamicAttrs)
Sets dynamic attribute.
|
ProviderInfo |
setHost(String host)
Sets host.
|
ProviderInfo |
setOriginUrl(String originUrl)
Sets origin url.
|
ProviderInfo |
setPath(String path)
Sets path.
|
ProviderInfo |
setPort(int port)
Sets port.
|
ProviderInfo |
setProtocolType(String protocolType)
Sets protocol type.
|
ProviderInfo |
setRpcVersion(int rpcVersion)
Sets sofa version.
|
ProviderInfo |
setSerializationType(String serializationType)
Sets serialization type.
|
ProviderInfo |
setStaticAttr(String staticAttrKey,
String staticAttrValue)
Sets static attribute.
|
ProviderInfo |
setStaticAttrs(Map<String,String> staticAttrs)
Sets static attribute.
|
ProviderInfo |
setStatus(ProviderStatus status)
Sets status.
|
ProviderInfo |
setWeight(int weight)
Sets weight.
|
String |
toString() |
String |
toUrl()
已过时。
|
static ProviderInfo |
valueOf(String url)
|
public ProviderInfo()
public ProviderInfo(String host, int port)
host - the hostport - the port@Deprecated public static ProviderInfo valueOf(String url)
url - url地址@Deprecated public String toUrl()
ProviderHelper.toUrl(ProviderInfo)public String getOriginUrl()
public ProviderInfo setOriginUrl(String originUrl)
originUrl - the origin urlpublic String getProtocolType()
public ProviderInfo setProtocolType(String protocolType)
protocolType - the protocol typepublic String getHost()
public ProviderInfo setHost(String host)
host - the hostpublic int getPort()
public ProviderInfo setPort(int port)
port - the portpublic String getPath()
public ProviderInfo setPath(String path)
path - the pathpublic String getSerializationType()
public ProviderInfo setSerializationType(String serializationType)
serializationType - the serialization typepublic int getWeight()
public ProviderInfo setWeight(int weight)
weight - the weightpublic int getRpcVersion()
public ProviderInfo setRpcVersion(int rpcVersion)
rpcVersion - the sofa versionpublic ProviderStatus getStatus()
public ProviderInfo setStatus(ProviderStatus status)
status - the statuspublic ConcurrentHashMap<String,String> getStaticAttrs()
public ProviderInfo setStaticAttrs(Map<String,String> staticAttrs)
staticAttrs - the static attributepublic ConcurrentHashMap<String,Object> getDynamicAttrs()
public ProviderInfo setDynamicAttrs(Map<String,Object> dynamicAttrs)
dynamicAttrs - the dynamic attributepublic String getStaticAttr(String staticAttrKey)
staticAttrKey - the static attribute keypublic ProviderInfo setStaticAttr(String staticAttrKey, String staticAttrValue)
staticAttrKey - the static attribute keystaticAttrValue - the static attribute valuepublic Object getDynamicAttr(String dynamicAttrKey)
dynamicAttrKey - the dynamic attribute keypublic ProviderInfo setDynamicAttr(String dynamicAttrKey, Object dynamicAttrValue)
dynamicAttrKey - the dynamic attribute keydynamicAttrValue - the dynamic attribute valueCopyright © 2008–2018 The Ant Financial. All rights reserved.