SOLA
Loading...
Searching...
No Matches
Public Member Functions | List of all members
sola::SOLA< StorageT, EventDisseminationT > Class Template Reference

Public Member Functions

 SOLA (const typename StorageT::Config &storage_config, const typename EventDisseminationT::Config &event_dissemination_config, TopicMessageReceiveFct topic_recv, LoggerPtr logger)
 Starts the SOLA instance.
 
void stop ()
 
bool canStop () const
 
void addService (Service service)
 
std::future< minhton::FindResult > findService (Request r)
 
void subscribeTopic (const std::string &topic)
 
void unsubscribeTopic (const std::string &topic)
 
solanet::UUID publishMessage (const std::string &topic, const std::string &message)
 
bool isStorageRunning () const
 

Constructor & Destructor Documentation

◆ SOLA()

template<typename StorageT , typename EventDisseminationT >
sola::SOLA< StorageT, EventDisseminationT >::SOLA ( const typename StorageT::Config &  storage_config,
const typename EventDisseminationT::Config &  event_dissemination_config,
TopicMessageReceiveFct  topic_recv,
LoggerPtr  logger 
)
inline

Starts the SOLA instance.

Parameters
storage_configconfiguration for storage
event_dissemination_configconfiguration for event dissemination
receive_fctfunction to be called when a new message is received
topic_recvfunction to be called when a new message on a topic arrives

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