You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by me...@apache.org on 2020/06/10 09:31:51 UTC
[dubbo] 03/03: Revert the MetadataReport
This is an automated email from the ASF dual-hosted git repository.
mercyblitz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
commit 074304237e9b166270c6a4e8efcde45b430b43ec
Author: mercyblitz <me...@gmail.com>
AuthorDate: Wed Jun 10 17:30:14 2020 +0800
Revert the MetadataReport
---
.../dubbo/metadata/report/MetadataReport.java | 61 ++--------------------
1 file changed, 4 insertions(+), 57 deletions(-)
diff --git a/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/MetadataReport.java b/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/MetadataReport.java
index 35fa401..e5fc587 100644
--- a/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/MetadataReport.java
+++ b/dubbo-metadata/dubbo-metadata-api/src/main/java/org/apache/dubbo/metadata/report/MetadataReport.java
@@ -17,21 +17,16 @@
package org.apache.dubbo.metadata.report;
+import java.util.List;
+import java.util.Map;
+import java.util.Set;
+
import org.apache.dubbo.common.URL;
-import org.apache.dubbo.metadata.URLRevisionResolver;
import org.apache.dubbo.metadata.definition.model.ServiceDefinition;
import org.apache.dubbo.metadata.report.identifier.MetadataIdentifier;
import org.apache.dubbo.metadata.report.identifier.ServiceMetadataIdentifier;
import org.apache.dubbo.metadata.report.identifier.SubscriberMetadataIdentifier;
-import java.util.Collection;
-import java.util.Collections;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-
-import static org.apache.dubbo.rpc.model.ApplicationModel.getName;
-
/**
*
*/
@@ -52,52 +47,4 @@ public interface MetadataReport {
List<String> getSubscribedURLs(SubscriberMetadataIdentifier subscriberMetadataIdentifier);
String getServiceDefinition(MetadataIdentifier metadataIdentifier);
-
- /**
- * Save the exported {@link URL urls} in bulk.
- *
- * @param exportedURLs the exported {@link URL urls}
- * @return If successful, return <code>true</code>, or <code>false</code>
- * @since 2.7.8
- */
- default boolean saveExportedURLs(Collection<URL> exportedURLs) {
- return saveExportedURLs(getName(), exportedURLs);
- }
-
- /**
- * Save the exported {@link URL urls} in bulk.
- *
- * @param serviceName the specified Dubbo service name
- * @param exportedURLs the exported {@link URL urls}
- * @return If successful, return <code>true</code>, or <code>false</code>
- * @since 2.7.8
- */
- default boolean saveExportedURLs(String serviceName, Collection<URL> exportedURLs) {
- return saveExportedURLs(serviceName, new URLRevisionResolver().resolve(exportedURLs), exportedURLs);
- }
-
- /**
- * Save the exported {@link URL urls} in bulk.
- *
- * @param serviceName the specified Dubbo service name
- * @param exportedServicesRevision the revision of the exported Services
- * @param exportedURLs the exported {@link URL urls}
- * @return If successful, return <code>true</code>, or <code>false</code>
- * @since 2.7.8
- */
- default boolean saveExportedURLs(String serviceName, String exportedServicesRevision, Collection<URL> exportedURLs) {
- return true;
- }
-
- /**
- * Get the {@link URL#toFullString() strings} presenting the {@link URL URLs} that were exported by the provider
- *
- * @param serviceName the specified Dubbo service name
- * @param exportedServicesRevision the revision of the exported Services
- * @return non-null
- * @since 2.7.8
- */
- default List<String> getExportedURLs(String serviceName, String exportedServicesRevision) {
- return Collections.emptyList();
- }
}