Search in sources :

Example 1 with NamingClientProxyDelegate

use of com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate in project nacos by alibaba.

the class NacosNamingService method init.

private void init(Properties properties) throws NacosException {
    ValidatorUtils.checkInitParam(properties);
    this.namespace = InitUtils.initNamespaceForNaming(properties);
    InitUtils.initSerialization();
    InitUtils.initWebRootContext(properties);
    initLogName(properties);
    this.changeNotifier = new InstancesChangeNotifier();
    NotifyCenter.registerToPublisher(InstancesChangeEvent.class, 16384);
    NotifyCenter.registerSubscriber(changeNotifier);
    this.serviceInfoHolder = new ServiceInfoHolder(namespace, properties);
    this.clientProxy = new NamingClientProxyDelegate(this.namespace, serviceInfoHolder, properties, changeNotifier);
}
Also used : ServiceInfoHolder(com.alibaba.nacos.client.naming.cache.ServiceInfoHolder) InstancesChangeNotifier(com.alibaba.nacos.client.naming.event.InstancesChangeNotifier) NamingClientProxyDelegate(com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate)

Aggregations

ServiceInfoHolder (com.alibaba.nacos.client.naming.cache.ServiceInfoHolder)1 InstancesChangeNotifier (com.alibaba.nacos.client.naming.event.InstancesChangeNotifier)1 NamingClientProxyDelegate (com.alibaba.nacos.client.naming.remote.NamingClientProxyDelegate)1