/* * File: SynchronizationService.h * Author: jgaebler * * Created on July 26, 2012, 9:28 AM */ #pragma once #ifndef SYNCHRONIZATIONSERVICE_H #define SYNCHRONIZATIONSERVICE_H #include "common/Defines.h" #include "common/MoversightService.h" namespace ubeeme { namespace moversight { class MulticastMessage; class StorageService; /** * @class SynchronizationService * @author Jan Gäbler * @brief This service provides synchronization related group communication services, to ensure the virtual synchrony within the group. * @ingroup Moversight */ class SynchronizationService : public MoversightService { public: SynchronizationService(Dispatcher & dis); virtual ~SynchronizationService(); virtual void initialise(); virtual void finalise(); void storeMessage( MulticastMessage & msg); bool synchronize(); private: StorageService * storage; }; } } #endif /* SYNCHRONIZATIONSERVICE_H */