Public Member Functions | Private Attributes

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.

Public Member Functions

 dbo_InitAllResource (rm_DBThread &a_DBThread)
virtual void Process ()

Private Attributes

 log_CLASSID_m

Detailed Description

Definition at line 1328 of file rm_dboperation.h.


Constructor & Destructor Documentation

dbo_InitAllResource::dbo_InitAllResource ( rm_DBThread a_DBThread  ) 

Definition at line 1392 of file rm_dboperation.cpp.

                                                                   : 

                rm_DBOperation(a_DBThread) {
    /*empty*/
}


Member Function Documentation

void dbo_InitAllResource::Process (  )  [virtual]

Implements rm_DBOperation.

Definition at line 1398 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, and rm_DBThread::m_rmOp.

                                  {
    log_FUNC_m(Process);
    try {
        m_DBThread.m_rmOp.InitAllDrive();
    } catch (ivd_DBException& dbe) {
        if (dbe.GetError() != SQL_NOTFOUND)
        {
            log_WRN_m("Catched exception when initing drives" << dbe)
        }
    }
    /*
    try {
        m_DBThread.m_rmOp.InitAllLibrary();
    } catch (ivd_DBException& dbe) {
        if (dbe.GetError() != SQL_NOTFOUND)
            log_WRN_m("Catched exception when initing drives" << dbe)
    }

    */
    try {
        m_DBThread.m_rmOp.InitAllMedium();
    } catch (ivd_DBException& dbe) {
        if (dbe.GetError() != SQL_NOTFOUND)
            log_WRN_m("Catched exception when initing media" << dbe)
    }

    try {
        m_DBThread.m_rmOp.InitAllMediumVol();
    } catch (ivd_DBException& dbe) {
        if (dbe.GetError() != SQL_NOTFOUND)
            log_WRN_m("Catched exception when initing mediaVol" << dbe)
    }
        // reset all resource statuses 

        //rm_Operator rmOp; rmOp.InitAllDriveHost();    NYI
        //rm_Operator rmOp; rmOp.InitAllDSS();          NYI
        //rm_Operator rmOp; rmOp.InitAllMediaPool();    NYI
        //rm_Operator rmOp; rmOp.InitAllMediumVol();     NYI
        //rm_Operator rmOp; rmOp.InitAllSlot();         NYI
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from rm_DBOperation.

Definition at line 1334 of file rm_dboperation.h.


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