comparison OrthancServer/Sources/ServerIndex.h @ 5061:e95fadefeb72

new MaximumStorageMode configuration
author Alain Mazy <am@osimis.io>
date Tue, 09 Aug 2022 17:57:38 +0200
parents 6fed78e13233
children 0ea402b4d901
comparison
equal deleted inserted replaced
5060:e69a3ff39bc5 5061:e95fadefeb72
43 boost::thread flushThread_; 43 boost::thread flushThread_;
44 boost::thread unstableResourcesMonitorThread_; 44 boost::thread unstableResourcesMonitorThread_;
45 45
46 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_; 46 LeastRecentlyUsedIndex<int64_t, UnstableResourcePayload> unstableResources_;
47 47
48 uint64_t maximumStorageSize_; 48 MaxStorageMode maximumStorageMode_;
49 unsigned int maximumPatients_; 49 uint64_t maximumStorageSize_;
50 unsigned int maximumPatients_;
50 51
51 static void FlushThread(ServerIndex* that, 52 static void FlushThread(ServerIndex* that,
52 unsigned int threadSleep); 53 unsigned int threadSleep);
53 54
54 static void UnstableResourcesMonitorThread(ServerIndex* that, 55 static void UnstableResourcesMonitorThread(ServerIndex* that,
73 void SetMaximumStorageSize(uint64_t size); 74 void SetMaximumStorageSize(uint64_t size);
74 75
75 // "count == 0" means no limit on the number of patients 76 // "count == 0" means no limit on the number of patients
76 void SetMaximumPatientCount(unsigned int count); 77 void SetMaximumPatientCount(unsigned int count);
77 78
79 void SetMaximumStorageMode(MaxStorageMode mode);
80
78 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata, 81 StoreStatus Store(std::map<MetadataType, std::string>& instanceMetadata,
79 const DicomMap& dicomSummary, 82 const DicomMap& dicomSummary,
80 const Attachments& attachments, 83 const Attachments& attachments,
81 const MetadataMap& metadata, 84 const MetadataMap& metadata,
82 const DicomInstanceOrigin& origin, 85 const DicomInstanceOrigin& origin,