VMware Tanzu GemFire Native C++ Reference
10.1.5
|
Go to the documentation of this file.
20 #ifndef GEODE_SYSTEMPROPERTIES_H_
21 #define GEODE_SYSTEMPROPERTIES_H_
24 #include "util/LogLevel.hpp"
55 const std::string& configFile =
"");
68 uint32_t threadPoolSize()
const {
return m_threadPoolSize; }
75 return m_statisticsSampleInterval;
93 return m_timestatisticsEnabled;
99 const std::string&
sslKeyStore()
const {
return m_sslKeyStore; }
105 return m_sslKeystorePassword;
118 return m_statisticsArchiveFile;
167 const std::chrono::seconds&
pingInterval()
const {
return m_pingInterval; }
173 return m_redundancyMonitorInterval;
180 return m_notifyAckInterval;
188 return m_notifyDupCheckLife;
200 return m_durableTimeout;
207 return m_connectTimeout;
215 return m_connectWaitTimeout;
223 return m_bucketWaitTimeout;
231 const std::string& name()
const {
return m_name; }
233 const std::string& cacheXMLFile()
const {
return m_cacheXMLFile; }
255 uint32_t connectionPoolSize()
const {
return m_connectionPoolSize; }
256 void setjavaConnectionPoolSize(uint32_t size) { m_connectionPoolSize = size; }
267 m_enableChunkHandlerThread = set;
275 return m_onClientDisconnectClearPdxTypeIds;
283 m_onClientDisconnectClearPdxTypeIds = set;
291 "Diffie-Hellman based credentials encryption is not supported.")
292 const std::
string& securityClientDhAlgo()
const {
293 return m_securityClientDhAlgo;
297 const std::string& securityClientKsPath()
const {
298 return m_securityClientKsPath;
304 std::shared_ptr<Properties> getSecurityProperties()
const {
305 return m_securityPropertiesPtr;
311 inline bool isEndpointShufflingDisabled()
const {
312 return m_disableShufflingEndpoint;
320 "Diffie-Hellman based credentials encryption is not supported.")
321 bool isDhOn()
const {
return false; }
332 inline bool autoReadyForEvents()
const {
return m_autoReadyForEvents; }
337 const std::chrono::seconds suspendedTxTimeout()
const {
338 return m_suspendedTxTimeout;
344 const std::chrono::milliseconds tombstoneTimeout()
const {
345 return m_tombstoneTimeout;
349 std::chrono::milliseconds m_statisticsSampleInterval;
353 std::string m_statisticsArchiveFile;
355 std::string m_logFilename;
363 bool m_disableShufflingEndpoint;
365 std::string m_cacheXMLFile;
367 uint32_t m_logFileSizeLimit;
368 uint32_t m_logDiskSpaceLimit;
370 uint32_t m_statsFileSizeLimit;
371 uint32_t m_statsDiskSpaceLimit;
373 uint32_t m_connectionPoolSize;
375 int32_t m_heapLRULimit;
376 int32_t m_heapLRUDelta;
377 int32_t m_maxSocketBufferSize;
378 std::chrono::seconds m_pingInterval;
379 std::chrono::seconds m_redundancyMonitorInterval;
381 std::chrono::milliseconds m_notifyAckInterval;
382 std::chrono::milliseconds m_notifyDupCheckLife;
384 std::shared_ptr<Properties> m_securityPropertiesPtr;
386 std::string m_securityClientDhAlgo;
387 std::string m_securityClientKsPath;
389 std::string m_durableClientId;
390 std::chrono::seconds m_durableTimeout;
392 std::chrono::milliseconds m_connectTimeout;
393 std::chrono::milliseconds m_connectWaitTimeout;
394 std::chrono::milliseconds m_bucketWaitTimeout;
396 bool m_autoReadyForEvents;
399 bool m_timestatisticsEnabled;
400 std::string m_sslKeyStore;
401 std::string m_sslTrustStore;
403 std::string m_sslKeystorePassword;
405 std::string m_conflateEvents;
407 uint32_t m_threadPoolSize;
408 std::chrono::seconds m_suspendedTxTimeout;
409 std::chrono::milliseconds m_tombstoneTimeout;
410 bool m_enableChunkHandlerThread;
411 bool m_onClientDisconnectClearPdxTypeIds;
418 static bool parseBooleanProperty(
const std::string& property,
419 const std::string& value);
420 template <
class _Rep,
class _Period>
421 static void parseDurationProperty(
422 const std::string& property,
const std::string& value,
423 std::chrono::duration<_Rep, _Period>& duration);
425 [[noreturn]]
static void throwError(
const std::string& msg);
428 friend class DistributedSystemImpl;
434 #endif // GEODE_SYSTEMPROPERTIES_H_
bool heapLRULimitEnabled() const
Returns a boolean that specifies if heapLRULimit has been enabled for the process.
Definition: SystemProperties.hpp:141
const std::string & durableClientId() const
Returns the durable client ID.
Definition: SystemProperties.hpp:194
void setEnableChunkHandlerThread(bool set)
Enables or disables the chunk handler thread.
Definition: SystemProperties.hpp:266
const std::chrono::milliseconds & connectWaitTimeout() const
Returns the connect wait timeout(in milliseconds) used for to connect to server This is only applicab...
Definition: SystemProperties.hpp:214
const std::string & logFilename() const
Returns the name of the filename into which logging would be done.
Definition: SystemProperties.hpp:125
const std::string & sslTrustStore() const
Returns the path of the public key file for SSL use.
Definition: SystemProperties.hpp:111
void processProperty(const std::string &property, const std::string &value)
Processes the given property/value pair, saving the results internally:
SystemProperties(const std::shared_ptr< Properties > &propertiesPtr, const std::string &configFile="")
Constructor.
const std::string & sslKeyStore() const
Returns the path of the private key file for SSL use.
Definition: SystemProperties.hpp:99
const std::chrono::milliseconds & bucketWaitTimeout() const
Returns the connect wait timeout(in milliseconds) used for to connect to server This is only applicab...
Definition: SystemProperties.hpp:222
bool statisticsEnabled() const
Tells whether statistics needs to be archived or not.
Definition: SystemProperties.hpp:81
int32_t maxSocketBufferSize() const
Returns the maximum socket buffer size to use.
Definition: SystemProperties.hpp:162
The SystemProperties class.
Definition: SystemProperties.hpp:44
void logSettings()
print all settings to the process log.
const std::string & statisticsArchiveFile() const
Returns the name of the filename into which statistics would be archived.
Definition: SystemProperties.hpp:117
bool enableChunkHandlerThread() const
Returns true if chunk handler thread is enabled, false if not.
Definition: SystemProperties.hpp:261
const std::chrono::seconds & pingInterval() const
Returns the time between two consecutive pings to servers.
Definition: SystemProperties.hpp:167
const std::chrono::milliseconds & connectTimeout() const
Returns the connect timeout used for server and locator handshakes.
Definition: SystemProperties.hpp:206
LogLevel logLevel() const
Returns the log level at which logging would be done.
Definition: SystemProperties.hpp:130
const std::chrono::seconds & redundancyMonitorInterval() const
Returns the time between two consecutive checks for redundancy for HA.
Definition: SystemProperties.hpp:172
~SystemProperties()
Destructor.
void setOnClientDisconnectClearPdxTypeIds(bool set)
Set to true if app wants to clear pdx type ids when client disconnect.
Definition: SystemProperties.hpp:282
const std::chrono::milliseconds & notifyAckInterval() const
Returns the periodic notify ack interval.
Definition: SystemProperties.hpp:179
const std::chrono::seconds & durableTimeout() const
Returns the durable timeout.
Definition: SystemProperties.hpp:199
bool onClientDisconnectClearPdxTypeIds() const
Returns true if app wants to clear pdx type ids when client disconnect.
Definition: SystemProperties.hpp:274
uint32_t logFileSizeLimit() const
Returns the log-file-size-limit.
Definition: SystemProperties.hpp:238
const std::string & sslKeystorePassword() const
Returns the client keystore password.
Definition: SystemProperties.hpp:104
int32_t heapLRUDelta() const
Returns the HeapLRUDelta value (a percent value).
Definition: SystemProperties.hpp:157
const std::string & conflateEvents() const
Returns client Queueconflation option.
Definition: SystemProperties.hpp:229
size_t heapLRULimit() const
Returns the HeapLRULimit value (in bytes), the maximum memory that values in a cache can use to store...
Definition: SystemProperties.hpp:150
bool sslEnabled() const
Whether SSL is enabled for socket connections.
Definition: SystemProperties.hpp:86
const std::chrono::milliseconds statisticsSampleInterval() const
Returns the sampling interval of the sampling thread.
Definition: SystemProperties.hpp:74
_GEODE_DEPRECATED_("Diffie-Hellman based credentials encryption is not supported.") const std bool m_statisticsEnabled
Return the keystore (.pem file ) path.
Definition: SystemProperties.hpp:290
uint32_t logDiskSpaceLimit() const
Returns the log-disk-space-limit.
Definition: SystemProperties.hpp:243
bool getEnableTimeStatistics() const
Whether time stats are enabled for the statistics.
Definition: SystemProperties.hpp:91
uint32_t statsFileSizeLimit() const
Returns the stat-file-space-limit.
Definition: SystemProperties.hpp:248
const std::chrono::milliseconds & notifyDupCheckLife() const
Returns the expiry time of an idle event id map entry for duplicate notification checking.
Definition: SystemProperties.hpp:187
uint32_t statsDiskSpaceLimit() const
Returns the stat-disk-size-limit.
Definition: SystemProperties.hpp:253
Apache Geode C++ Cache API Documentation