Base class for a Thrift application with a singleton with instance function thrift_application_base::i(). Lazy initialization is used to start the Thrift runtime, therefore the Thrift runtime is not started unless thrift_application_base::i() is called at least once. This typically means that at least one rpc variable must be registered by a block before the runtime will start.
More...
#include <gnuradio/thrift_application_base.h>
|
static TserverBase * | i () |
|
static const std::vector< std::string > | endpoints () |
|
template<typename TserverBase, typename TserverClass>
class thrift_application_base< TserverBase, TserverClass >
Base class for a Thrift application with a singleton with instance function thrift_application_base::i(). Lazy initialization is used to start the Thrift runtime, therefore the Thrift runtime is not started unless thrift_application_base::i() is called at least once. This typically means that at least one rpc variable must be registered by a block before the runtime will start.
- Parameters
-
TserverBase | Template parameter naming the type of the server base, which is typically rpcserverbase. |
TserverClass | Template parameter naming the eventual type of the fully derived application. |
_app | Reference to the fully derived application instance to be returned by thrift_application_base::i(). |
◆ thrift_application_base()
template<typename TserverBase , typename TserverClass>
◆ ~thrift_application_base()
template<typename TserverBase, typename TserverClass>
Destructor for the application. Since shutdown and cleanup of the runtime is typically custom to a particular booter implementation, this must be implemented as a specialized function for a particular booter. Thus a template implementation is not provided here.
◆ endpoints()
template<typename TserverBase , typename TserverClass >
Returns the endpoint string of this application.
◆ i()
template<typename TserverBase , typename TserverClass >
The application singleton instance function.
◆ i_impl()
template<typename TserverBase, typename TserverClass>
◆ set_endpoint()
template<typename TserverBase , typename TserverClass >
Allows this application's booter to set the endpoint string after the Thrift runtime has initialized.
- Parameters
-
[in] | endpoint | The endpoint string reported by this class. |
◆ d_application
template<typename TserverBase, typename TserverClass>
◆ d_debug_logger
template<typename TserverBase, typename TserverClass>
◆ d_default_max_init_attempts
template<typename TserverBase, typename TserverClass>
◆ d_default_num_thrift_threads
template<typename TserverBase, typename TserverClass>
Maximum number of threads to create when serving multiple rpc clients. Set in the Thrift config file (see Configuration).
◆ d_default_thrift_buffer_size
template<typename TserverBase, typename TserverClass>
Default packet size for the IP payload of thrift packets. Set in the Thrift config file (see Configuration).
◆ d_default_thrift_port
template<typename TserverBase, typename TserverClass>
Default port for the runtime to listen on, if a static port is not specified. Set in the Thrift config file (see Configuration).
◆ d_logger
template<typename TserverBase, typename TserverClass>
◆ d_thriftserver
template<typename TserverBase, typename TserverClass>
boost::scoped_ptr<apache::thrift::server::TServer> thrift_application_base< TserverBase, TserverClass >::d_thriftserver |
|
protected |
Reference to the Thrift runtime.
The documentation for this class was generated from the following file: