Mercurial > hg > orthanc-transfers
comparison Plugin/PluginContext.h @ 10:c9e28e31262e
new option: MaxHttpRetries
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Mar 2019 15:26:49 +0100 |
parents | 7e207ade2f1a |
children | b06103a50c95 |
comparison
equal
deleted
inserted
replaced
9:7e207ade2f1a | 10:c9e28e31262e |
---|---|
38 std::string pluginUuid_; | 38 std::string pluginUuid_; |
39 | 39 |
40 // Configuration | 40 // Configuration |
41 size_t threadsCount_; | 41 size_t threadsCount_; |
42 size_t targetBucketSize_; | 42 size_t targetBucketSize_; |
43 | 43 unsigned int maxHttpRetries_; |
44 | 44 |
45 PluginContext(size_t threadsCount, | 45 PluginContext(size_t threadsCount, |
46 size_t targetBucketSize, | 46 size_t targetBucketSize, |
47 size_t maxPushTransactions, | 47 size_t maxPushTransactions, |
48 size_t memoryCacheSize); | 48 size_t memoryCacheSize, |
49 unsigned int maxHttpRetries); | |
49 | 50 |
50 static std::auto_ptr<PluginContext>& GetSingleton(); | 51 static std::auto_ptr<PluginContext>& GetSingleton(); |
51 | 52 |
52 public: | 53 public: |
53 OrthancInstancesCache& GetCache() | 54 OrthancInstancesCache& GetCache() |
78 size_t GetTargetBucketSize() const | 79 size_t GetTargetBucketSize() const |
79 { | 80 { |
80 return targetBucketSize_; | 81 return targetBucketSize_; |
81 } | 82 } |
82 | 83 |
84 unsigned int GetMaxHttpRetries() const | |
85 { | |
86 return maxHttpRetries_; | |
87 } | |
88 | |
83 static void Initialize(size_t threadsCount, | 89 static void Initialize(size_t threadsCount, |
84 size_t targetBucketSize, | 90 size_t targetBucketSize, |
85 size_t maxPushTransactions, | 91 size_t maxPushTransactions, |
86 size_t memoryCacheSize); | 92 size_t memoryCacheSize, |
93 unsigned int maxHttpRetries); | |
87 | 94 |
88 static PluginContext& GetInstance(); | 95 static PluginContext& GetInstance(); |
89 | 96 |
90 static void Finalize(); | 97 static void Finalize(); |
91 }; | 98 }; |