test_class.declarator: serviceDiscovery
test_class.modifier: private
test_class.original_string: private EurekaServiceDiscovery serviceDiscovery;
test_class.type: EurekaServiceDiscovery
test_class.var_name: serviceDiscovery
test_class.declarator: serviceInstance
test_class.modifier: private
test_class.original_string: private ServiceInstance serviceInstance;
test_class.type: ServiceInstance
test_class.var_name: serviceInstance
test_class.declarator: registryURL = URL.valueOf("eureka://127.0.0.1:" + NetUtils.getAvailablePort() + "/eureka")
test_class.modifier: private
test_class.original_string: private URL registryURL = URL.valueOf("eureka://127.0.0.1:" + NetUtils.getAvailablePort() + "/eureka");
test_class.type: URL
test_class.var_name: registryURL
test_class.file: dubbo-registry/dubbo-registry-eureka/src/test/java/org/apache/dubbo/registry/eureka/EurekaServiceDiscoveryTest.java
test_class.identifier: EurekaServiceDiscoveryTest
test_case.body: @Test
      public void testGetServices() {
          assertNotNull(serviceDiscovery.getServices());
      }
test_case.class_method_signature: EurekaServiceDiscoveryTest.testGetServices()
test_case.full_signature: @Test public void testGetServices()
test_case.identifier: testGetServices
test_case.invocations: assertNotNull getServices
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetServices()
focal_class.declarator: eventDispatcher = getDefaultExtension()
focal_class.modifier: private final
focal_class.original_string: private final EventDispatcher eventDispatcher = getDefaultExtension();
focal_class.type: EventDispatcher
focal_class.var_name: eventDispatcher
focal_class.declarator: applicationInfoManager
focal_class.modifier: private
focal_class.original_string: private ApplicationInfoManager applicationInfoManager;
focal_class.type: ApplicationInfoManager
focal_class.var_name: applicationInfoManager
focal_class.declarator: eurekaClient
focal_class.modifier: private
focal_class.original_string: private EurekaClient eurekaClient;
focal_class.type: EurekaClient
focal_class.var_name: eurekaClient
focal_class.declarator: subscribedServices
focal_class.modifier: private
focal_class.original_string: private Set<String> subscribedServices;
focal_class.type: Set<String>
focal_class.var_name: subscribedServices
focal_class.declarator: lastAppsHashCode
focal_class.modifier: private
focal_class.original_string: private String lastAppsHashCode;
focal_class.type: String
focal_class.var_name: lastAppsHashCode
focal_class.file: dubbo-registry/dubbo-registry-eureka/src/main/java/org/apache/dubbo/registry/eureka/EurekaServiceDiscovery.java
focal_class.identifier: EurekaServiceDiscovery
focal_class.class_method_signature: EurekaServiceDiscovery.initialize(URL registryURL)
focal_class.full_signature: @Override public void initialize(URL registryURL)
focal_class.identifier: initialize
focal_class.modifiers: @Override public
focal_class.parameters: (URL registryURL)
focal_class.return: void
focal_class.signature: void initialize(URL registryURL)
focal_class.class_method_signature: EurekaServiceDiscovery.buildEurekaConfigProperties(URL registryURL)
focal_class.full_signature: private Properties buildEurekaConfigProperties(URL registryURL)
focal_class.identifier: buildEurekaConfigProperties
focal_class.modifiers: private
focal_class.parameters: (URL registryURL)
focal_class.return: Properties
focal_class.signature: Properties buildEurekaConfigProperties(URL registryURL)
focal_class.class_method_signature: EurekaServiceDiscovery.initSubscribedServices(URL registryURL)
focal_class.full_signature: private void initSubscribedServices(URL registryURL)
focal_class.identifier: initSubscribedServices
focal_class.modifiers: private
focal_class.parameters: (URL registryURL)
focal_class.return: void
focal_class.signature: void initSubscribedServices(URL registryURL)
focal_class.class_method_signature: EurekaServiceDiscovery.filterEurekaProperty(Map.Entry<String, String> propertyEntry)
focal_class.full_signature: private boolean filterEurekaProperty(Map.Entry<String, String> propertyEntry)
focal_class.identifier: filterEurekaProperty
focal_class.modifiers: private
focal_class.parameters: (Map.Entry<String, String> propertyEntry)
focal_class.return: boolean
focal_class.signature: boolean filterEurekaProperty(Map.Entry<String, String> propertyEntry)
focal_class.class_method_signature: EurekaServiceDiscovery.setDefaultProperties(URL registryURL, Properties properties)
focal_class.full_signature: private void setDefaultProperties(URL registryURL, Properties properties)
focal_class.identifier: setDefaultProperties
focal_class.modifiers: private
focal_class.parameters: (URL registryURL, Properties properties)
focal_class.return: void
focal_class.signature: void setDefaultProperties(URL registryURL, Properties properties)
focal_class.class_method_signature: EurekaServiceDiscovery.setDefaultServiceURL(URL registryURL, Properties properties)
focal_class.full_signature: private void setDefaultServiceURL(URL registryURL, Properties properties)
focal_class.identifier: setDefaultServiceURL
focal_class.modifiers: private
focal_class.parameters: (URL registryURL, Properties properties)
focal_class.return: void
focal_class.signature: void setDefaultServiceURL(URL registryURL, Properties properties)
focal_class.class_method_signature: EurekaServiceDiscovery.setDefaultInitialInstanceInfoReplicationIntervalSeconds(Properties properties)
focal_class.full_signature: private void setDefaultInitialInstanceInfoReplicationIntervalSeconds(Properties properties)
focal_class.identifier: setDefaultInitialInstanceInfoReplicationIntervalSeconds
focal_class.modifiers: private
focal_class.parameters: (Properties properties)
focal_class.return: void
focal_class.signature: void setDefaultInitialInstanceInfoReplicationIntervalSeconds(Properties properties)
focal_class.class_method_signature: EurekaServiceDiscovery.initConfigurationManager(Properties eurekaConfigProperties)
focal_class.full_signature: private void initConfigurationManager(Properties eurekaConfigProperties)
focal_class.identifier: initConfigurationManager
focal_class.modifiers: private
focal_class.parameters: (Properties eurekaConfigProperties)
focal_class.return: void
focal_class.signature: void initConfigurationManager(Properties eurekaConfigProperties)
focal_class.class_method_signature: EurekaServiceDiscovery.initApplicationInfoManager(ServiceInstance serviceInstance)
focal_class.full_signature: private void initApplicationInfoManager(ServiceInstance serviceInstance)
focal_class.identifier: initApplicationInfoManager
focal_class.modifiers: private
focal_class.parameters: (ServiceInstance serviceInstance)
focal_class.return: void
focal_class.signature: void initApplicationInfoManager(ServiceInstance serviceInstance)
focal_class.class_method_signature: EurekaServiceDiscovery.initEurekaClient(ServiceInstance serviceInstance)
focal_class.full_signature: private void initEurekaClient(ServiceInstance serviceInstance)
focal_class.identifier: initEurekaClient
focal_class.modifiers: private
focal_class.parameters: (ServiceInstance serviceInstance)
focal_class.return: void
focal_class.signature: void initEurekaClient(ServiceInstance serviceInstance)
focal_class.class_method_signature: EurekaServiceDiscovery.registerEurekaEventListener(EurekaClient eurekaClient)
focal_class.full_signature: private void registerEurekaEventListener(EurekaClient eurekaClient)
focal_class.identifier: registerEurekaEventListener
focal_class.modifiers: private
focal_class.parameters: (EurekaClient eurekaClient)
focal_class.return: void
focal_class.signature: void registerEurekaEventListener(EurekaClient eurekaClient)
focal_class.class_method_signature: EurekaServiceDiscovery.onEurekaEvent(EurekaEvent event)
focal_class.full_signature: private void onEurekaEvent(EurekaEvent event)
focal_class.identifier: onEurekaEvent
focal_class.modifiers: private
focal_class.parameters: (EurekaEvent event)
focal_class.return: void
focal_class.signature: void onEurekaEvent(EurekaEvent event)
focal_class.class_method_signature: EurekaServiceDiscovery.onCacheRefreshedEvent(CacheRefreshedEvent event)
focal_class.full_signature: private void onCacheRefreshedEvent(CacheRefreshedEvent event)
focal_class.identifier: onCacheRefreshedEvent
focal_class.modifiers: private
focal_class.parameters: (CacheRefreshedEvent event)
focal_class.return: void
focal_class.signature: void onCacheRefreshedEvent(CacheRefreshedEvent event)
focal_class.class_method_signature: EurekaServiceDiscovery.dispatchServiceInstancesChangedEvent()
focal_class.full_signature: private void dispatchServiceInstancesChangedEvent()
focal_class.identifier: dispatchServiceInstancesChangedEvent
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void dispatchServiceInstancesChangedEvent()
focal_class.class_method_signature: EurekaServiceDiscovery.createEurekaClient()
focal_class.full_signature: private EurekaClient createEurekaClient()
focal_class.identifier: createEurekaClient
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: EurekaClient
focal_class.signature: EurekaClient createEurekaClient()
focal_class.class_method_signature: EurekaServiceDiscovery.destroy()
focal_class.full_signature: @Override public void destroy()
focal_class.identifier: destroy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void destroy()
focal_class.class_method_signature: EurekaServiceDiscovery.register(ServiceInstance serviceInstance)
focal_class.full_signature: @Override public void register(ServiceInstance serviceInstance)
focal_class.identifier: register
focal_class.modifiers: @Override public
focal_class.parameters: (ServiceInstance serviceInstance)
focal_class.return: void
focal_class.signature: void register(ServiceInstance serviceInstance)
focal_class.class_method_signature: EurekaServiceDiscovery.setInstanceStatus(InstanceInfo.InstanceStatus status)
focal_class.full_signature: private void setInstanceStatus(InstanceInfo.InstanceStatus status)
focal_class.identifier: setInstanceStatus
focal_class.modifiers: private
focal_class.parameters: (InstanceInfo.InstanceStatus status)
focal_class.return: void
focal_class.signature: void setInstanceStatus(InstanceInfo.InstanceStatus status)
focal_class.class_method_signature: EurekaServiceDiscovery.update(ServiceInstance serviceInstance)
focal_class.full_signature: @Override public void update(ServiceInstance serviceInstance)
focal_class.identifier: update
focal_class.modifiers: @Override public
focal_class.parameters: (ServiceInstance serviceInstance)
focal_class.return: void
focal_class.signature: void update(ServiceInstance serviceInstance)
focal_class.class_method_signature: EurekaServiceDiscovery.unregister(ServiceInstance serviceInstance)
focal_class.full_signature: @Override public void unregister(ServiceInstance serviceInstance)
focal_class.identifier: unregister
focal_class.modifiers: @Override public
focal_class.parameters: (ServiceInstance serviceInstance)
focal_class.return: void
focal_class.signature: void unregister(ServiceInstance serviceInstance)
focal_class.class_method_signature: EurekaServiceDiscovery.getServices()
focal_class.full_signature: @Override public Set<String> getServices()
focal_class.identifier: getServices
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getServices()
focal_class.class_method_signature: EurekaServiceDiscovery.getInstances(String serviceName)
focal_class.full_signature: @Override public List<ServiceInstance> getInstances(String serviceName)
focal_class.identifier: getInstances
focal_class.modifiers: @Override public
focal_class.parameters: (String serviceName)
focal_class.return: List<ServiceInstance>
focal_class.signature: List<ServiceInstance> getInstances(String serviceName)
focal_class.class_method_signature: EurekaServiceDiscovery.buildServiceInstance(InstanceInfo instance)
focal_class.full_signature: private ServiceInstance buildServiceInstance(InstanceInfo instance)
focal_class.identifier: buildServiceInstance
focal_class.modifiers: private
focal_class.parameters: (InstanceInfo instance)
focal_class.return: ServiceInstance
focal_class.signature: ServiceInstance buildServiceInstance(InstanceInfo instance)
focal_class.class_method_signature: EurekaServiceDiscovery.buildEurekaInstanceConfig(ServiceInstance serviceInstance)
focal_class.full_signature: private EurekaInstanceConfig buildEurekaInstanceConfig(ServiceInstance serviceInstance)
focal_class.identifier: buildEurekaInstanceConfig
focal_class.modifiers: private
focal_class.parameters: (ServiceInstance serviceInstance)
focal_class.return: EurekaInstanceConfig
focal_class.signature: EurekaInstanceConfig buildEurekaInstanceConfig(ServiceInstance serviceInstance)
focal_class.superclass: extends AbstractServiceDiscovery
focal_method.body: @Override
      public Set<String> getServices() {
          Applications applications = this.eurekaClient.getApplications();
          if (applications == null) {
              return Collections.emptySet();
          }
          List<Application> registered = applications.getRegisteredApplications();
          Set<String> names = new LinkedHashSet<>();
          for (Application app : registered) {
              if (app.getInstances().isEmpty()) {
                  continue;
              }
              names.add(app.getName().toLowerCase());
          }
          return names;
      }
focal_method.class_method_signature: EurekaServiceDiscovery.getServices()
focal_method.full_signature: @Override public Set<String> getServices()
focal_method.identifier: getServices
focal_method.invocations: getApplications emptySet getRegisteredApplications isEmpty getInstances add toLowerCase getName
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: Set<String>
focal_method.signature: Set<String> getServices()