3 #ifndef GEODE_SYSTEMPROPERTIES_H_ 4 #define GEODE_SYSTEMPROPERTIES_H_ 42 const char* factFuncName);
61 const char* configFile = NULL);
71 const uint32_t threadPoolSize()
const {
return m_threadPoolSize; }
78 return m_statisticsSampleInterval;
96 return m_timestatisticsEnabled;
129 Log::LogLevel
logLevel()
const {
return m_logLevel; }
170 return m_redundancyMonitorInterval;
232 const char* name()
const {
return m_name; }
234 const char* cacheXMLFile()
const {
return m_cacheXMLFile; }
256 const uint32_t maxQueueSize() {
return m_maxQueueSize; }
258 const uint32_t javaConnectionPoolSize()
const {
259 return m_javaConnectionPoolSize;
261 void setjavaConnectionPoolSize(uint32_t size) {
262 m_javaConnectionPoolSize = size;
281 m_disableChunkHandlerThread =
set;
289 return m_onClientDisconnectClearPdxTypeIds;
297 m_onClientDisconnectClearPdxTypeIds =
set;
302 return (m_AuthIniLoaderLibrary == NULLPTR
304 : m_AuthIniLoaderLibrary->asChar());
309 return (m_AuthIniLoaderFactory == NULLPTR
311 : m_AuthIniLoaderFactory->asChar());
316 return (m_securityClientDhAlgo == NULLPTR
318 : m_securityClientDhAlgo->asChar());
323 return (m_securityClientKsPath == NULLPTR
325 : m_securityClientKsPath->asChar());
332 return m_securityPropertiesPtr;
339 return (m_AuthIniLoaderFactory != NULLPTR &&
340 m_AuthIniLoaderLibrary != NULLPTR);
347 return m_disableShufflingEndpoint;
355 return isSecurityOn() && m_securityClientDhAlgo != NULLPTR &&
356 m_securityClientDhAlgo->length() > 0;
403 return m_tombstoneTimeoutInMSec;
407 uint32_t m_statisticsSampleInterval;
409 bool m_statisticsEnabled;
411 bool m_appDomainEnabled;
413 char* m_statisticsArchiveFile;
417 Log::LogLevel m_logLevel;
423 bool m_debugStackTraceEnabled;
425 bool m_crashDumpEnabled;
427 bool m_disableShufflingEndpoint;
429 char* m_cacheXMLFile;
431 uint32_t m_logFileSizeLimit;
432 uint32_t m_logDiskSpaceLimit;
434 uint32_t m_statsFileSizeLimit;
435 uint32_t m_statsDiskSpaceLimit;
437 uint32_t m_maxQueueSize;
438 uint32_t m_javaConnectionPoolSize;
440 int32_t m_heapLRULimit;
441 int32_t m_heapLRUDelta;
442 int32_t m_maxSocketBufferSize;
443 int32_t m_pingInterval;
444 int32_t m_redundancyMonitorInterval;
446 int32_t m_notifyAckInterval;
447 int32_t m_notifyDupCheckLife;
456 char* m_durableClientId;
457 uint32_t m_durableTimeout;
459 uint32_t m_connectTimeout;
460 uint32_t m_connectWaitTimeout;
461 uint32_t m_bucketWaitTimeout;
465 bool m_autoReadyForEvents;
468 bool m_timestatisticsEnabled;
470 char* m_sslTrustStore;
472 char* m_sslKeystorePassword;
474 char* m_conflateEvents;
476 uint32_t m_threadPoolSize;
477 uint32_t m_suspendedTxTimeout;
478 uint32_t m_tombstoneTimeoutInMSec;
479 bool m_disableChunkHandlerThread;
480 bool m_readTimeoutUnitInMillis;
481 bool m_onClientDisconnectClearPdxTypeIds;
488 void processProperty(
const char* property,
const char* value);
501 void throwError(
const char* msg);
506 friend class DistributedSystemImpl;
512 #endif // GEODE_SYSTEMPROPERTIES_H_ void setDisableChunkHandlerThread(bool set)
This can be call multiple time to disable chunkhandler thread for those operations.
Definition: SystemProperties.hpp:280
A class for internal use, that encapsulates the properties that can be set from DistributedSystem::co...
Definition: SystemProperties.hpp:50
void setOnClientDisconnectClearPdxTypeIds(bool set)
Set to true if app want to clear pdx type ids when client disconnect.
Definition: SystemProperties.hpp:296
const int32_t notifyAckInterval() const
Returns the periodic notify ack interval.
Definition: SystemProperties.hpp:176
bool isEndpointShufflingDisabled() const
Checks whether list of endpoint is shuffeled or not.
Definition: SystemProperties.hpp:346
const bool heapLRULimitEnabled() const
Returns a boolean that specifies if heapLRULimit has been enabled for the process.
Definition: SystemProperties.hpp:140
const bool debugStackTraceEnabled() const
Returns true if the stack trace is enabled ,false otherwise.
Definition: SystemProperties.hpp:219
const char * authInitFactory() const
Return the security auth factory.
Definition: SystemProperties.hpp:308
Each enum represents a predefined RegionAttributes in a Cache.
Definition: Assert.hpp:31
PropertiesPtr getSecurityProperties() const
Returns securityPropertiesPtr.
Definition: SystemProperties.hpp:331
bool getEnableTimeStatistics() const
Whether time stats are enabled for the statistics.
Definition: SystemProperties.hpp:94
const char * sslKeyStore() const
Returns the path of the private key file for SSL use.
Definition: SystemProperties.hpp:102
const int32_t pingInterval() const
Returns the time between two consecutive ping to servers.
Definition: SystemProperties.hpp:165
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition: geode_base.hpp:58
const uint32_t bucketWaitTimeout() const
Returns the connect wait timeout(in millis) used for to connect to server This is only applicable for...
Definition: SystemProperties.hpp:209
bool isDhOn()
Check whether Diffie-Hellman based credentials encryption is on.
Definition: SystemProperties.hpp:354
const uint32_t connectWaitTimeout() const
Returns the connect wait timeout(in millis) used for to connect to server This is only applicable for...
Definition: SystemProperties.hpp:203
const uint32_t statisticsSampleInterval() const
Returns the sampling interval of the sampling thread.
Definition: SystemProperties.hpp:77
const int32_t heapLRUDelta() const
Returns the HeapLRUDelta value (a percent value).
Definition: SystemProperties.hpp:156
const uint32_t connectTimeout() const
Returns the connect timeout used for server and locator handshakes.
Definition: SystemProperties.hpp:197
bool readTimeoutUnitInMillis() const
This can be call to know whether read timeout unit is in milli second.
Definition: SystemProperties.hpp:274
const int32_t maxSocketBufferSize() const
Returns the maximum socket buffer size to use.
Definition: SystemProperties.hpp:160
Log::LogLevel logLevel() const
Returns the log level at which logging would be done.
Definition: SystemProperties.hpp:129
bool isSecurityOn() const
Checks whether Security is on or off.
Definition: SystemProperties.hpp:338
const char * statisticsArchiveFile() const
Returns the name of the filename into which statistics would be archived.
Definition: SystemProperties.hpp:118
const char * durableClientId() const
Returns the durable client ID.
Definition: SystemProperties.hpp:187
bool disableChunkHandlerThread() const
This can be call to know whether chunkhandler thread is disable for that opertaion.
Definition: SystemProperties.hpp:269
const uint32_t tombstoneTimeoutInMSec() const
Returns the tombstone timeout .
Definition: SystemProperties.hpp:402
bool isGridClient() const
Checks to see if this native client is being invoked as part of small grid jobs; use this setting to ...
Definition: SystemProperties.hpp:374
AuthInitialize *(* LibraryAuthInitializeFn)(const char *assemblyPath, const char *factFuncName)
The SystemProperties class.
Definition: SystemProperties.hpp:41
const 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:149
const uint32_t logDiskSpaceLimit() const
Returns the log-disk-space-limit.
Definition: SystemProperties.hpp:244
bool isAppDomainEnabled() const
This property checks whether C# client is running in multiple appdoamin or not.
Definition: SystemProperties.hpp:381
Specifies the mechanism to obtain credentials for a client.
Definition: AuthInitialize.hpp:45
const char * logFilename() const
Returns the name of the filename into which logging would be done.
Definition: SystemProperties.hpp:124
const uint32_t statsFileSizeLimit() const
Returns the stat-file-space-limit.
Definition: SystemProperties.hpp:249
char * conflateEvents()
Returns client Queueconflation option.
Definition: SystemProperties.hpp:214
const uint32_t durableTimeout() const
Returns the durable timeout.
Definition: SystemProperties.hpp:192
bool onClientDisconnectClearPdxTypeIds() const
returns true if app want to clear pdx type ids when client disconnect.
Definition: SystemProperties.hpp:288
bool autoReadyForEvents() const
Whether a non durable client starts to receive and process subscription events automatically.
Definition: SystemProperties.hpp:392
const uint32_t statsDiskSpaceLimit() const
Returns the stat-disk-size-limit.
Definition: SystemProperties.hpp:254
const int32_t notifyDupCheckLife() const
Returns the expiry time of an idle event id map entry for duplicate notification checking.
Definition: SystemProperties.hpp:182
bool sslEnabled() const
Whether SSL is enabled for socket connections.
Definition: SystemProperties.hpp:89
const char * sslKeystorePassword() const
Returns the client keystore password.
Definition: SystemProperties.hpp:107
const uint32_t suspendedTxTimeout() const
Returns the timeout after which suspended transactions are rolled back.
Definition: SystemProperties.hpp:397
const char * securityClientKsPath()
Return the keystore (.pem file ) path.
Definition: SystemProperties.hpp:322
const char * securityClientDhAlgo()
Return the security diffie hellman secret key algo.
Definition: SystemProperties.hpp:315
const uint32_t logFileSizeLimit() const
Returns the log-file-size-limit.
Definition: SystemProperties.hpp:239
const bool crashDumpEnabled() const
Returns true if crash dump generation for unhandled fatal errors is enabled, false otherwise...
Definition: SystemProperties.hpp:230
This namespace contains all the Geode C++ API classes, enumerations and globals.
const char * sslTrustStore() const
Returns the path of the public key file for SSL use.
Definition: SystemProperties.hpp:112
const int32_t redundancyMonitorInterval() const
Returns the time between two consecutive checks for redundancy for HA.
Definition: SystemProperties.hpp:169
const char * authInitLibrary() const
Return the security auth library.
Definition: SystemProperties.hpp:301
bool statisticsEnabled() const
Tells whether statistics needs to be archived or not.
Definition: SystemProperties.hpp:84