1 #ifndef _GEMFIRE_SYSTEMPROPERTIES_HPP_ 2 #define _GEMFIRE_SYSTEMPROPERTIES_HPP_ 31 typedef AuthInitialize* ( *LibraryAuthInitializeFn ) (
const char* assemblyPath,
32 const char* factFuncName );
53 const char* configFile = NULL);
64 const uint32_t threadPoolSize()
const 65 {
return m_threadPoolSize; }
73 {
return m_statisticsSampleInterval; }
80 {
return m_statisticsEnabled; }
86 {
return m_sslEnabled; }
92 {
return m_timestatisticsEnabled; }
98 {
return m_sslKeyStore; }
104 {
return m_sslKeystorePassword; }
110 {
return m_sslTrustStore; }
118 {
return m_statisticsArchiveFile; }
126 {
return m_logFilename; }
133 {
return m_logLevel; }
144 {
return (m_heapLRULimit > 0); }
154 {
return m_heapLRULimit; }
163 {
return m_heapLRUDelta; }
225 {
return m_debugStackTraceEnabled; }
238 return m_crashDumpEnabled;
241 const char* name()
const 244 const char* cacheXMLFile()
const 245 {
return m_cacheXMLFile;}
251 {
return m_logFileSizeLimit;}
257 {
return m_logDiskSpaceLimit;}
263 {
return m_statsFileSizeLimit;}
269 {
return m_statsDiskSpaceLimit;}
271 const uint32_t maxQueueSize()
272 {
return m_maxQueueSize;}
274 const uint32_t javaConnectionPoolSize()
const 275 {
return m_javaConnectionPoolSize;}
276 void setjavaConnectionPoolSize(uint32_t size) {
277 m_javaConnectionPoolSize = size ;
285 return m_disableChunkHandlerThread;
293 return m_readTimeoutUnitInMillis;
300 m_disableChunkHandlerThread = set ;
309 return m_onClientDisconnectClearPdxTypeIds;
317 m_onClientDisconnectClearPdxTypeIds = set ;
323 return (m_AuthIniLoaderLibrary == NULLPTR ?
"" :
324 m_AuthIniLoaderLibrary->asChar());
330 return (m_AuthIniLoaderFactory == NULLPTR ?
"" :
331 m_AuthIniLoaderFactory->asChar());
336 return (m_securityClientDhAlgo == NULLPTR ?
"" :
337 m_securityClientDhAlgo->asChar());
342 return (m_securityClientKsPath == NULLPTR ?
"" :
343 m_securityClientKsPath->asChar());
351 return m_securityPropertiesPtr;
359 return (m_AuthIniLoaderFactory != NULLPTR &&
360 m_AuthIniLoaderLibrary != NULLPTR);
368 return m_disableShufflingEndpoint;
376 return isSecurityOn() && m_securityClientDhAlgo != NULLPTR &&
377 m_securityClientDhAlgo->length() > 0;
406 return m_appDomainEnabled;
420 return m_autoReadyForEvents;
435 uint32_t m_statisticsSampleInterval;
437 bool m_statisticsEnabled;
439 bool m_appDomainEnabled;
441 char* m_statisticsArchiveFile;
445 Log::LogLevel m_logLevel;
451 bool m_debugStackTraceEnabled;
453 bool m_crashDumpEnabled;
455 bool m_disableShufflingEndpoint;
457 char* m_cacheXMLFile;
459 uint32_t m_logFileSizeLimit;
460 uint32_t m_logDiskSpaceLimit;
462 uint32_t m_statsFileSizeLimit;
463 uint32_t m_statsDiskSpaceLimit;
465 uint32_t m_maxQueueSize;
466 uint32_t m_javaConnectionPoolSize;
468 int32_t m_heapLRULimit;
469 int32_t m_heapLRUDelta;
470 int32_t m_maxSocketBufferSize;
471 int32_t m_pingInterval;
472 int32_t m_redundancyMonitorInterval;
474 int32_t m_notifyAckInterval;
475 int32_t m_notifyDupCheckLife;
486 char * m_durableClientId;
487 uint32_t m_durableTimeout;
489 uint32_t m_connectTimeout;
490 uint32_t m_connectWaitTimeout;
491 uint32_t m_bucketWaitTimeout;
495 bool m_autoReadyForEvents;
498 bool m_timestatisticsEnabled;
499 char * m_sslKeyStore;
500 char * m_sslTrustStore;
502 char *m_sslKeystorePassword;
504 char * m_conflateEvents;
506 uint32_t m_threadPoolSize;
507 uint32_t m_suspendedTxTimeout;
508 uint32_t m_tombstoneTimeoutInMSec;
509 bool m_disableChunkHandlerThread;
510 bool m_readTimeoutUnitInMillis;
511 bool m_onClientDisconnectClearPdxTypeIds;
519 void processProperty(
const char* property,
const char* value );
532 void throwError(
const char* msg );
538 friend class DistributedSystemImpl;
bool getEnableTimeStatistics() const
Whether time stats are enabled for the statistics.
Definition: SystemProperties.hpp:91
const uint32_t statisticsSampleInterval() const
Returns the sampling interval of the sampling thread.
Definition: SystemProperties.hpp:72
const char * securityClientKsPath()
Return the keystore (.pem file ) path.
Definition: SystemProperties.hpp:341
const int32_t notifyAckInterval() const
Returns the periodic notify ack interval.
Definition: SystemProperties.hpp:181
const uint32_t statsFileSizeLimit() const
Returns the stat-file-space-limit.
Definition: SystemProperties.hpp:262
const char * authInitFactory() const
Return the security auth factory.
Definition: SystemProperties.hpp:328
const bool crashDumpEnabled() const
Returns true if crash dump generation for unhandled fatal errors is enabled, false otherwise...
Definition: SystemProperties.hpp:236
const char * authInitLibrary() const
Return the security auth library.
Definition: SystemProperties.hpp:321
const bool debugStackTraceEnabled() const
Returns true if the stack trace is enabled ,false otherwise.
Definition: SystemProperties.hpp:224
const int32_t notifyDupCheckLife() const
Returns the expiry time of an idle event id map entry for duplicate notification checking.
Definition: SystemProperties.hpp:186
const int32_t redundancyMonitorInterval() const
Returns the time between two consecutive checks for redundancy for HA.
Definition: SystemProperties.hpp:176
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:207
const char * statisticsArchiveFile() const
Returns the name of the filename into which statistics would be archived.
Definition: SystemProperties.hpp:117
PropertiesPtr getSecurityProperties() const
Returns securityPropertiesPtr.
Definition: SystemProperties.hpp:349
Log::LogLevel logLevel() const
Returns the log level at which logging would be done.
Definition: SystemProperties.hpp:132
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:153
const char * durableClientId() const
Returns the durable client ID.
Definition: SystemProperties.hpp:191
const uint32_t suspendedTxTimeout() const
Returns the timeout after which suspended transactions are rolled back.
Definition: SystemProperties.hpp:426
bool statisticsEnabled() const
Tells whether statistics needs to be archived or not.
Definition: SystemProperties.hpp:79
const char * sslTrustStore() const
Returns the path of the public key file for SSL use.
Definition: SystemProperties.hpp:109
bool disableChunkHandlerThread() const
This can be call to know whether chunkhandler thread is disable for that opertaion.
Definition: SystemProperties.hpp:283
This namespace contains all the GemFire C++ API classes, enumerations and globals.
Definition: Assert.hpp:19
const int32_t pingInterval() const
Returns the time between two consecutive ping to servers.
Definition: SystemProperties.hpp:172
char * conflateEvents()
Returns client Queueconflation option.
Definition: SystemProperties.hpp:219
bool autoReadyForEvents() const
Whether a non durable client starts to receive and process subscription events automatically.
Definition: SystemProperties.hpp:418
const char * sslKeystorePassword() const
Returns the client keystore password.
Definition: SystemProperties.hpp:103
const char * sslKeyStore() const
Returns the path of the private key file for SSL use.
Definition: SystemProperties.hpp:97
bool onClientDisconnectClearPdxTypeIds() const
returns true if app want to clear pdx type ids when client disconnect.
Definition: SystemProperties.hpp:307
bool isEndpointShufflingDisabled() const
Checks whether list of endpoint is shuffeled or not.
Definition: SystemProperties.hpp:366
const uint32_t logDiskSpaceLimit() const
Returns the log-disk-space-limit.
Definition: SystemProperties.hpp:256
const bool heapLRULimitEnabled() const
Returns a boolean that specifies if heapLRULimit has been enabled for the process.
Definition: SystemProperties.hpp:143
bool sslEnabled() const
Whether SSL is enabled for socket connections.
Definition: SystemProperties.hpp:85
const uint32_t tombstoneTimeoutInMSec() const
Returns the tombstone timeout .
Definition: SystemProperties.hpp:431
const char * securityClientDhAlgo()
Return the security diffie hellman secret key algo.
Definition: SystemProperties.hpp:335
AuthInitialize *(* LibraryAuthInitializeFn)(const char *assemblyPath, const char *factFuncName)
The SystemProperties class.
Definition: SystemProperties.hpp:31
bool isAppDomainEnabled() const
This property checks whether C# client is running in multiple appdoamin or not.
Definition: SystemProperties.hpp:404
void setOnClientDisconnectClearPdxTypeIds(bool set)
Set to true if app want to clear pdx type ids when client disconnect.
Definition: SystemProperties.hpp:316
bool isDhOn()
Check whether Diffie-Hellman based credentials encryption is on.
Definition: SystemProperties.hpp:375
const uint32_t connectTimeout() const
Returns the connect timeout used for server and locator handshakes.
Definition: SystemProperties.hpp:201
#define CPPCACHE_EXPORT
Defines a GemFire CPPCACHE export.
Definition: gf_base.hpp:51
const uint32_t durableTimeout() const
Returns the durable timeout.
Definition: SystemProperties.hpp:196
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:395
void setDisableChunkHandlerThread(bool set)
This can be call multiple time to disable chunkhandler thread for those operations.
Definition: SystemProperties.hpp:299
bool isSecurityOn() const
Checks whether Security is on or off.
Definition: SystemProperties.hpp:357
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:213
const uint32_t statsDiskSpaceLimit() const
Returns the stat-disk-size-limit.
Definition: SystemProperties.hpp:268
A class for internal use, that encapsulates the properties that can be set from DistributedSystem::co...
Definition: SystemProperties.hpp:40
const uint32_t logFileSizeLimit() const
Returns the log-file-size-limit.
Definition: SystemProperties.hpp:250
bool readTimeoutUnitInMillis() const
This can be call to know whether read timeout unit is in milli second.
Definition: SystemProperties.hpp:291
const int32_t heapLRUDelta() const
Returns the HeapLRUDelta value (a percent value).
Definition: SystemProperties.hpp:162
const char * logFilename() const
Returns the name of the filename into which logging would be done.
Definition: SystemProperties.hpp:125
Specifies the mechanism to obtain credentials for a client.
Definition: AuthInitialize.hpp:32
const int32_t maxSocketBufferSize() const
Returns the maximum socket buffer size to use.
Definition: SystemProperties.hpp:167