@Test public void testGetServiceInfoDirectlyFromServer() throws NacosException { when(namingProxy.queryList("testName", "testClusters", 0, false)).thenReturn(EXAMPLE); ServiceInfo actual = hostReactor.getServiceInfoDirectlyFromServer("testName", "testClusters"); assertServiceInfo(actual); }
public ServiceInfo getServiceInfoDirectlyFromServer(final String serviceName, final String clusters) throws NacosException { String result = serverProxy.queryList(serviceName, clusters, 0, false); if (StringUtils.isNotEmpty(result)) { return JacksonUtils.toObj(result, ServiceInfo.class); } return null; }
HostReactor implements Closeable { public ServiceInfo getServiceInfoDirectlyFromServer(final String serviceName, final String clusters) throws NacosException { String result = serverProxy.queryList(serviceName, clusters, 0, false); if (StringUtils.isNotEmpty(result)) { return JacksonUtils.toObj(result, ServiceInfo.class); } return null; } }
HostReactor implements Closeable { public ServiceInfo getServiceInfoDirectlyFromServer(final String serviceName, final String clusters) throws NacosException { String result = serverProxy.queryList(serviceName, clusters, 0, false); if (StringUtils.isNotEmpty(result)) { return JacksonUtils.toObj(result, ServiceInfo.class); } return null; } HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, BeatReactor beatReactor,
            String cacheDir);  HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, BeatReactor beatReactor,
            String cacheDir, boolean loadCacheAtStart, int pollingThreadCount); }
HostReactor implements Closeable { public ServiceInfo getServiceInfoDirectlyFromServer(final String serviceName, final String clusters) throws NacosException { String result = serverProxy.queryList(serviceName, clusters, 0, false); if (StringUtils.isNotEmpty(result)) { return JacksonUtils.toObj(result, ServiceInfo.class); } return null; } HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, BeatReactor beatReactor,
            String cacheDir);  HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, BeatReactor beatReactor,
            String cacheDir, boolean loadCacheAtStart, int pollingThreadCount); Map<String, ServiceInfo> getServiceInfoMap(); synchronized ScheduledFuture<?> addTask(UpdateTask task); ServiceInfo processServiceJson(String json); ServiceInfo getServiceInfoDirectlyFromServer(final String serviceName, final String clusters); ServiceInfo getServiceInfo(final String serviceName, final String clusters); void scheduleUpdateIfAbsent(String serviceName, String clusters); void updateService(String serviceName, String clusters); void refreshOnly(String serviceName, String clusters); @Override void shutdown(); }
HostReactor implements Closeable { public ServiceInfo getServiceInfoDirectlyFromServer(final String serviceName, final String clusters) throws NacosException { String result = serverProxy.queryList(serviceName, clusters, 0, false); if (StringUtils.isNotEmpty(result)) { return JacksonUtils.toObj(result, ServiceInfo.class); } return null; } HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, BeatReactor beatReactor,
            String cacheDir);  HostReactor(EventDispatcher eventDispatcher, NamingProxy serverProxy, BeatReactor beatReactor,
            String cacheDir, boolean loadCacheAtStart, int pollingThreadCount); Map<String, ServiceInfo> getServiceInfoMap(); synchronized ScheduledFuture<?> addTask(UpdateTask task); ServiceInfo processServiceJson(String json); ServiceInfo getServiceInfoDirectlyFromServer(final String serviceName, final String clusters); ServiceInfo getServiceInfo(final String serviceName, final String clusters); void scheduleUpdateIfAbsent(String serviceName, String clusters); void updateService(String serviceName, String clusters); void refreshOnly(String serviceName, String clusters); @Override void shutdown();  }