Line data Source code
1 : /* 2 : * Copyright (c) 2015 Juniper Networks, Inc. All rights reserved. 3 : */ 4 : 5 : #ifndef IFMAP__IFMAP_SANDESH_CONTEXT_H__ 6 : #define IFMAP__IFMAP_SANDESH_CONTEXT_H__ 7 : 8 : #include <sandesh/sandesh.h> 9 : 10 : class IFMapServer; 11 : 12 : class IFMapSandeshContext : public SandeshContext { 13 : public: 14 123 : IFMapSandeshContext(IFMapServer *ifmap_server) 15 123 : : ifmap_server_(ifmap_server), page_limit_(0), iter_limit_(0) { 16 123 : } 17 532 : uint32_t page_limit() const { return page_limit_; } 18 56 : void set_page_limit(uint32_t page_limit) { page_limit_ = page_limit; } 19 : uint32_t iter_limit() const { return iter_limit_; } 20 : void set_iter_limit(uint32_t iter_limit) { iter_limit_ = iter_limit; } 21 : 22 238 : IFMapServer *ifmap_server() { return ifmap_server_; } 23 : 24 : private: 25 : IFMapServer *ifmap_server_; 26 : uint32_t page_limit_; 27 : uint32_t iter_limit_; 28 : }; 29 : 30 : #endif // IFMAP__IFMAP_SANDESH_CONTEXT_H__