public class MetadataInfo extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataInfo.ServiceInfo |
| Modifier and Type | Field and Description |
|---|---|
static MetadataInfo |
EMPTY |
| Constructor and Description |
|---|
MetadataInfo() |
MetadataInfo(String app) |
MetadataInfo(String app,
String revision,
Map<String,MetadataInfo.ServiceInfo> services) |
| Modifier and Type | Method and Description |
|---|---|
void |
addService(org.apache.dubbo.common.URL url) |
void |
addSubscribedURL(org.apache.dubbo.common.URL url) |
String |
calAndGetRevision()
Calculation of this instance's status and modification of the instance must be synchronized among different threads.
|
MetadataInfo |
clone() |
boolean |
equals(Object obj) |
String |
getApp() |
String |
getContent() |
ConcurrentNavigableMap<String,SortedSet<org.apache.dubbo.common.URL>> |
getExportedServiceURLs() |
Map<String,String> |
getExtendParams() |
Map<String,String> |
getInstanceParams() |
MetadataInfo.ServiceInfo |
getNoProtocolServiceInfo(String serviceKeyWithoutProtocol)
Get service infos of an interface with specified group, version.
|
String |
getParameter(String key,
String serviceKey) |
Map<String,String> |
getParameters(String serviceKey) |
String |
getRevision() |
MetadataInfo.ServiceInfo |
getServiceInfo(String protocolServiceKey)
Get service info of an interface with specified group, version and protocol
|
Map<String,MetadataInfo.ServiceInfo> |
getServices() |
String |
getServiceString(String protocolServiceKey) |
ConcurrentNavigableMap<String,SortedSet<org.apache.dubbo.common.URL>> |
getSubscribedServiceURLs() |
MetadataInfo.ServiceInfo |
getValidServiceInfo(String serviceKey) |
int |
hashCode() |
void |
init()
Initialize is needed when MetadataInfo is created from deserialization on the consumer side before being used for RPC call.
|
void |
removeService(org.apache.dubbo.common.URL url) |
boolean |
removeSubscribedURL(org.apache.dubbo.common.URL url) |
void |
setApp(String app) |
void |
setRevision(String revision) |
String |
toFullString() |
String |
toString() |
public static final MetadataInfo EMPTY
public MetadataInfo()
public MetadataInfo(String app)
public MetadataInfo(String app, String revision, Map<String,MetadataInfo.ServiceInfo> services)
public void init()
public void addService(org.apache.dubbo.common.URL url)
public void removeService(org.apache.dubbo.common.URL url)
public String getRevision()
public String calAndGetRevision()
Usage of this method is strictly restricted at certain point of registration, always try using this#getRevision()
instead of this method.
public void setRevision(String revision)
public String getContent()
public String getApp()
public void setApp(String app)
public Map<String,MetadataInfo.ServiceInfo> getServices()
public MetadataInfo.ServiceInfo getServiceInfo(String protocolServiceKey)
protocolServiceKey - key is of format '{group}/{interface name}:{version}:{protocol}'public MetadataInfo.ServiceInfo getNoProtocolServiceInfo(String serviceKeyWithoutProtocol)
serviceKeyWithoutProtocol - key is of format '{group}/{interface name}:{version}'public MetadataInfo.ServiceInfo getValidServiceInfo(String serviceKey)
public void addSubscribedURL(org.apache.dubbo.common.URL url)
public boolean removeSubscribedURL(org.apache.dubbo.common.URL url)
public ConcurrentNavigableMap<String,SortedSet<org.apache.dubbo.common.URL>> getSubscribedServiceURLs()
public ConcurrentNavigableMap<String,SortedSet<org.apache.dubbo.common.URL>> getExportedServiceURLs()
public String toFullString()
public MetadataInfo clone()
Copyright © 2011–2022 The Apache Software Foundation. All rights reserved.