| 153 | FlightServerBase::~FlightServerBase() {} |
| 154 | |
| 155 | Status FlightServerBase::Init(const FlightServerOptions& options) { |
| 156 | flight::transport::grpc::InitializeFlightGrpcServer(); |
| 157 | |
| 158 | const auto scheme = options.location.scheme(); |
| 159 | ARROW_ASSIGN_OR_RAISE(impl_->transport_, |
| 160 | internal::GetDefaultTransportRegistry()->MakeServer( |
| 161 | scheme, this, options.memory_manager)); |
| 162 | return impl_->transport_->Init(options, *options.location.uri_); |
| 163 | } |
| 164 | |
| 165 | int FlightServerBase::port() const { return location().uri_->port(); } |
| 166 | |