00001 //------------------------------------------------------------------------------ 00002 #ifndef oSysLog_h 00003 #define oSysLog_h 1 00004 //------------------------------------------------------------------------------ 00005 00006 #include "d_Varray.h" 00007 #include "d_Object.h" 00008 #include "oSysTxLog.h" 00009 00010 //------------------------------------------------------------------------------ 00011 class oSysLog : public d_Object 00012 { 00013 public: 00014 oSysLog( d_ULong iMaxTxLogs ); 00015 00016 void d_deactivate(); 00017 00018 /** 00019 * Create new tx log object in storage 00020 */ 00021 d_Ref_NoTx<oSysTxLog> createTxLog(); 00022 00023 /** 00024 * Remove tx log object in storage 00025 */ 00026 void removeTxLog( d_Ref_NoTx<oSysTxLog>& iTxLog ); 00027 00028 /** 00029 * Check integrity of log transactions stored 00030 */ 00031 void checkIntegrity(); 00032 00033 // INTERNAL CONSTRUCTOR 00034 oSysLog( d_Object::DynaFactoryConstructor* iObj ){;} 00035 00036 private: 00037 // MAX TX LOGS STORABLE 00038 d_ULong maxTxLogs; 00039 00040 // LAST DATABASE SHUTDOWN: TRUE = SOFT, FALSE = CRASH 00041 d_Boolean softShutdown; 00042 00043 // TX LOG LIST 00044 d_Varray< d_Ref_NoTx<oSysTxLog> > txLogList; 00045 }; 00046 //------------------------------------------------------------------------------ 00047 //------------------------------------------------------------------------------ 00048 00049 #endif 00050
1.3-rc1