SOLA
|
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::RoutingInformation > | getRoutingInformation () |
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< AccessContainer > | getAccessContainer () const |
minhton::NodeInfo minhton::MinhtonNode::getNodeInfo | ( | ) | const |
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:
config | with all necessary information |