Search in sources :

Example 6 with PublisherRegistration

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);
}
Also used : PublisherRegistration(com.alipay.sofa.registry.client.api.registration.PublisherRegistration)

Aggregations

PublisherRegistration (com.alipay.sofa.registry.client.api.registration.PublisherRegistration)6 Publisher (com.alipay.sofa.registry.client.api.Publisher)2