SOLA
Loading...
Searching...
No Matches
Public Member Functions | List of all members
minhton::MinhtonNode Class Reference

Public Member Functions

 MinhtonNode (const ConfigNode &config_node, NeighborCallbackFct fct=NeighborCallbackFct{}, bool auto_start=true)
 Constructor.
 
void setConfig (const minhton::ConfigNode &config)
 
void stop ()
 
virtual ~MinhtonNode ()=default
 Destructor.
 
minhton::NodeInfo getNodeInfo () const
 
void processSignal (Signal signal)
 
void initFSM (minhton::FSMState &init_state)
 
FSMState getFsmState () const
 
std::shared_ptr< minhton::RoutingInformationgetRoutingInformation ()
 
void insert (const std::vector< Entry > &data)
 
void update (const std::vector< Entry > &data)
 
void remove (const std::vector< std::string > &keys)
 
std::future< FindResult > find (const std::string &query)
 
std::future< FindResult > find (const FindQuery &query)
 
void performSearchExactTest (const minhton::NodeInfo &destination, std::shared_ptr< minhton::MessageSEVariant > query)
 
std::shared_ptr< AccessContainergetAccessContainer () const
 

Member Function Documentation

◆ getNodeInfo()

minhton::NodeInfo minhton::MinhtonNode::getNodeInfo ( ) const
Returns
the node information of this node

◆ setConfig()

void minhton::MinhtonNode::setConfig ( const minhton::ConfigNode config)

Giving the node every necessary information about itself to start.

We simply set the given address, port and name.

If we are root, config.isRoot() is true and we will only initialize our self_node_info with the position 0:0 and initialize our routing information.

If we are not root, we only initialize self_node_info without further information.

Typical usage:

node->setConfig(config);
Parameters
configwith all necessary information
Returns
void

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