Mercurial > hg > orthanc
comparison OrthancServer/ServerIndex.h @ 278:771f12042be9
more efficient determination of storage size for recycling
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sun, 09 Dec 2012 21:51:57 +0100 |
parents | 337c506461d2 |
children | 4eea080e6e7a |
comparison
equal
deleted
inserted
replaced
277:58f969933720 | 278:771f12042be9 |
---|---|
49 namespace Internals | 49 namespace Internals |
50 { | 50 { |
51 class ServerIndexListener; | 51 class ServerIndexListener; |
52 } | 52 } |
53 | 53 |
54 | |
55 | |
56 class ServerIndex : public boost::noncopyable | 54 class ServerIndex : public boost::noncopyable |
57 { | 55 { |
58 private: | 56 private: |
57 class Transaction; | |
58 | |
59 boost::mutex mutex_; | 59 boost::mutex mutex_; |
60 boost::thread flushThread_; | 60 boost::thread flushThread_; |
61 | 61 |
62 std::auto_ptr<Internals::ServerIndexListener> listener_; | 62 std::auto_ptr<Internals::ServerIndexListener> listener_; |
63 std::auto_ptr<DatabaseWrapper> db_; | 63 std::auto_ptr<DatabaseWrapper> db_; |
64 | 64 |
65 uint64_t currentStorageSize_; | |
65 uint64_t maximumStorageSize_; | 66 uint64_t maximumStorageSize_; |
66 unsigned int maximumPatients_; | 67 unsigned int maximumPatients_; |
67 | 68 |
68 void MainDicomTagsToJson(Json::Value& result, | 69 void MainDicomTagsToJson(Json::Value& result, |
69 int64_t resourceId); | 70 int64_t resourceId); |