De-experimentalize XdsServerBuilder (#27296)

pull/27300/head
Yash Tibrewal 3 years ago committed by GitHub
parent 1a009cf4e5
commit 7fd731f704
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      include/grpcpp/xds_server_builder.h
  2. 2
      test/cpp/end2end/xds_end2end_test.cc
  3. 4
      test/cpp/interop/xds_interop_server.cc

@ -24,7 +24,6 @@
#include <grpcpp/server_builder.h>
namespace grpc {
namespace experimental {
class XdsServerServingStatusNotifierInterface {
public:
@ -79,6 +78,17 @@ class XdsServerBuilder : public ::grpc::ServerBuilder {
XdsServerServingStatusNotifierInterface* notifier_ = nullptr;
};
namespace experimental {
// TODO(yashykt): Delete this after the 1.42 release.
GRPC_DEPRECATED(
"Use grpc::XdsServerServingStatusNotifierInterface instead. The "
"experimental version will be deleted after the 1.42 release.")
typedef grpc::XdsServerServingStatusNotifierInterface
XdsServerServingStatusNotifierInterface;
GRPC_DEPRECATED(
"Use grpc::XdsServerBuilder instead. The experimental version will be "
"deleted after the 1.42 release.")
typedef grpc::XdsServerBuilder XdsServerBuilder;
} // namespace experimental
} // namespace grpc

@ -2546,7 +2546,7 @@ class XdsEnd2endTest : public ::testing::TestWithParam<TestType> {
std::ostringstream server_address;
server_address << "localhost:" << port_;
if (use_xds_enabled_server_) {
experimental::XdsServerBuilder builder;
XdsServerBuilder builder;
if (GetParam().bootstrap_source() ==
TestType::kBootstrapFromChannelArg) {
builder.SetOption(

@ -56,7 +56,7 @@ using grpc::Server;
using grpc::ServerBuilder;
using grpc::ServerContext;
using grpc::Status;
using grpc::experimental::XdsServerBuilder;
using grpc::XdsServerBuilder;
using grpc::testing::Empty;
using grpc::testing::HealthCheckServiceImpl;
using grpc::testing::SimpleRequest;
@ -129,7 +129,7 @@ void RunServer(bool secure_mode, const int port, const int maintenance_port,
grpc::reflection::InitProtoReflectionServerBuilderPlugin();
ServerBuilder builder;
if (secure_mode) {
XdsServerBuilder xds_builder;
grpc::XdsServerBuilder xds_builder;
xds_builder.RegisterService(&service);
xds_builder.AddListeningPort(absl::StrCat("0.0.0.0:", port),
grpc::experimental::XdsServerCredentials(

Loading…
Cancel
Save