use of com.alipay.sofa.registry.client.api.registration.PublisherRegistration in project dubbo by apache.
the class SofaRegistry method doRegister.
@Override
public void doRegister(URL url) {
if (!url.getParameter(REGISTER_KEY, true) || CONSUMER_PROTOCOL.equals(url.getProtocol())) {
return;
}
String serviceName = buildServiceName(url);
String serviceData = url.toFullString();
PublisherRegistration registration = new PublisherRegistration(serviceName);
addAttributesForPub(registration);
registryClient.register(registration, serviceData);
}
Aggregations