#include <rm_dboperation.h>


Definition at line 1312 of file rm_dboperation.h.
Public Member Functions | |
| dbo_InitAllResource (rm_DBThread &a_DBThread) | |
| virtual void | Process () |
Private Attributes | |
| log_CLASSID_m | |
| dbo_InitAllResource::dbo_InitAllResource | ( | rm_DBThread & | a_DBThread | ) |
Definition at line 1378 of file rm_dboperation.cpp.
01378 : 01379 01380 rm_DBOperation(a_DBThread) { 01381 /*empty*/ 01382 }
| void dbo_InitAllResource::Process | ( | ) | [virtual] |
Implements rm_DBOperation.
Definition at line 1384 of file rm_dboperation.cpp.
References ivd_BaseException::GetError(), rm_Operator::InitAllDrive(), rm_Operator::InitAllMedium(), rm_Operator::InitAllMediumVol(), log_FUNC_m, log_WRN_m, rm_DBOperation::m_DBThread, rm_DBThread::m_rmOp, and SQL_NOTFOUND.
01384 { 01385 log_FUNC_m(Process); 01386 try { 01387 m_DBThread.m_rmOp.InitAllDrive(); 01388 } catch (ivd_DBException& dbe) { 01389 if (dbe.GetError() != SQL_NOTFOUND) 01390 { 01391 log_WRN_m("Catched exception when initing drives" << dbe) 01392 } 01393 } 01394 /* 01395 try { 01396 m_DBThread.m_rmOp.InitAllLibrary(); 01397 } catch (ivd_DBException& dbe) { 01398 if (dbe.GetError() != SQL_NOTFOUND) 01399 log_WRN_m("Catched exception when initing drives" << dbe) 01400 } 01401 01402 */ 01403 try { 01404 m_DBThread.m_rmOp.InitAllMedium(); 01405 } catch (ivd_DBException& dbe) { 01406 if (dbe.GetError() != SQL_NOTFOUND) 01407 log_WRN_m("Catched exception when initing media" << dbe) 01408 } 01409 01410 try { 01411 m_DBThread.m_rmOp.InitAllMediumVol(); 01412 } catch (ivd_DBException& dbe) { 01413 if (dbe.GetError() != SQL_NOTFOUND) 01414 log_WRN_m("Catched exception when initing mediaVol" << dbe) 01415 } 01416 // reset all resource statuses 01417 01418 //rm_Operator rmOp; rmOp.InitAllDriveHost(); NYI 01419 //rm_Operator rmOp; rmOp.InitAllDSS(); NYI 01420 //rm_Operator rmOp; rmOp.InitAllMediaPool(); NYI 01421 //rm_Operator rmOp; rmOp.InitAllMediumVol(); NYI 01422 //rm_Operator rmOp; rmOp.InitAllSlot(); NYI 01423 }

dbo_InitAllResource::log_CLASSID_m [private] |
1.5.6