iceberg-cpp
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
facebook::fb303::FacebookServiceMultiface Class Reference
Inheritance diagram for facebook::fb303::FacebookServiceMultiface:
facebook::fb303::FacebookServiceIf Apache::Hadoop::Hive::ThriftHiveMetastoreMultiface

Public Member Functions

 FacebookServiceMultiface (std::vector< std::shared_ptr< FacebookServiceIf > > &ifaces)
 
void getName (std::string &_return) override
 
void getVersion (std::string &_return) override
 
fb_status::type getStatus () override
 
void getStatusDetails (std::string &_return) override
 
void getCounters (std::map< std::string, int64_t > &_return) override
 
int64_t getCounter (const std::string &key) override
 
void setOption (const std::string &key, const std::string &value) override
 
void getOption (std::string &_return, const std::string &key) override
 
void getOptions (std::map< std::string, std::string > &_return) override
 
void getCpuProfile (std::string &_return, const int32_t profileDurationInSec) override
 
int64_t aliveSince () override
 
void reinitialize () override
 
void shutdown () override
 

Protected Member Functions

void add (::std::shared_ptr< FacebookServiceIf > iface)
 

Protected Attributes

std::vector< std::shared_ptr< FacebookServiceIf > > ifaces_
 

Member Function Documentation

◆ aliveSince()

int64_t facebook::fb303::FacebookServiceMultiface::aliveSince ( )
inlineoverridevirtual

Returns the unix time that the server has been running since

Implements facebook::fb303::FacebookServiceIf.

◆ getCounter()

int64_t facebook::fb303::FacebookServiceMultiface::getCounter ( const std::string &  key)
inlineoverridevirtual

Gets the value of a single counter

Parameters
key

Implements facebook::fb303::FacebookServiceIf.

◆ getCounters()

void facebook::fb303::FacebookServiceMultiface::getCounters ( std::map< std::string, int64_t > &  _return)
inlineoverridevirtual

Gets the counters for this service

Implements facebook::fb303::FacebookServiceIf.

◆ getCpuProfile()

void facebook::fb303::FacebookServiceMultiface::getCpuProfile ( std::string &  _return,
const int32_t  profileDurationInSec 
)
inlineoverridevirtual

Returns a CPU profile over the given time interval (client and server must agree on the profile format).

Parameters
profileDurationInSec

Implements facebook::fb303::FacebookServiceIf.

◆ getName()

void facebook::fb303::FacebookServiceMultiface::getName ( std::string &  _return)
inlineoverridevirtual

Returns a descriptive name of the service

Implements facebook::fb303::FacebookServiceIf.

◆ getOption()

void facebook::fb303::FacebookServiceMultiface::getOption ( std::string &  _return,
const std::string &  key 
)
inlineoverridevirtual

Gets an option

Parameters
key

Implements facebook::fb303::FacebookServiceIf.

◆ getOptions()

void facebook::fb303::FacebookServiceMultiface::getOptions ( std::map< std::string, std::string > &  _return)
inlineoverridevirtual

Gets all options

Implements facebook::fb303::FacebookServiceIf.

◆ getStatus()

fb_status::type facebook::fb303::FacebookServiceMultiface::getStatus ( )
inlineoverridevirtual

Gets the status of this service

Implements facebook::fb303::FacebookServiceIf.

◆ getStatusDetails()

void facebook::fb303::FacebookServiceMultiface::getStatusDetails ( std::string &  _return)
inlineoverridevirtual

User friendly description of status, such as why the service is in the dead or warning state, or what is being started or stopped.

Implements facebook::fb303::FacebookServiceIf.

◆ getVersion()

void facebook::fb303::FacebookServiceMultiface::getVersion ( std::string &  _return)
inlineoverridevirtual

Returns the version of the service

Implements facebook::fb303::FacebookServiceIf.

◆ reinitialize()

void facebook::fb303::FacebookServiceMultiface::reinitialize ( )
inlineoverridevirtual

Tell the server to reload its configuration, reopen log files, etc

Implements facebook::fb303::FacebookServiceIf.

◆ setOption()

void facebook::fb303::FacebookServiceMultiface::setOption ( const std::string &  key,
const std::string &  value 
)
inlineoverridevirtual

Sets an option

Parameters
key
value

Implements facebook::fb303::FacebookServiceIf.

◆ shutdown()

void facebook::fb303::FacebookServiceMultiface::shutdown ( )
inlineoverridevirtual

Suggest a shutdown to the server

Implements facebook::fb303::FacebookServiceIf.


The documentation for this class was generated from the following file: