Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.h @ 1432:0ac74fa21db8
rename IServerIndexListener as IDatabaseListener
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 30 Jun 2015 12:51:29 +0200 |
parents | 111e23bb4904 |
children | c0bdc47165ef |
comparison
equal
deleted
inserted
replaced
1431:3e53edcd0120 | 1432:0ac74fa21db8 |
---|---|
45 | 45 |
46 namespace Orthanc | 46 namespace Orthanc |
47 { | 47 { |
48 class ServerContext; | 48 class ServerContext; |
49 | 49 |
50 namespace Internals | |
51 { | |
52 class ServerIndexListener; | |
53 } | |
54 | |
55 class ServerIndex : public boost::noncopyable | 50 class ServerIndex : public boost::noncopyable |
56 { | 51 { |
57 public: | 52 public: |
58 typedef std::list<FileInfo> Attachments; | 53 typedef std::list<FileInfo> Attachments; |
59 typedef std::map< std::pair<ResourceType, MetadataType>, std::string> MetadataMap; | 54 typedef std::map< std::pair<ResourceType, MetadataType>, std::string> MetadataMap; |
60 | 55 |
61 private: | 56 private: |
57 class Listener; | |
62 class Transaction; | 58 class Transaction; |
63 class UnstableResourcePayload; | 59 class UnstableResourcePayload; |
64 | 60 |
65 bool done_; | 61 bool done_; |
66 boost::mutex mutex_; | 62 boost::mutex mutex_; |
67 boost::thread flushThread_; | 63 boost::thread flushThread_; |
68 boost::thread unstableResourcesMonitorThread_; | 64 boost::thread unstableResourcesMonitorThread_; |
69 | 65 |
70 std::auto_ptr<Internals::ServerIndexListener> listener_; | 66 std::auto_ptr<Listener> listener_; |
71 IDatabaseWrapper& db_; | 67 IDatabaseWrapper& db_; |
72 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; | 68 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; |
73 | 69 |
74 uint64_t currentStorageSize_; | 70 uint64_t currentStorageSize_; |
75 uint64_t maximumStorageSize_; | 71 uint64_t maximumStorageSize_; |