OpenSDN source code
ifmap_sandesh_context.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
3
* Copyright Contributors to the OpenSDN project
4
*/
5
6
#ifndef IFMAP__IFMAP_SANDESH_CONTEXT_H__
7
#define IFMAP__IFMAP_SANDESH_CONTEXT_H__
8
9
#include <sandesh/sandesh.h>
10
11
class
IFMapServer
;
12
13
class
IFMapSandeshContext
:
public
SandeshContext
{
14
public
:
15
IFMapSandeshContext
(
IFMapServer
*
ifmap_server
)
16
:
ifmap_server_
(
ifmap_server
),
page_limit_
(0),
iter_limit_
(0) {
17
}
18
uint32_t
page_limit
()
const
{
return
page_limit_
; }
19
void
set_page_limit
(uint32_t
page_limit
) {
page_limit_
=
page_limit
; }
20
uint32_t
iter_limit
()
const
{
return
iter_limit_
; }
21
void
set_iter_limit
(uint32_t
iter_limit
) {
iter_limit_
=
iter_limit
; }
22
23
IFMapServer
*
ifmap_server
() {
return
ifmap_server_
; }
24
25
private
:
26
IFMapServer
*
ifmap_server_
;
27
uint32_t
page_limit_
;
28
uint32_t
iter_limit_
;
29
};
30
31
#endif
// IFMAP__IFMAP_SANDESH_CONTEXT_H__
IFMapSandeshContext
Definition:
ifmap_sandesh_context.h:13
IFMapSandeshContext::page_limit_
uint32_t page_limit_
Definition:
ifmap_sandesh_context.h:27
IFMapSandeshContext::set_page_limit
void set_page_limit(uint32_t page_limit)
Definition:
ifmap_sandesh_context.h:19
IFMapSandeshContext::ifmap_server
IFMapServer * ifmap_server()
Definition:
ifmap_sandesh_context.h:23
IFMapSandeshContext::iter_limit
uint32_t iter_limit() const
Definition:
ifmap_sandesh_context.h:20
IFMapSandeshContext::iter_limit_
uint32_t iter_limit_
Definition:
ifmap_sandesh_context.h:28
IFMapSandeshContext::IFMapSandeshContext
IFMapSandeshContext(IFMapServer *ifmap_server)
Definition:
ifmap_sandesh_context.h:15
IFMapSandeshContext::ifmap_server_
IFMapServer * ifmap_server_
Definition:
ifmap_sandesh_context.h:26
IFMapSandeshContext::page_limit
uint32_t page_limit() const
Definition:
ifmap_sandesh_context.h:18
IFMapSandeshContext::set_iter_limit
void set_iter_limit(uint32_t iter_limit)
Definition:
ifmap_sandesh_context.h:21
IFMapServer
Definition:
ifmap_server.h:41
SandeshContext
Definition:
cpp/sandesh.h:109
contrail
controller
src
ifmap
ifmap_sandesh_context.h
Generated by
1.9.1