virtual bool Proud::CDbCacheServer2::GetAllRemoteClientAddrPort |
( |
CFastArray< AddrPort > & |
ret | ) |
|
|
pure virtual |
virtual intptr_t Proud::CDbCacheServer2::GetCachingDataTreeCount |
( |
| ) |
|
|
pure virtual |
Return the client is connected
virtual AddrPort Proud::CDbCacheServer2::GetTcpListenerLocalAddr |
( |
| ) |
|
|
pure virtual |
Gets the address of TCP listening socket opened by this DB cache server
virtual int64_t Proud::CDbCacheServer2::GetUnloadRequestTimeoutTimeMs |
( |
| ) |
const |
|
pure virtual |
Creates DB cache server instance
virtual void Proud::CDbCacheServer2::SetDbmsWriteIntervalMs |
( |
int64_t |
val | ) |
|
|
pure virtual |
TODO:translate needed Waiting time from the moment receiving the info on data addition/modification/removal from DB cache client until actual writing to DBMS
- Parameter is in milliseconds.
- If this is set too short then work load to DBMS will increase.
- If this is set too long then it will increase the chance to lose the data in memory that was waiting to be written to DBMS in case that DB cache server meets abnormal termination. (e.g. power failure)
- Parameters
-
virtual void Proud::CDbCacheServer2::SetDefaultTimeoutTimeMs |
( |
int |
newValInMs | ) |
|
|
pure virtual |
virtual void Proud::CDbCacheServer2::SetDefaultTimeoutTimeSec |
( |
double |
newValInSec | ) |
|
|
pure virtual |
virtual void Proud::CDbCacheServer2::SetUnloadedDataHibernateDurationMs |
( |
int64_t |
val | ) |
|
|
pure virtual |
TODO:translate needed Waiting time that the unloaded data at DB cache client waits until it is fully removed from DB cache memory
- If this is set too short then the work load to DBMS will increase.
- If this is set too long then it will increase the amount of memory usage in DB cache server.
virtual void Proud::CDbCacheServer2::SetUnloadRequestTimeoutTimeMs |
( |
int64_t |
timeoutMs | ) |
|
|
pure virtual |
TODO:translate needed Activates the connection from client then starts actual connection to DBMS
- Parameters
-
virtual void Proud::CDbCacheServer2::Stop |
( |
| ) |
|
|
pure virtual |
Disconnect with all clients, finish all works that in process then close thread.