Class MetadataServiceVersionUtils

java.lang.Object
org.apache.dubbo.metadata.util.MetadataServiceVersionUtils

public class MetadataServiceVersionUtils extends Object
  • Field Details

  • Constructor Details

    • MetadataServiceVersionUtils

      public MetadataServiceVersionUtils()
  • Method Details

    • toV2

      public static MetadataInfoV2 toV2(MetadataInfo metadataInfo)
    • toV2

      public static ServiceInfoV2 toV2(MetadataInfo.ServiceInfo serviceInfo)
    • toV1

      public static MetadataInfo toV1(MetadataInfoV2 metadataInfoV2)
    • toV1

      public static MetadataInfo.ServiceInfo toV1(ServiceInfoV2 serviceInfoV2)
    • needExportV1

      public static boolean needExportV1(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
      check if we should export MetadataService
    • needExportV2

      public static boolean needExportV2(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
      check if we should export MetadataServiceV2
    • onlyExportV2

      public static boolean onlyExportV2(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
      check if we should only export MetadataServiceV2
    • tripleConfigured

      public static boolean tripleConfigured(org.apache.dubbo.rpc.model.ApplicationModel applicationModel)
      check if we can use triple as MetadataService protocol