dbo_InitAllResource Class Reference

#include <rm_dboperation.h>

Inheritance diagram for dbo_InitAllResource:

Inheritance graph
[legend]
Collaboration diagram for dbo_InitAllResource:

Collaboration graph
[legend]

List of all members.


Detailed Description

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

Constructor & Destructor Documentation

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 }


Member Function Documentation

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 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from rm_DBOperation.

Definition at line 1318 of file rm_dboperation.h.


The documentation for this class was generated from the following files:

Generated on Mon Feb 27 19:08:10 2012 for OPENARCHIVE by  doxygen 1.5.6