#ifndef RESSOURCEVALUEUPDATE_H #define RESSOURCEVALUEUPDATE_H #include "mt/msg/MulticastMessage.h" #include "ms/PeerResources.h" namespace ubeeme { namespace moversight { /** * @brief Message for resource value updates * @class ResourceValueMetric * @author Felix Stubbe * @ingroup Moversight */ class ResourceValueUpdate : public MulticastMessage { public: ResourceValueUpdate(const PeerResources & resourceValue, PeerID peerID); virtual ~ResourceValueUpdate(); ResourceValueUpdate(const ResourceValueUpdate& other); ResourceValueUpdate& operator=(const ResourceValueUpdate& other); ResourceValueUpdate * dup() const; void handleReceive(Dispatcher & dis); void handleDeliver(Dispatcher & dis, const PeerIDList & missedPeers); private: PeerResources resources; PeerID peerID; }; } } #endif // RESSOURCEVALUEUPDATE_H