// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. #pragma once #include #include #include #include #include #include #include #include #include #include "boost/algorithm/string.hpp" // for boost::split&trim #include "boost/function.hpp" #include "boost/unordered_map.hpp" #include "google/protobuf/text_format.h" #include "gflags/gflags.h" #ifdef BCLOUD #include "baidu/rpc/channel.h" #include "baidu/rpc/policy/giano_authenticator.h" #include "baidu/rpc/server.h" #include "base/comlog_sink.h" #include "base/logging.h" #include "base/object_pool.h" #include "base/time.h" #include "bthread.h" // NOLINT #else #include "brpc/channel.h" #include "brpc/policy/giano_authenticator.h" #include "brpc/server.h" #include "bthread/bthread.h" #include "butil/logging.h" #include "butil/object_pool.h" #include "butil/time.h" #endif #include "glog/raw_logging.h" #include "configure/include/configure_parser.h" #include "configure/server_configure.pb.h" #include "predictor/common/constant.h" #include "predictor/common/types.h" #include "predictor/common/utils.h" #ifdef BCLOUD namespace brpc = baidu::rpc; namespace butil = base; #endif