]>
git.proxmox.com Git - ceph.git/blob - ceph/src/tools/immutable_object_cache/CacheController.h
1 // -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
2 // vim: ts=8 sw=2 smarttab
4 #ifndef CEPH_CACHE_CACHE_CONTROLLER_H
5 #define CEPH_CACHE_CACHE_CONTROLLER_H
7 #include "common/ceph_context.h"
8 #include "common/WorkQueue.h"
9 #include "CacheServer.h"
10 #include "ObjectCacheStore.h"
13 namespace immutable_obj_cache
{
15 class CacheController
{
17 CacheController(CephContext
*cct
, const std::vector
<const char*> &args
);
24 void handle_signal(int sinnum
);
28 void handle_request(CacheSession
* session
, ObjectCacheRequest
* msg
);
31 CacheServer
*m_cache_server
;
32 std::vector
<const char*> m_args
;
34 ObjectCacheStore
*m_object_cache_store
;
37 } // namespace immutable_obj_cache
40 #endif // CEPH_CACHE_CACHE_CONTROLLER_H