63 lines
1.7 KiB
C++
63 lines
1.7 KiB
C++
/*
|
|
* File: MemberDescription.h
|
|
* Author: jgaebler
|
|
*
|
|
* Created on July 29, 2010, 2:44 PM
|
|
*/
|
|
#pragma once
|
|
|
|
#ifndef MEMBERDESCRIPTION_H
|
|
#define MEMBERDESCRIPTION_H
|
|
|
|
#include "app/PeerDescription.h"
|
|
#include "common/transport/TransportAddress.h"
|
|
#include "ms/Peer.h"
|
|
|
|
#include <serializable.h>
|
|
|
|
|
|
namespace ubeeme {
|
|
namespace moversight {
|
|
|
|
class MemberDescription : public Serializable {
|
|
public:
|
|
|
|
MemberDescription();
|
|
MemberDescription(const Peer & p);
|
|
MemberDescription(const PeerID pID, const ubeeme::moversight::TransportAddress & ta, const State & s, const ClusterID cID, const PeerDescription & pd, const PeerResources & resource);
|
|
|
|
virtual ~MemberDescription();
|
|
|
|
void setPeerID(PeerID pID);
|
|
void setTransportAddress(const ubeeme::moversight::TransportAddress & a);
|
|
|
|
void setState(const State & s);
|
|
void setClusterID(ClusterID cID);
|
|
void setPeerDescription(const PeerDescription & pd);
|
|
void setPeerResources(const PeerResources & res);
|
|
|
|
virtual void set(Archive & archive);
|
|
|
|
PeerID getPeerID() const;
|
|
const ubeeme::moversight::TransportAddress & getTransportAddress() const;
|
|
const State & getState() const;
|
|
ClusterID getClusterID() const;
|
|
const PeerDescription & getPeerDescription() const;
|
|
const PeerResources & getPeerResources() const;
|
|
|
|
private:
|
|
|
|
PeerID pID;
|
|
ubeeme::moversight::TransportAddress address;
|
|
State state;
|
|
ClusterID clusterID;
|
|
PeerDescription pDesc;
|
|
PeerResources resources;
|
|
|
|
};
|
|
}
|
|
}
|
|
|
|
#endif /* MEMBERDESCRIPTION_H */
|
|
|