use of com.alibaba.nacos.api.selector.NoneSelector in project nacos by alibaba.
the class NacosNamingMaintainServiceTest method testCreateService4.
@Test
public void testCreateService4() throws NacosException {
// given
Service service = new Service();
AbstractSelector selector = new NoneSelector();
// when
nacosNamingMaintainService.createService(service, selector);
// then
verify(serverProxy, times(1)).createService(service, selector);
}
use of com.alibaba.nacos.api.selector.NoneSelector in project nacos by alibaba.
the class NacosNamingMaintainService method updateService.
@Override
public void updateService(String serviceName, String groupName, float protectThreshold, Map<String, String> metadata) throws NacosException {
Service service = new Service();
service.setName(serviceName);
service.setGroupName(groupName);
service.setProtectThreshold(protectThreshold);
service.setMetadata(metadata);
updateService(service, new NoneSelector());
}
use of com.alibaba.nacos.api.selector.NoneSelector in project nacos by alibaba.
the class NacosNamingMaintainService method updateService.
@Override
public void updateService(String serviceName, String groupName, float protectThreshold) throws NacosException {
Service service = new Service();
service.setName(serviceName);
service.setGroupName(groupName);
service.setProtectThreshold(protectThreshold);
updateService(service, new NoneSelector());
}
Aggregations