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(). |
template<typename TserverBase , typename TserverClass>
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.
template<typename TserverBase , typename TserverClass >
Returns the endpoint string of this application.
template<typename TserverBase , typename TserverClass >
The application singleton instance function.
template<typename TserverBase, typename TserverClass>
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. |
template<typename TserverBase, typename TserverClass>
template<typename TserverBase, typename TserverClass>
template<typename TserverBase, typename TserverClass>
Max number of attempts when checking the Thrift runtime for Initialization before giving up. Set in the Thrift config file (see Configuration).
template<typename TserverBase, typename TserverClass>
Maximum number of threads to create when serving multiple rpc clients. Set in the Thrift config file (see Configuration).
template<typename TserverBase, typename TserverClass>
Default packet size for the IP payload of thrift packets. Set in the Thrift config file (see Configuration).
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).
template<typename TserverBase, typename TserverClass>
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: