OpenSDN source code
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
MetadataClient Class Reference

#include <metadata_client.h>

Inheritance diagram for MetadataClient:
Collaboration diagram for MetadataClient:

Public Member Functions

 MetadataClient (EventManager *evm)
 
virtual ~MetadataClient ()
 
virtual TcpSessionAllocSession (Socket *socket)
 
- Public Member Functions inherited from HttpClient
 HttpClient (EventManager *evm, std::string task_name=std::string("http client"))
 
virtual ~HttpClient ()
 
void Init ()
 
void Shutdown ()
 
void SessionShutdown ()
 
virtual TcpSessionCreateSession ()
 
HttpConnectionCreateConnection (boost::asio::ip::tcp::endpoint)
 
HttpConnectionCreateConnection (const std::string &host, int port)
 
bool AddConnection (HttpConnection *)
 
void RemoveConnection (HttpConnection *)
 
void ProcessEvent (EnqueuedCb cb)
 
struct _GlobalInfoGlobalInfo ()
 
boost::asio::io_context * io_service ()
 
void StartTimer (long)
 
void CancelTimer ()
 
bool IsErrorHard (const boost::system::error_code &ec)
 
- Public Member Functions inherited from TcpServer
 TcpServer (EventManager *evm)
 
virtual ~TcpServer ()
 
virtual bool Initialize (unsigned short port)
 
virtual bool Initialize (unsigned short port, const IpAddress &host_ip, int intf_id=-1)
 
bool InitializeInternal (boost::asio::ip::tcp::endpoint localaddr)
 
const std::string ToString () const
 
void SetAcceptor ()
 
void ResetAcceptor ()
 
void Shutdown ()
 
void ClearSessions ()
 
void UpdateSessionsDscp (uint8_t dscp)
 
virtual void DeleteSession (TcpSession *session)
 
virtual void Connect (TcpSession *session, Endpoint remote)
 
virtual bool DisableSandeshLogMessages () const
 
int GetPort () const
 
const io::SocketStatsGetSocketStats () const
 
size_t GetSessionCount () const
 
EventManagerevent_manager ()
 
bool HasSessionReadAvailable () const
 
bool HasSessions () const
 
TcpSessionGetSession (Endpoint remote)
 
void WaitForEmpty ()
 
void GetRxSocketStats (SocketIOStats *socket_stats) const
 
void GetTxSocketStats (SocketIOStats *socket_stats) const
 
void GetRxSocketStats (SocketIOStats &socket_stats) const
 
void GetTxSocketStats (SocketIOStats &socket_stats) const
 
int SetMd5SocketOption (NativeSocketType fd, uint32_t peer_ip, const std::string &md5_password)
 
int SetListenSocketMd5Option (uint32_t peer_ip, const std::string &md5_password)
 
int SetDscpSocketOption (NativeSocketType fd, uint8_t value)
 
uint8_t GetDscpValue (NativeSocketType fd) const
 
int SetListenSocketDscp (uint8_t value)
 
int SetSocketOptions (const SandeshConfig &sandesh_config)
 
int SetKeepAliveSocketOption (int fd, const SandeshConfig &sandesh_config)
 

Private Member Functions

 DISALLOW_COPY_AND_ASSIGN (MetadataClient)
 

Additional Inherited Members

- Public Types inherited from TcpServer
typedef
boost::asio::ip::tcp::endpoint 
Endpoint
 
typedef
boost::asio::ip::tcp::socket 
Socket
 
typedef
boost::asio::ip::tcp::socket::native_handle_type 
NativeSocketType
 
- Static Public Attributes inherited from HttpClient
static const uint32_t kDefaultTimeout = 1
 
- Protected Types inherited from TcpServer
typedef boost::intrusive_ptr
< TcpServer
TcpServerPtr
 
typedef boost::intrusive_ptr
< TcpSession
TcpSessionPtr
 
- Protected Member Functions inherited from TcpServer
virtual TcpSessionAllocSession (bool server_session)
 
virtual Socketaccept_socket () const
 
virtual void set_accept_socket ()
 
virtual bool AcceptSession (TcpSession *session)
 
void set_socket_open_failure (bool flag)
 
bool socket_open_failure () const
 
Endpoint LocalEndpoint () const
 
virtual void AcceptHandlerComplete (TcpSessionPtr session)
 
virtual void ConnectHandlerComplete (TcpSessionPtr session)
 

Detailed Description

Definition at line 11 of file metadata_client.h.

Constructor & Destructor Documentation

MetadataClient::MetadataClient ( EventManager evm)
inline

Definition at line 13 of file metadata_client.h.

virtual MetadataClient::~MetadataClient ( )
inlinevirtual

Definition at line 14 of file metadata_client.h.

Member Function Documentation

virtual TcpSession* MetadataClient::AllocSession ( Socket socket)
inlinevirtual

Reimplemented from HttpClient.

Definition at line 16 of file metadata_client.h.

MetadataClient::DISALLOW_COPY_AND_ASSIGN ( MetadataClient  )
private

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