rename xds_client_stats.h -> xds_locality.h

pull/37605/head
Mark D. Roth 3 months ago
parent 4c9850d530
commit 09898b034b
  1. 2
      BUILD
  2. 2
      CMakeLists.txt
  3. 2
      Makefile
  4. 5
      Package.swift
  5. 5
      build_autogenerated.yaml
  6. 2
      config.m4
  7. 2
      config.w32
  8. 6
      gRPC-C++.podspec
  9. 8
      gRPC-Core.podspec
  10. 5
      grpc.gemspec
  11. 5
      package.xml
  12. 2
      src/core/load_balancing/xds/xds_cluster_impl.cc
  13. 2
      src/core/load_balancing/xds/xds_wrr_locality.cc
  14. 2
      src/core/xds/grpc/xds_endpoint.h
  15. 2
      src/core/xds/xds_client/lrs_client.cc
  16. 2
      src/core/xds/xds_client/lrs_client.h
  17. 2
      src/core/xds/xds_client/xds_api.h
  18. 2
      src/core/xds/xds_client/xds_client.cc
  19. 2
      src/core/xds/xds_client/xds_client.h
  20. 9
      src/core/xds/xds_client/xds_locality.h
  21. 2
      src/python/grpcio/grpc_core_dependencies.py
  22. 2
      test/core/xds/xds_endpoint_resource_type_test.cc
  23. 5
      tools/doxygen/Doxyfile.c++.internal
  24. 5
      tools/doxygen/Doxyfile.core.internal

@ -4405,7 +4405,7 @@ grpc_cc_library(
"//src/core:xds/xds_client/xds_bootstrap.h",
"//src/core:xds/xds_client/xds_channel_args.h",
"//src/core:xds/xds_client/xds_client.h",
"//src/core:xds/xds_client/xds_client_stats.h",
"//src/core:xds/xds_client/xds_locality.h",
"//src/core:xds/xds_client/xds_metrics.h",
"//src/core:xds/xds_client/xds_resource_type.h",
"//src/core:xds/xds_client/xds_resource_type_impl.h",

2
CMakeLists.txt generated

@ -2656,10 +2656,10 @@ add_library(grpc
src/core/xds/grpc/xds_routing.cc
src/core/xds/grpc/xds_server_grpc.cc
src/core/xds/grpc/xds_transport_grpc.cc
src/core/xds/xds_client/lrs_client.cc
src/core/xds/xds_client/xds_api.cc
src/core/xds/xds_client/xds_bootstrap.cc
src/core/xds/xds_client/xds_client.cc
src/core/xds/xds_client/xds_client_stats.cc
)
target_compile_features(grpc PUBLIC cxx_std_14)

2
Makefile generated

@ -1515,10 +1515,10 @@ LIBGRPC_SRC = \
src/core/xds/grpc/xds_routing.cc \
src/core/xds/grpc/xds_server_grpc.cc \
src/core/xds/grpc/xds_transport_grpc.cc \
src/core/xds/xds_client/lrs_client.cc \
src/core/xds/xds_client/xds_api.cc \
src/core/xds/xds_client/xds_bootstrap.cc \
src/core/xds/xds_client/xds_client.cc \
src/core/xds/xds_client/xds_client_stats.cc \
third_party/abseil-cpp/absl/base/internal/cycleclock.cc \
third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc \
third_party/abseil-cpp/absl/base/internal/raw_logging.cc \

5
Package.swift generated

@ -2026,6 +2026,8 @@ let package = Package(
"src/core/xds/grpc/xds_server_grpc.h",
"src/core/xds/grpc/xds_transport_grpc.cc",
"src/core/xds/grpc/xds_transport_grpc.h",
"src/core/xds/xds_client/lrs_client.cc",
"src/core/xds/xds_client/lrs_client.h",
"src/core/xds/xds_client/xds_api.cc",
"src/core/xds/xds_client/xds_api.h",
"src/core/xds/xds_client/xds_bootstrap.cc",
@ -2033,8 +2035,7 @@ let package = Package(
"src/core/xds/xds_client/xds_channel_args.h",
"src/core/xds/xds_client/xds_client.cc",
"src/core/xds/xds_client/xds_client.h",
"src/core/xds/xds_client/xds_client_stats.cc",
"src/core/xds/xds_client/xds_client_stats.h",
"src/core/xds/xds_client/xds_locality.h",
"src/core/xds/xds_client/xds_metrics.h",
"src/core/xds/xds_client/xds_resource_type.h",
"src/core/xds/xds_client/xds_resource_type_impl.h",

@ -1255,11 +1255,12 @@ libs:
- src/core/xds/grpc/xds_routing.h
- src/core/xds/grpc/xds_server_grpc.h
- src/core/xds/grpc/xds_transport_grpc.h
- src/core/xds/xds_client/lrs_client.h
- src/core/xds/xds_client/xds_api.h
- src/core/xds/xds_client/xds_bootstrap.h
- src/core/xds/xds_client/xds_channel_args.h
- src/core/xds/xds_client/xds_client.h
- src/core/xds/xds_client/xds_client_stats.h
- src/core/xds/xds_client/xds_locality.h
- src/core/xds/xds_client/xds_metrics.h
- src/core/xds/xds_client/xds_resource_type.h
- src/core/xds/xds_client/xds_resource_type_impl.h
@ -2071,10 +2072,10 @@ libs:
- src/core/xds/grpc/xds_routing.cc
- src/core/xds/grpc/xds_server_grpc.cc
- src/core/xds/grpc/xds_transport_grpc.cc
- src/core/xds/xds_client/lrs_client.cc
- src/core/xds/xds_client/xds_api.cc
- src/core/xds/xds_client/xds_bootstrap.cc
- src/core/xds/xds_client/xds_client.cc
- src/core/xds/xds_client/xds_client_stats.cc
deps:
- upb_json_lib
- upb_textformat_lib

2
config.m4 generated

@ -890,10 +890,10 @@ if test "$PHP_GRPC" != "no"; then
src/core/xds/grpc/xds_routing.cc \
src/core/xds/grpc/xds_server_grpc.cc \
src/core/xds/grpc/xds_transport_grpc.cc \
src/core/xds/xds_client/lrs_client.cc \
src/core/xds/xds_client/xds_api.cc \
src/core/xds/xds_client/xds_bootstrap.cc \
src/core/xds/xds_client/xds_client.cc \
src/core/xds/xds_client/xds_client_stats.cc \
src/php/ext/grpc/byte_buffer.c \
src/php/ext/grpc/call.c \
src/php/ext/grpc/call_credentials.c \

2
config.w32 generated

@ -855,10 +855,10 @@ if (PHP_GRPC != "no") {
"src\\core\\xds\\grpc\\xds_routing.cc " +
"src\\core\\xds\\grpc\\xds_server_grpc.cc " +
"src\\core\\xds\\grpc\\xds_transport_grpc.cc " +
"src\\core\\xds\\xds_client\\lrs_client.cc " +
"src\\core\\xds\\xds_client\\xds_api.cc " +
"src\\core\\xds\\xds_client\\xds_bootstrap.cc " +
"src\\core\\xds\\xds_client\\xds_client.cc " +
"src\\core\\xds\\xds_client\\xds_client_stats.cc " +
"src\\php\\ext\\grpc\\byte_buffer.c " +
"src\\php\\ext\\grpc\\call.c " +
"src\\php\\ext\\grpc\\call_credentials.c " +

6
gRPC-C++.podspec generated

@ -1365,11 +1365,12 @@ Pod::Spec.new do |s|
'src/core/xds/grpc/xds_routing.h',
'src/core/xds/grpc/xds_server_grpc.h',
'src/core/xds/grpc/xds_transport_grpc.h',
'src/core/xds/xds_client/lrs_client.h',
'src/core/xds/xds_client/xds_api.h',
'src/core/xds/xds_client/xds_bootstrap.h',
'src/core/xds/xds_client/xds_channel_args.h',
'src/core/xds/xds_client/xds_client.h',
'src/core/xds/xds_client/xds_client_stats.h',
'src/core/xds/xds_client/xds_locality.h',
'src/core/xds/xds_client/xds_metrics.h',
'src/core/xds/xds_client/xds_resource_type.h',
'src/core/xds/xds_client/xds_resource_type_impl.h',
@ -2657,11 +2658,12 @@ Pod::Spec.new do |s|
'src/core/xds/grpc/xds_routing.h',
'src/core/xds/grpc/xds_server_grpc.h',
'src/core/xds/grpc/xds_transport_grpc.h',
'src/core/xds/xds_client/lrs_client.h',
'src/core/xds/xds_client/xds_api.h',
'src/core/xds/xds_client/xds_bootstrap.h',
'src/core/xds/xds_client/xds_channel_args.h',
'src/core/xds/xds_client/xds_client.h',
'src/core/xds/xds_client/xds_client_stats.h',
'src/core/xds/xds_client/xds_locality.h',
'src/core/xds/xds_client/xds_metrics.h',
'src/core/xds/xds_client/xds_resource_type.h',
'src/core/xds/xds_client/xds_resource_type_impl.h',

8
gRPC-Core.podspec generated

@ -2142,6 +2142,8 @@ Pod::Spec.new do |s|
'src/core/xds/grpc/xds_server_grpc.h',
'src/core/xds/grpc/xds_transport_grpc.cc',
'src/core/xds/grpc/xds_transport_grpc.h',
'src/core/xds/xds_client/lrs_client.cc',
'src/core/xds/xds_client/lrs_client.h',
'src/core/xds/xds_client/xds_api.cc',
'src/core/xds/xds_client/xds_api.h',
'src/core/xds/xds_client/xds_bootstrap.cc',
@ -2149,8 +2151,7 @@ Pod::Spec.new do |s|
'src/core/xds/xds_client/xds_channel_args.h',
'src/core/xds/xds_client/xds_client.cc',
'src/core/xds/xds_client/xds_client.h',
'src/core/xds/xds_client/xds_client_stats.cc',
'src/core/xds/xds_client/xds_client_stats.h',
'src/core/xds/xds_client/xds_locality.h',
'src/core/xds/xds_client/xds_metrics.h',
'src/core/xds/xds_client/xds_resource_type.h',
'src/core/xds/xds_client/xds_resource_type_impl.h',
@ -3440,11 +3441,12 @@ Pod::Spec.new do |s|
'src/core/xds/grpc/xds_routing.h',
'src/core/xds/grpc/xds_server_grpc.h',
'src/core/xds/grpc/xds_transport_grpc.h',
'src/core/xds/xds_client/lrs_client.h',
'src/core/xds/xds_client/xds_api.h',
'src/core/xds/xds_client/xds_bootstrap.h',
'src/core/xds/xds_client/xds_channel_args.h',
'src/core/xds/xds_client/xds_client.h',
'src/core/xds/xds_client/xds_client_stats.h',
'src/core/xds/xds_client/xds_locality.h',
'src/core/xds/xds_client/xds_metrics.h',
'src/core/xds/xds_client/xds_resource_type.h',
'src/core/xds/xds_client/xds_resource_type_impl.h',

5
grpc.gemspec generated

@ -2028,6 +2028,8 @@ Gem::Specification.new do |s|
s.files += %w( src/core/xds/grpc/xds_server_grpc.h )
s.files += %w( src/core/xds/grpc/xds_transport_grpc.cc )
s.files += %w( src/core/xds/grpc/xds_transport_grpc.h )
s.files += %w( src/core/xds/xds_client/lrs_client.cc )
s.files += %w( src/core/xds/xds_client/lrs_client.h )
s.files += %w( src/core/xds/xds_client/xds_api.cc )
s.files += %w( src/core/xds/xds_client/xds_api.h )
s.files += %w( src/core/xds/xds_client/xds_bootstrap.cc )
@ -2035,8 +2037,7 @@ Gem::Specification.new do |s|
s.files += %w( src/core/xds/xds_client/xds_channel_args.h )
s.files += %w( src/core/xds/xds_client/xds_client.cc )
s.files += %w( src/core/xds/xds_client/xds_client.h )
s.files += %w( src/core/xds/xds_client/xds_client_stats.cc )
s.files += %w( src/core/xds/xds_client/xds_client_stats.h )
s.files += %w( src/core/xds/xds_client/xds_locality.h )
s.files += %w( src/core/xds/xds_client/xds_metrics.h )
s.files += %w( src/core/xds/xds_client/xds_resource_type.h )
s.files += %w( src/core/xds/xds_client/xds_resource_type_impl.h )

5
package.xml generated

@ -2010,6 +2010,8 @@
<file baseinstalldir="/" name="src/core/xds/grpc/xds_server_grpc.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/grpc/xds_transport_grpc.cc" role="src" />
<file baseinstalldir="/" name="src/core/xds/grpc/xds_transport_grpc.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/lrs_client.cc" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/lrs_client.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_api.cc" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_api.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_bootstrap.cc" role="src" />
@ -2017,8 +2019,7 @@
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_channel_args.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_client.cc" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_client.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_client_stats.cc" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_client_stats.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_locality.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_metrics.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_resource_type.h" role="src" />
<file baseinstalldir="/" name="src/core/xds/xds_client/xds_resource_type_impl.h" role="src" />

@ -73,7 +73,7 @@
#include "src/core/xds/grpc/xds_endpoint.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"
#include "src/core/xds/xds_client/xds_client.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
namespace grpc_core {

@ -50,7 +50,7 @@
#include "src/core/util/json/json_args.h"
#include "src/core/util/json/json_object_loader.h"
#include "src/core/util/json/json_writer.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
namespace grpc_core {

@ -29,7 +29,7 @@
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/sync.h"
#include "src/core/resolver/endpoint_addresses.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
#include "src/core/xds/xds_client/xds_resource_type.h"
#include "src/core/xds/xds_client/xds_resource_type_impl.h"

@ -49,7 +49,7 @@
#include "src/core/util/upb_utils.h"
#include "src/core/xds/xds_client/xds_api.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
#define GRPC_XDS_INITIAL_CONNECT_BACKOFF_SECONDS 1
#define GRPC_XDS_RECONNECT_BACKOFF_MULTIPLIER 1.6

@ -43,7 +43,7 @@
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/xds/xds_client/xds_api.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
#include "src/core/xds/xds_client/xds_metrics.h"
#include "src/core/xds/xds_client/xds_resource_type.h"
#include "src/core/xds/xds_client/xds_transport.h"

@ -38,7 +38,7 @@
#include "src/core/lib/gprpp/ref_counted_ptr.h"
#include "src/core/lib/gprpp/time.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
namespace grpc_core {

@ -56,7 +56,7 @@
#include "src/core/util/upb_utils.h"
#include "src/core/xds/xds_client/xds_api.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
#define GRPC_XDS_INITIAL_CONNECT_BACKOFF_SECONDS 1
#define GRPC_XDS_RECONNECT_BACKOFF_MULTIPLIER 1.6

@ -44,7 +44,7 @@
#include "src/core/lib/uri/uri_parser.h"
#include "src/core/xds/xds_client/xds_api.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
#include "src/core/xds/xds_client/xds_metrics.h"
#include "src/core/xds/xds_client/xds_resource_type.h"
#include "src/core/xds/xds_client/xds_transport.h"

@ -1,6 +1,3 @@
// FIXME: rename to xds_locality.h
//
//
// Copyright 2018 gRPC authors.
@ -19,8 +16,8 @@
//
//
#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_STATS_H
#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_STATS_H
#ifndef GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_LOCALITY_H
#define GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_LOCALITY_H
#include <string>
#include <utility>
@ -103,4 +100,4 @@ class XdsLocalityName final : public RefCounted<XdsLocalityName> {
} // namespace grpc_core
#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_CLIENT_STATS_H
#endif // GRPC_SRC_CORE_XDS_XDS_CLIENT_XDS_LOCALITY_H

@ -864,10 +864,10 @@ CORE_SOURCE_FILES = [
'src/core/xds/grpc/xds_routing.cc',
'src/core/xds/grpc/xds_server_grpc.cc',
'src/core/xds/grpc/xds_transport_grpc.cc',
'src/core/xds/xds_client/lrs_client.cc',
'src/core/xds/xds_client/xds_api.cc',
'src/core/xds/xds_client/xds_bootstrap.cc',
'src/core/xds/xds_client/xds_client.cc',
'src/core/xds/xds_client/xds_client_stats.cc',
'third_party/abseil-cpp/absl/base/internal/cycleclock.cc',
'third_party/abseil-cpp/absl/base/internal/low_level_alloc.cc',
'third_party/abseil-cpp/absl/base/internal/raw_logging.cc',

@ -49,7 +49,7 @@
#include "src/core/xds/grpc/xds_health_status.h"
#include "src/core/xds/xds_client/xds_bootstrap.h"
#include "src/core/xds/xds_client/xds_client.h"
#include "src/core/xds/xds_client/xds_client_stats.h"
#include "src/core/xds/xds_client/xds_locality.h"
#include "src/core/xds/xds_client/xds_resource_type.h"
#include "src/proto/grpc/testing/xds/v3/address.pb.h"
#include "src/proto/grpc/testing/xds/v3/base.pb.h"

@ -3034,6 +3034,8 @@ src/core/xds/grpc/xds_server_grpc.cc \
src/core/xds/grpc/xds_server_grpc.h \
src/core/xds/grpc/xds_transport_grpc.cc \
src/core/xds/grpc/xds_transport_grpc.h \
src/core/xds/xds_client/lrs_client.cc \
src/core/xds/xds_client/lrs_client.h \
src/core/xds/xds_client/xds_api.cc \
src/core/xds/xds_client/xds_api.h \
src/core/xds/xds_client/xds_bootstrap.cc \
@ -3041,8 +3043,7 @@ src/core/xds/xds_client/xds_bootstrap.h \
src/core/xds/xds_client/xds_channel_args.h \
src/core/xds/xds_client/xds_client.cc \
src/core/xds/xds_client/xds_client.h \
src/core/xds/xds_client/xds_client_stats.cc \
src/core/xds/xds_client/xds_client_stats.h \
src/core/xds/xds_client/xds_locality.h \
src/core/xds/xds_client/xds_metrics.h \
src/core/xds/xds_client/xds_resource_type.h \
src/core/xds/xds_client/xds_resource_type_impl.h \

@ -2812,6 +2812,8 @@ src/core/xds/grpc/xds_server_grpc.cc \
src/core/xds/grpc/xds_server_grpc.h \
src/core/xds/grpc/xds_transport_grpc.cc \
src/core/xds/grpc/xds_transport_grpc.h \
src/core/xds/xds_client/lrs_client.cc \
src/core/xds/xds_client/lrs_client.h \
src/core/xds/xds_client/xds_api.cc \
src/core/xds/xds_client/xds_api.h \
src/core/xds/xds_client/xds_bootstrap.cc \
@ -2819,8 +2821,7 @@ src/core/xds/xds_client/xds_bootstrap.h \
src/core/xds/xds_client/xds_channel_args.h \
src/core/xds/xds_client/xds_client.cc \
src/core/xds/xds_client/xds_client.h \
src/core/xds/xds_client/xds_client_stats.cc \
src/core/xds/xds_client/xds_client_stats.h \
src/core/xds/xds_client/xds_locality.h \
src/core/xds/xds_client/xds_metrics.h \
src/core/xds/xds_client/xds_resource_type.h \
src/core/xds/xds_client/xds_resource_type_impl.h \

Loading…
Cancel
Save