类 ServiceInstanceMetadataUtils

    • 字段详细资料

      • METADATA_SERVICE_URL_PARAMS_PROPERTY_NAME

        public static final String METADATA_SERVICE_URL_PARAMS_PROPERTY_NAME
        The property name of metadata JSON of MetadataService's URL
        另请参阅:
        常量字段值
      • METADATA_SERVICE_URLS_PROPERTY_NAME

        public static final String METADATA_SERVICE_URLS_PROPERTY_NAME
        The URLs property name of MetadataService : "dubbo.metadata-service.urls", which is used to be compatible with Dubbo Spring Cloud and discovery the metadata of instance
        另请参阅:
        常量字段值
      • EXPORTED_SERVICES_REVISION_PROPERTY_NAME

        public static final String EXPORTED_SERVICES_REVISION_PROPERTY_NAME
        The property name of The revision for all exported Dubbo services.
        另请参阅:
        常量字段值
      • METADATA_STORAGE_TYPE_PROPERTY_NAME

        public static final String METADATA_STORAGE_TYPE_PROPERTY_NAME
        The property name of metadata storage type.
        另请参阅:
        常量字段值
      • METADATA_CLUSTER_PROPERTY_NAME

        public static final String METADATA_CLUSTER_PROPERTY_NAME
        另请参阅:
        常量字段值
    • 构造器详细资料

      • ServiceInstanceMetadataUtils

        public ServiceInstanceMetadataUtils()
    • 方法详细资料

      • getMetadataServiceParameter

        public static String getMetadataServiceParameter​(URL url)
      • getExportedServicesRevision

        public static String getExportedServicesRevision​(ServiceInstance serviceInstance)
        The revision for all exported Dubbo services from the specified ServiceInstance.
        参数:
        serviceInstance - the specified ServiceInstance
        返回:
        null if not exits
      • getMetadataStorageType

        public static String getMetadataStorageType​(URL registryURL)
        Get metadata's storage type
        参数:
        registryURL - the URL to connect the registry
        返回:
        if not found in parameters of registry URL, return
      • getMetadataStorageType

        public static String getMetadataStorageType​(ServiceInstance serviceInstance)
        Get the metadata storage type specified by the peer instance.
        返回:
        storage type, remote or local
      • hasEndpoints

        public static boolean hasEndpoints​(ServiceInstance serviceInstance)
      • registerMetadataAndInstance

        public static void registerMetadataAndInstance​(ApplicationModel applicationModel)
      • refreshMetadataAndInstance

        public static void refreshMetadataAndInstance​(ApplicationModel applicationModel)
      • unregisterMetadataAndInstance

        public static void unregisterMetadataAndInstance​(ApplicationModel applicationModel)
      • isValidInstance

        public static boolean isValidInstance​(ServiceInstance instance)