diff options
author | Arne Juul <arnej@verizonmedia.com> | 2021-06-11 13:08:42 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2021-06-11 13:08:42 +0000 |
commit | e97e12fec351222ff111c066a1dd8c831e436a36 (patch) | |
tree | 37d66683631587fbeac9e9770fdb2c1cb38a82b5 /configd/src/apps/sentinel/peer-check.h | |
parent | 6f8792b0acfa3e417d124b519b6383065a6bfd7a (diff) |
open up with more APIs
Diffstat (limited to 'configd/src/apps/sentinel/peer-check.h')
-rw-r--r-- | configd/src/apps/sentinel/peer-check.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configd/src/apps/sentinel/peer-check.h b/configd/src/apps/sentinel/peer-check.h index 096f304467b..ac124106387 100644 --- a/configd/src/apps/sentinel/peer-check.h +++ b/configd/src/apps/sentinel/peer-check.h @@ -17,6 +17,9 @@ public: PeerCheck(StatusCallback &callback, const std::string &host, int portnum, FRT_Supervisor &orb, int timeout_ms); ~PeerCheck(); + bool okStatus() const { return _statusOk; } + const std::string& getHostname() const { return _hostname; } + PeerCheck(const PeerCheck &) = delete; PeerCheck(PeerCheck &&) = delete; PeerCheck& operator= (const PeerCheck &) = delete; @@ -30,6 +33,7 @@ private: int _portnum; FRT_Target *_target; FRT_RPCRequest *_req; + bool _statusOk; }; } |