thrift_application_base
gnuradio/thrift_application_base.h
typename TserverBase
typename TserverClass
TserverClass * TserverClass * thrift_application_base< TserverBase, TserverClass >::d_application d_application thrift_application_base::d_application

Reference to the fully derived application instance.

thrift_application_base< TserverBase, TserverClass >::thrift_application_base
const unsigned int const unsigned int thrift_application_base< TserverBase, TserverClass >::d_default_max_init_attempts d_default_max_init_attempts thrift_application_base::d_default_max_init_attempts

Max number of attempts when checking the Thrift runtime for Initialization before giving up. Set in the Thrift config file (see Configuration).

const unsigned int const unsigned int thrift_application_base< TserverBase, TserverClass >::d_default_thrift_port d_default_thrift_port thrift_application_base::d_default_thrift_port

Default port for the runtime to listen on, if a static port is not specified. Set in the Thrift config file (see Configuration).

const unsigned int const unsigned int thrift_application_base< TserverBase, TserverClass >::d_default_num_thrift_threads d_default_num_thrift_threads thrift_application_base::d_default_num_thrift_threads

Maximum number of threads to create when serving multiple rpc clients. Set in the Thrift config file (see Configuration).

const unsigned int const unsigned int thrift_application_base< TserverBase, TserverClass >::d_default_thrift_buffer_size d_default_thrift_buffer_size thrift_application_base::d_default_thrift_buffer_size

Default packet size for the IP payload of thrift packets. Set in the Thrift config file (see Configuration).

std::unique_ptr< apache::thrift::server::TServer > std::unique_ptr<apache::thrift::server::TServer> thrift_application_base< TserverBase, TserverClass >::d_thriftserver d_thriftserver thrift_application_base::d_thriftserver

Reference to the Thrift runtime.

gr::logger_ptr gr::logger_ptr thrift_application_base< TserverBase, TserverClass >::d_logger d_logger thrift_application_base::d_logger

Logging instances.

thrift_application_base< TserverBase, TserverClass >::thrift_application_base
gr::logger_ptr gr::logger_ptr thrift_application_base< TserverBase, TserverClass >::d_debug_logger d_debug_logger thrift_application_base::d_debug_logger thrift_application_base< TserverBase, TserverClass >::thrift_application_base
std::unique_ptr< thrift_application_base_impl > std::unique_ptr<thrift_application_base_impl> thrift_application_base< TserverBase, TserverClass >::p_impl p_impl thrift_application_base::p_impl
gr::thread::mutex gr::thread::mutex thrift_application_base< TserverBase, TserverClass >::d_lock d_lock thrift_application_base::d_lock
bool bool thrift_application_base< TserverBase, TserverClass >::d_thirft_is_running d_thirft_is_running thrift_application_base::d_thirft_is_running
thrift_application_base< TserverBase, TserverClass >::thrift_application_base
(TserverClass *_app)
thrift_application_base
thrift_application_base::thrift_application_base
TserverClass * _app
gr::configure_default_loggers
thrift_application_base< TserverBase, TserverClass >::d_application
thrift_application_base< TserverBase, TserverClass >::d_debug_logger
thrift_application_base< TserverBase, TserverClass >::d_logger
thrift_application_base< TserverBase, TserverClass >::~thrift_application_base
()
~thrift_application_base
thrift_application_base::~thrift_application_base

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.

TserverBase * TserverBase * thrift_application_base< TserverBase, TserverClass >::i () i thrift_application_base::i

The application singleton instance function.

const std::vector< std::string > const std::vector< std::string > thrift_application_base< TserverBase, TserverClass >::endpoints () endpoints thrift_application_base::endpoints

Returns the endpoint string of this application.

void void thrift_application_base< TserverBase, TserverClass >::set_endpoint (const std::string &endpoint) set_endpoint thrift_application_base::set_endpoint const std::string & endpoint

Allows this application's booter to set the endpoint string after the Thrift runtime has initialized.

endpoint

The endpoint string reported by this class.

TserverBase * virtual TserverBase * thrift_application_base< TserverBase, TserverClass >::i_impl ()=0 i_impl thrift_application_base::i_impl i_impl i_impl
void void thrift_application_base< TserverBase, TserverClass >::start_thrift () start_thrift thrift_application_base::start_thrift
bool bool thrift_application_base< TserverBase, TserverClass >::application_started () application_started thrift_application_base::application_started
void void thrift_application_base< TserverBase, TserverClass >::start_application () start_application thrift_application_base::start_application

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.

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().

std::shared_ptr< logger >
std::unique_ptr< apache::thrift::server::TServer >
thrift_application_base< TserverBase, TserverClass >
d_thriftserver
d_debug_logger
d_logger
- thrift_application_base
  application_started
- thrift_application_base
  d_application
- thrift_application_base
  d_debug_logger
- thrift_application_base
  d_default_max_init_attempts
- thrift_application_base
  d_default_num_thrift_threads
- thrift_application_base
  d_default_thrift_buffer_size
- thrift_application_base
  d_default_thrift_port
- thrift_application_base
  d_lock
- thrift_application_base
  d_logger
- thrift_application_base
  d_thirft_is_running
- thrift_application_base
  d_thriftserver
- thrift_application_base
  endpoints
- thrift_application_base
  i
- thrift_application_base
  i_impl
- thrift_application_base
  p_impl
- thrift_application_base
  set_endpoint
- thrift_application_base
  start_application
- thrift_application_base
  start_thrift
- thrift_application_base
  thrift_application_base
- thrift_application_base
  ~thrift_application_base