9 #ifndef FAIR_MQ_SDK_DDSSAGENT_H
10 #define FAIR_MQ_SDK_DDSSAGENT_H
12 #include <fairmq/sdk/DDSSession.h>
19 namespace fair::mq::sdk
37 std::chrono::milliseconds startupTime,
39 : fSession(std::move(session))
42 , fDDSPath(std::move(path))
43 , fHost(std::move(host))
44 , fStartupTime(startupTime)
45 , fUsername(std::move(username))
48 DDSSession GetSession()
const {
return fSession; }
49 Id GetId()
const {
return fId; }
50 Pid GetPid()
const {
return fPid; }
51 std::string GetHost()
const {
return fHost; }
52 std::string GetDDSPath()
const {
return fDDSPath; }
53 std::chrono::milliseconds GetStartupTime()
const {
return fStartupTime; }
54 std::string GetUsername()
const {
return fUsername; }
56 friend auto operator<<(std::ostream& os,
const DDSAgent& agent) -> std::ostream&
58 return os <<
"DDSAgent id: " << agent.fId
59 <<
", pid: " << agent.fPid
60 <<
", path: " << agent.fDDSPath
61 <<
", host: " << agent.fHost
62 <<
", startupTime: " << agent.fStartupTime.count()
63 <<
", username: " << agent.fUsername;
72 std::chrono::milliseconds fStartupTime;
73 std::string fUsername;