Public Member Functions | Private Attributes

dbo_ClearReorgScan Class Reference

#include <rm_dboperation.h>

Inheritance diagram for dbo_ClearReorgScan:
Inheritance graph
[legend]
Collaboration diagram for dbo_ClearReorgScan:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 dbo_ClearReorgScan (string a_partName, rm_DBThread &a_DBThread)
virtual void Process ()

Private Attributes

string m_partName
 log_CLASSID_m

Detailed Description

Definition at line 1626 of file rm_dboperation.h.


Constructor & Destructor Documentation

dbo_ClearReorgScan::dbo_ClearReorgScan ( string  a_partName,
rm_DBThread a_DBThread 
)

Definition at line 1826 of file rm_dboperation.cpp.

                                                                 : 

    rm_DBOperation(a_DBThread),
    m_partName(a_partName) {
    /*empty*/
}


Member Function Documentation

void dbo_ClearReorgScan::Process (  )  [virtual]

Implements rm_DBOperation.

Definition at line 1834 of file rm_dboperation.cpp.

References dbg_DETAIL, log_DBG_m, log_FUNC_m, rm_DBOperation::m_DBThread, m_partName, rm_DBThread::m_rmOp, rmdb_MEDVOL_REORG_SCANNED, rm_Operator::SelectAllMediumVolByPart(), and rm_Operator::Update().

                                 {
    log_FUNC_m(Process);

    i_MediumSeqByVol_t medSeq = 
        m_DBThread.m_rmOp.SelectAllMediumVolByPart(m_partName, false);

    log_DBG_m(dbg_DETAIL, "medSeq.length() " << medSeq.length());
    for (UInt32_t i(0); i < medSeq.length(); i++) {

        i_MediumVolSeq_t & medVolSeq = medSeq[i];
        log_DBG_m(dbg_DETAIL, "medVolSeq.length() " << medVolSeq.length());
/*        i_Medium_t med = m_DBThread.m_rmOp.SelectMedium(
                                string(medVolSeq[0].mediumBarcode));*/

        for (UInt32_t j(0); j < medVolSeq.length(); j++) {
            log_DBG_m(dbg_DETAIL, "Status " << medVolSeq[j].status);
            if (medVolSeq[j].status & rmdb_MEDVOL_REORG_SCANNED) {
                log_DBG_m(dbg_DETAIL, "Clearing status for " << 
                                        medVolSeq[j].medVolId);
                // clear status
                medVolSeq[j].status = medVolSeq[j].status & ~(rmdb_MEDVOL_REORG_SCANNED);
                m_DBThread.m_rmOp.Update(medVolSeq[j]);
                log_DBG_m(dbg_DETAIL, "Status " << medVolSeq[j].status);

            }
        }
    }
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from rm_DBOperation.

Definition at line 1633 of file rm_dboperation.h.

Definition at line 1632 of file rm_dboperation.h.

Referenced by Process().


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