mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 08:41:16 +00:00
Add GetType() to UnmanagedRegion
This commit is contained in:
parent
ed2dcedf03
commit
9defa71622
|
@ -79,6 +79,7 @@ class FairMQUnmanagedRegion
|
||||||
virtual void SetLinger(uint32_t linger) = 0;
|
virtual void SetLinger(uint32_t linger) = 0;
|
||||||
virtual uint32_t GetLinger() const = 0;
|
virtual uint32_t GetLinger() const = 0;
|
||||||
|
|
||||||
|
virtual fair::mq::Transport GetType() const = 0;
|
||||||
FairMQTransportFactory* GetTransport() { return fTransport; }
|
FairMQTransportFactory* GetTransport() { return fTransport; }
|
||||||
void SetTransport(FairMQTransportFactory* transport) { fTransport = transport; }
|
void SetTransport(FairMQTransportFactory* transport) { fTransport = transport; }
|
||||||
|
|
||||||
|
|
|
@ -56,6 +56,8 @@ class UnmanagedRegion final : public fair::mq::UnmanagedRegion
|
||||||
void SetLinger(uint32_t linger) override { fManager.GetRegion(fRegionId)->SetLinger(linger); }
|
void SetLinger(uint32_t linger) override { fManager.GetRegion(fRegionId)->SetLinger(linger); }
|
||||||
uint32_t GetLinger() const override { return fManager.GetRegion(fRegionId)->GetLinger(); }
|
uint32_t GetLinger() const override { return fManager.GetRegion(fRegionId)->GetLinger(); }
|
||||||
|
|
||||||
|
Transport GetType() const override { return fair::mq::Transport::SHM; }
|
||||||
|
|
||||||
~UnmanagedRegion() override { fManager.RemoveRegion(fRegionId); }
|
~UnmanagedRegion() override { fManager.RemoveRegion(fRegionId); }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -51,6 +51,8 @@ class UnmanagedRegion final : public fair::mq::UnmanagedRegion
|
||||||
void SetLinger(uint32_t /* linger */) override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; }
|
void SetLinger(uint32_t /* linger */) override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; }
|
||||||
uint32_t GetLinger() const override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; return 0; }
|
uint32_t GetLinger() const override { LOG(debug) << "ZeroMQ UnmanagedRegion linger option not implemented. Acknowledgements are local."; return 0; }
|
||||||
|
|
||||||
|
Transport GetType() const override { return Transport::ZMQ; }
|
||||||
|
|
||||||
virtual ~UnmanagedRegion()
|
virtual ~UnmanagedRegion()
|
||||||
{
|
{
|
||||||
LOG(debug) << "destroying region " << fId;
|
LOG(debug) << "destroying region " << fId;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user