diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 17:12:29 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 21:13:39 +0300 |
commit | cdd7ad020e165fe680703b6d3319b908b682fb7a (patch) | |
tree | b51eb09b7b4587e8fbc5624ac8d88d28cfcd0b04 /vendor/packaged/thrift/src/Server/TServer.php | |
parent | 45a9ff0c88cbd33892ff16ab837e9059937d656e (diff) |
jaeger-client -> opentelemetry
Diffstat (limited to 'vendor/packaged/thrift/src/Server/TServer.php')
-rw-r--r-- | vendor/packaged/thrift/src/Server/TServer.php | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/vendor/packaged/thrift/src/Server/TServer.php b/vendor/packaged/thrift/src/Server/TServer.php deleted file mode 100644 index 268c37820..000000000 --- a/vendor/packaged/thrift/src/Server/TServer.php +++ /dev/null @@ -1,102 +0,0 @@ -<?php - -namespace Thrift\Server; - -use Thrift\Factory\TTransportFactory; -use Thrift\Factory\TProtocolFactory; - -/** - * Generic class for a Thrift server. - * - * @package thrift.server - */ -abstract class TServer -{ - /** - * Processor to handle new clients - * - * @var TProcessor - */ - protected $processor_; - - /** - * Server transport to be used for listening - * and accepting new clients - * - * @var TServerTransport - */ - protected $transport_; - - /** - * Input transport factory - * - * @var TTransportFactory - */ - protected $inputTransportFactory_; - - /** - * Output transport factory - * - * @var TTransportFactory - */ - protected $outputTransportFactory_; - - /** - * Input protocol factory - * - * @var TProtocolFactory - */ - protected $inputProtocolFactory_; - - /** - * Output protocol factory - * - * @var TProtocolFactory - */ - protected $outputProtocolFactory_; - - /** - * Sets up all the factories, etc - * - * @param object $processor - * @param TServerTransport $transport - * @param TTransportFactory $inputTransportFactory - * @param TTransportFactory $outputTransportFactory - * @param TProtocolFactory $inputProtocolFactory - * @param TProtocolFactory $outputProtocolFactory - * @return void - */ - public function __construct( - $processor, - TServerTransport $transport, - TTransportFactory $inputTransportFactory, - TTransportFactory $outputTransportFactory, - TProtocolFactory $inputProtocolFactory, - TProtocolFactory $outputProtocolFactory - ) { - $this->processor_ = $processor; - $this->transport_ = $transport; - $this->inputTransportFactory_ = $inputTransportFactory; - $this->outputTransportFactory_ = $outputTransportFactory; - $this->inputProtocolFactory_ = $inputProtocolFactory; - $this->outputProtocolFactory_ = $outputProtocolFactory; - } - - /** - * Serves the server. This should never return - * unless a problem permits it to do so or it - * is interrupted intentionally - * - * @abstract - * @return void - */ - abstract public function serve(); - - /** - * Stops the server serving - * - * @abstract - * @return void - */ - abstract public function stop(); -} |