Proud::CDbCacheServer2 Class Referenceabstract

Public Member Functions

virtual intptr_t GetCachingDataTreeCount ()=0
 
virtual void Start (CDbCacheServer2StartParameter &params)=0
 
virtual void Stop ()=0
 
virtual void SetDbmsWriteIntervalMs (int64_t val)=0
 
virtual void SetUnloadedDataHibernateDurationMs (int64_t val)=0
 
virtual void SetDefaultTimeoutTimeMs (int newValInMs)=0
 
virtual void SetDefaultTimeoutTimeSec (double newValInSec)=0
 
virtual AddrPort GetTcpListenerLocalAddr ()=0
 
virtual bool GetAllRemoteClientAddrPort (CFastArray< AddrPort > &ret)=0
 
virtual void SetUnloadRequestTimeoutTimeMs (int64_t timeoutMs)=0
 
virtual int64_t GetUnloadRequestTimeoutTimeMs () const =0
 

Static Public Member Functions

static PROUDSRV_API
CDbCacheServer2
New ()
 

Detailed Description

Member Function Documentation

virtual bool Proud::CDbCacheServer2::GetAllRemoteClientAddrPort ( CFastArray< AddrPort > &  ret)
pure virtual

TODO:translate needed.

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

TODO:translate needed.

static PROUDSRV_API CDbCacheServer2* Proud::CDbCacheServer2::New ( )
static

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
    val
virtual void Proud::CDbCacheServer2::SetDefaultTimeoutTimeMs ( int  newValInMs)
pure virtual

Performs similar role as Proud.CNetServer.SetDefaultTimeoutTimeMs

virtual void Proud::CDbCacheServer2::SetDefaultTimeoutTimeSec ( double  newValInSec)
pure virtual

TODO:translate needed. Performs similar role as Proud.CNetServer.SetDefaultTimeoutTimeSec

Parameters
val
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.

virtual void Proud::CDbCacheServer2::Start ( CDbCacheServer2StartParameter params)
pure virtual

TODO:translate needed Activates the connection from client then starts actual connection to DBMS

Parameters
params
virtual void Proud::CDbCacheServer2::Stop ( )
pure virtual

Disconnect with all clients, finish all works that in process then close thread.