28 #ifndef ONLY_LOCAL_PROXY
31 #ifndef __CA_REPLAYDATABASE__
32 #define __CA_REPLAYDATABASE__
42 #define REPLAY_DB_ENTRIES_PER_HEAP 1000
60 #define SECONDS_PER_INTERVALL 600
87 time_t now=time(NULL);
109 UINT32 insertsPerMeasure);
THREAD_RETURN replaydb_loopMaintenance(void *param)
struct __t_replay_database_heap t_replay_databaseHeap
struct __t_database_info t_replay_databaseInfo
#define REPLAY_DB_ENTRIES_PER_HEAP
struct __t_replay_database_entry t_replay_databaseEntry
t_replay_databaseEntry * LP_replay_databaseEntry
#define SECONDS_PER_INTERVALL
SINT32 getCurrentReplayTimestamp(tReplayTimestamp &replayTimestamp) const
Returns the current Replay timestamp for this database.
UINT32 getRefTime() const
Returns the local time in seconds since epoch for replay timestamp='0' for this database.
t_replay_databaseInfo * m_currDatabase
t_replay_databaseInfo * m_prevDatabase
friend THREAD_RETURN replaydb_loopMaintenance(void *param)
static SINT32 getTimeForReplayTimestamp(UINT32 &refTime, tReplayTimestamp replayTimestamp)
Returns the refernce time (seconds since epoch) for the given replay timestamp.
SINT32 insert(UINT8 key[16])
Inserts this key in the replay DB.
static SINT32 measurePerformance(UINT8 *strLogFile, UINT32 lowerBoundEntries, UINT32 upperBoundEntries, UINT32 stepBy, UINT32 meassuresPerStep, UINT32 insertsPerMeasure)
This mehtod can be used to measure the performance of the Replay database.
SINT32 deleteDB(t_replay_databaseInfo *&pDB)
Deletes the whole database pDB.
t_replay_databaseInfo * createDBInfo()
Creates and initialises a dbinfo struct.
SINT32 simulateInsert(UINT8 key[16])
This is a modified copy of insert() which simulates the insert() function as close as possible withou...
t_replay_databaseInfo * m_nextDatabase
SINT32 clearDB(t_replay_databaseInfo *pDB)
clears the whole database pDB - but does not delete the hashtable pDB
SINT32 fill(UINT32 nrOfEntries)
Pre fills the database with nrOfEntries random entries.
LP_replay_databaseEntry getNewDBEntry(t_replay_databaseInfo *pDB)
volatile SINT32 m_currentClock
static SINT32 getReplayTimestampForTime(tReplayTimestamp &replayTimestamp, UINT32 aktTime, UINT32 refTime)
Returns the replay timestamp for this reference time (seconds since epoch) and time.
t_replay_databaseHeap * m_pHeap
t_replay_databaseHeap * m_pLastHeap
LP_replay_databaseEntry m_pHashTable[0x10000]
__t_replay_database_entry * right
__t_replay_database_entry * left
__t_replay_database_heap * next
t_replay_databaseEntry m_pEntries[REPLAY_DB_ENTRIES_PER_HEAP]