2017-03-14 13:26:51 +00:00
|
|
|
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
|
|
|
|
// vim: ts=8 sw=2 smarttab
|
|
|
|
|
|
|
|
#ifndef CEPH_MGR_MGRSESSION_H
|
|
|
|
#define CEPH_MGR_MGRSESSION_H
|
|
|
|
|
|
|
|
#include "common/RefCountedObj.h"
|
|
|
|
#include "common/entity_name.h"
|
|
|
|
#include "msg/msg_types.h"
|
|
|
|
#include "mon/MonCap.h"
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Session state associated with the Connection.
|
|
|
|
*/
|
|
|
|
struct MgrSession : public RefCountedObject {
|
|
|
|
uint64_t global_id = 0;
|
|
|
|
EntityName entity_name;
|
2017-03-14 13:56:56 +00:00
|
|
|
entity_inst_t inst;
|
2017-03-14 13:26:51 +00:00
|
|
|
|
2017-05-19 03:06:20 +00:00
|
|
|
int osd_id = -1; ///< osd id (if an osd)
|
|
|
|
|
2017-03-14 13:26:51 +00:00
|
|
|
// mon caps are suitably generic for mgr
|
|
|
|
MonCap caps;
|
|
|
|
|
2017-09-23 15:55:55 +00:00
|
|
|
std::set<std::string> declared_types;
|
|
|
|
|
2017-04-12 13:58:18 +00:00
|
|
|
MgrSession(CephContext *cct) : RefCountedObject(cct, 0) {}
|
2017-03-14 13:26:51 +00:00
|
|
|
~MgrSession() override {}
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef boost::intrusive_ptr<MgrSession> MgrSessionRef;
|
|
|
|
|
|
|
|
|
|
|
|
#endif
|