类 MetadataInfo

    • 方法详细资料

      • init

        public void init()
        Initialize is needed when MetadataInfo is created from deserialization on the consumer side before being used for RPC call.
      • addService

        public void addService​(org.apache.dubbo.common.URL url)
      • removeService

        public void removeService​(org.apache.dubbo.common.URL url)
      • getRevision

        public String getRevision()
      • calAndGetRevision

        public String calAndGetRevision()
        Calculation of this instance's status like revision and modification of the same instance must be synchronized among different threads.

        Usage of this method is strictly restricted to certain points such as when during registration. Always try to use {@link this#getRevision()} instead.

      • setRevision

        public void setRevision​(String revision)
      • getContent

        public String getContent()
      • getApp

        public String getApp()
      • setApp

        public void setApp​(String app)
      • getServiceInfo

        public MetadataInfo.ServiceInfo getServiceInfo​(String protocolServiceKey)
        Get service info of an interface with specified group, version and protocol
        参数:
        protocolServiceKey - key is of format '{group}/{interface name}:{version}:{protocol}'
        返回:
        the specific service info related to protocolServiceKey
      • getNoProtocolServiceInfo

        public MetadataInfo.ServiceInfo getNoProtocolServiceInfo​(String serviceKeyWithoutProtocol)
        Get service infos of an interface with specified group, version. There may have several service infos of different protocols, this method will simply pick the first one.
        参数:
        serviceKeyWithoutProtocol - key is of format '{group}/{interface name}:{version}'
        返回:
        the first service info related to serviceKey
      • getServiceString

        public String getServiceString​(String protocolServiceKey)
      • addSubscribedURL

        public void addSubscribedURL​(org.apache.dubbo.common.URL url)
      • removeSubscribedURL

        public boolean removeSubscribedURL​(org.apache.dubbo.common.URL url)
      • hashCode

        public int hashCode()
        覆盖:
        hashCode 在类中 Object
      • toFullString

        public String toFullString()