OpenSDN source code
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
metadata_client_session.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
3
*/
4
5
#ifndef vnsw_agent_metadata_client_session_h_
6
#define vnsw_agent_metadata_client_session_h_
7
8
#include "
http/client/http_client.h
"
9
#include "
http/http_session.h
"
10
#include "
services/metadata_client.h
"
11
12
class
MetadataClientSession
:
public
HttpClientSession
{
13
public
:
14
static
const
int
kMetadataSessionInstance
= 0;
15
16
MetadataClientSession
(
HttpClient
*client,
Socket
*
socket
)
17
:
HttpClientSession
(client, socket) {}
18
virtual
~MetadataClientSession
() {}
19
20
// return a session instance of 0 to ensure that only one
21
// session request is processed at any time
22
virtual
int
GetSessionInstance
()
const
{
return
kMetadataSessionInstance
; }
23
24
private
:
25
DISALLOW_COPY_AND_ASSIGN
(
MetadataClientSession
);
26
};
27
28
#endif // vnsw_agent_metadata_client_session_h_
MetadataClientSession::DISALLOW_COPY_AND_ASSIGN
DISALLOW_COPY_AND_ASSIGN(MetadataClientSession)
MetadataClientSession::kMetadataSessionInstance
static const int kMetadataSessionInstance
Definition:
metadata_client_session.h:14
HttpClient
Definition:
http_client.h:181
http_session.h
HttpClientSession
Definition:
http_client.h:36
TcpSession::Socket
boost::asio::ip::tcp::socket Socket
Definition:
tcp_session.h:60
metadata_client.h
MetadataClientSession
Definition:
metadata_client_session.h:12
MetadataClientSession::MetadataClientSession
MetadataClientSession(HttpClient *client, Socket *socket)
Definition:
metadata_client_session.h:16
TcpSession::socket
virtual Socket * socket() const
Definition:
tcp_session.h:86
http_client.h
MetadataClientSession::~MetadataClientSession
virtual ~MetadataClientSession()
Definition:
metadata_client_session.h:18
MetadataClientSession::GetSessionInstance
virtual int GetSessionInstance() const
Definition:
metadata_client_session.h:22
contrail
controller
src
vnsw
agent
services
metadata_client_session.h
Generated by
1.8.5