1 #ifndef _TRANSPORT_CONTEXT_INL_ 2 #define _TRANSPORT_CONTEXT_INL_ 65 uint64_t current_time)
72 uint64_t message_time)
137 #endif // _TRANSPORT_CONTEXT_INL_ This class encapsulates an entry in a KnowledgeBase.
void set_send_bandwidth(uint64_t bandwidth)
Sets the bandwidth used for sends/rebroadcast in bytes per second.
void clear_records(void)
Clears records added through filtering operations.
const knowledge::KnowledgeMap & get_records(void) const
Returns the additional records stored in the context.
uint64_t send_bandwidth_
Bandwidth being utilized for send operations.
knowledge::KnowledgeMap records_
Context specific records.
std::string originator_
Originator of the current message.
void set_operation(int64_t operation)
Sets the operation that the context is/should be performing.
uint64_t get_receive_bandwidth(void) const
Gets the receive bandwidth in bytes per second.
int64_t operation_
Operation being performed.
uint64_t get_current_time(void) const
Gets the current timestamp.
int64_t get_operation(void) const
Get operation that the context is performing.
void set_domain(const std::string &domain)
Sets the network domain.
std::string endpoint_
Public endpoint of the current message.
void set_endpoint(const std::string &endpoint)
Sets the current message endpoint.
void set_receive_bandwidth(uint64_t bandwidth)
Sets the bandwidth used for receives in bytes per second.
::std::map< std::string, KnowledgeRecord > KnowledgeMap
void set_message_time(uint64_t message_time)
Sets the message time.
void add_record(const std::string &key, const madara::knowledge::KnowledgeRecord &record)
Adds a record to the list that should be appended to send or rebroadcast.
uint64_t receive_bandwidth_
Bandwidth being utilized for receive operations.
uint64_t get_message_time(void) const
Gets the message timestamp.
void set_originator(const std::string &originator)
Sets the current message originator.
uint64_t current_time_
Current timestamp.
std::string domain_
Networking domain.
const std::string & get_endpoint(void) const
Returns the current message endpoint.
void set_records(const knowledge::KnowledgeMap &source)
Sets the current message originator.
const std::string & get_domain(void) const
Returns the network domain.
const std::string & get_originator(void) const
Returns the current message originator.
void set_current_time(uint64_t current_time)
Sets the current time.
uint64_t message_time_
Message timestamp.
uint64_t get_send_bandwidth(void) const
Gets the send/rebroadcast bandwidth in bytes per second.