aboutsummaryrefslogtreecommitdiffstats
path: root/configd/src/apps/sentinel/peer-check.h
diff options
context:
space:
mode:
Diffstat (limited to 'configd/src/apps/sentinel/peer-check.h')
-rw-r--r--configd/src/apps/sentinel/peer-check.h4
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;
};
}