/******************************************************************************* * Copyright 上海赜睿信息科技有限公司(Zilliz) - All Rights Reserved * Unauthorized copying of this file, via any medium is strictly prohibited. * Proprietary and confidential. ******************************************************************************/ #include "metrics/Metrics.h" #include "MegasearchThreadPoolServer.h" namespace zilliz { namespace vecwise { namespace server { void MegasearchThreadPoolServer::onClientConnected(const std::shared_ptr &pClient) { server::Metrics::GetInstance().ConnectionGaugeIncrement(); TThreadPoolServer::onClientConnected(pClient); } void MegasearchThreadPoolServer::onClientDisconnected(apache::thrift::server::TConnectedClient *pClient) { server::Metrics::GetInstance().ConnectionGaugeDecrement(); TThreadPoolServer::onClientDisconnected(pClient); } zilliz::vecwise::server::MegasearchThreadPoolServer::MegasearchThreadPoolServer(const std::shared_ptr &processor, const std::shared_ptr &serverTransport, const std::shared_ptr &transportFactory, const std::shared_ptr &protocolFactory, const std::shared_ptr &threadManager) : TThreadPoolServer(processor, serverTransport, transportFactory, protocolFactory, threadManager) { } } } }