Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
eclipse::FileLeaderRouter Class Reference

#include <file_leader_router.hh>

Inheritance diagram for eclipse::FileLeaderRouter:
Inheritance graph
Collaboration diagram for eclipse::FileLeaderRouter:
Collaboration graph

Public Member Functions

 FileLeaderRouter (FileLeader *, Router *)
 
 ~FileLeaderRouter ()=default
 
- Public Member Functions inherited from eclipse::RouterDecorator
 RouterDecorator (Router *)
 
virtual ~RouterDecorator ()=default
 
virtual void on_read (messages::Message *, Channel *)
 
- Public Member Functions inherited from eclipse::Router
 Router ()=default
 
virtual ~Router ()=default
 
- Public Member Functions inherited from eclipse::network::NetObserver
virtual ~NetObserver ()
 

Protected Member Functions

void insert_file (messages::Message *, Channel *)
 
void update_file (messages::Message *, Channel *)
 
void request_file (messages::Message *, Channel *)
 
void request_ls (messages::Message *, Channel *)
 
void delete_file (messages::Message *, Channel *)
 
void file_exist (messages::Message *, Channel *)
 
void replicate_metadata (messages::Message *, Channel *)
 
void request_format (messages::Message *, Channel *)
 

Protected Attributes

FileLeaderfile_leader
 
- Protected Attributes inherited from eclipse::RouterDecorator
std::unique_ptr< Routerrouter
 
- Protected Attributes inherited from eclipse::Router
std::map< std::string,
std::function< void(messages::Message
*, Channel *)> > 
routing_table
 

Constructor & Destructor Documentation

FileLeaderRouter::FileLeaderRouter ( FileLeader fl,
Router router 
)
eclipse::FileLeaderRouter::~FileLeaderRouter ( )
default

Member Function Documentation

void FileLeaderRouter::delete_file ( messages::Message m_,
Channel tcp_connection 
)
protected
void FileLeaderRouter::file_exist ( messages::Message m_,
Channel tcp_connection 
)
protected
void FileLeaderRouter::insert_file ( messages::Message m_,
Channel tcp_connection 
)
protected
void FileLeaderRouter::replicate_metadata ( messages::Message m_,
Channel tcp_connection 
)
protected
void FileLeaderRouter::request_file ( messages::Message m_,
Channel tcp_connection 
)
protected
void FileLeaderRouter::request_format ( messages::Message m_,
Channel tcp_connection 
)
protected
void FileLeaderRouter::request_ls ( messages::Message m_,
Channel tcp_connection 
)
protected
void FileLeaderRouter::update_file ( messages::Message m_,
Channel tcp_connection 
)
protected

Member Data Documentation

FileLeader* eclipse::FileLeaderRouter::file_leader
protected

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