77 lines
2.6 KiB
C++
77 lines
2.6 KiB
C++
/*
|
|
* File: UbeemeConnector.h
|
|
* Author: noackrob
|
|
*
|
|
* Created on August 12, 2013, 2:48 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef UBEEMECONNECTOR_H
|
|
#define UBEEMECONNECTOR_H
|
|
|
|
#include "common/MoversightService.h"
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
/**
|
|
* @brief Service to provide access to other ubeeme components via its own event system
|
|
*
|
|
* If ubeeme support is enabled, this service will receive every event generated
|
|
* by internal moversight modules and inform other components within the ubeeme
|
|
* system.
|
|
*
|
|
* @class UbeemeConnector
|
|
* @author Robert Noack
|
|
* @ingroup Moversight
|
|
*/
|
|
#if OMNETPP
|
|
|
|
class UbeemeConnector : public MoversightService {
|
|
#else
|
|
|
|
class UbeemeConnector : public MoversightService, public EventSender {
|
|
#endif
|
|
public:
|
|
UbeemeConnector(Dispatcher & dis);
|
|
UbeemeConnector(const UbeemeConnector& other);
|
|
UbeemeConnector& operator=(const UbeemeConnector& other);
|
|
virtual ~UbeemeConnector();
|
|
|
|
virtual void initialise();
|
|
virtual void finalise();
|
|
|
|
virtual void handleEvent(const ConnectionLostEvent& e);
|
|
virtual void handleEvent(const ConnectionReEstablishedEvent& e);
|
|
virtual void handleEvent(const UnableToReconnectToGroupEvent& e);
|
|
|
|
virtual void handleEvent(const GroupCreatedEvent& e);
|
|
virtual void handleEvent(const GroupClosedEvent& e);
|
|
|
|
virtual void handleEvent(const PeerJoinedEvent& e);
|
|
virtual void handleEvent(const PeerLeftEvent& e);
|
|
virtual void handleEvent(const PeerReconnectedEvent& e);
|
|
virtual void handleEvent(const PendingPeersEvent& e);
|
|
virtual void handleEvent(const LocalPeerUpdatedEvent& e);
|
|
|
|
virtual void handleEvent(const JoinGroupDoneEvent& e);
|
|
virtual void handleEvent(const RejoinDoneEvent& e);
|
|
virtual void handleEvent(const RejoinFailedEvent& e);
|
|
|
|
virtual void handleEvent(const FlushStartEvent& e);
|
|
virtual void handleEvent(const SplitDoneEvent& e);
|
|
virtual void handleEvent(const SplitAbortEvent& e);
|
|
virtual void handleEvent(const MergeRequestEvent& e);
|
|
virtual void handleEvent(const MergeConfirmEvent& e);
|
|
virtual void handleEvent(const MergeRejectedEvent& e);
|
|
virtual void handleEvent(const MergeAbortEvent& e);
|
|
virtual void handleEvent(const MergeDoneEvent& e);
|
|
|
|
};
|
|
|
|
}
|
|
}
|
|
|
|
#endif /* UBEEMECONNECTOR_H */
|
|
|