Public Member Functions | Public Attributes | Private Member Functions | Private Attributes

i_MediumCheckJob_i Class Reference
[Partition Manager]

#include <i_mediumcheckjob_impl.h>

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

List of all members.

Public Member Functions

 i_MediumCheckJob_i (i_PartitionManager_i &a_iPM, pm_JobMgr &a_jobMgr, i_MediumSeqByVol_t &a_medSeqByVol, bool a_autoCorrect, bool a_removeMissingOnMedia, i_UIMessageServer_ptr a_uims, bool a_secondTry=false)
 ~i_MediumCheckJob_i ()
virtual void CompleteJob (i_CompletionStatus_e a_status)

Public Attributes

 log_CLASSID_m

Private Member Functions

void Execute ()
void ProcessFRI (pm_FRIInfo a_FRIInfo)

Private Attributes

i_PartitionManager_im_iPM
bool m_autoCorrect
bool m_removeMissingOnMedia
ivd_MediaChkStat_t m_totalChkStat

Detailed Description

Definition at line 36 of file i_mediumcheckjob_impl.h.


Constructor & Destructor Documentation

i_MediumCheckJob_i::i_MediumCheckJob_i ( i_PartitionManager_i a_iPM,
pm_JobMgr a_jobMgr,
i_MediumSeqByVol_t a_medSeqByVol,
bool  a_autoCorrect,
bool  a_removeMissingOnMedia,
i_UIMessageServer_ptr  a_uims,
bool  a_secondTry = false 
)

Definition at line 53 of file i_mediumcheckjob_impl.cpp.

References cmn_Num2Str(), dbg_LOW, cmn_Global::dirs, ui_MsgWriter::DisplayMessage(), g_cmn, i_Job_i::GetJobId(), i_Job_i::GetJobTypeText(), i_PartitionManager_i::GetName(), i_Job_i::GetResources(), i_JobParams::jobID, i_JobParams::jobPriority, i_JobParams::jobType, ivd_Directories::log, log_DBG_m, log_FUNC_m, log_WriteEvent(), ipc_Log::LogJobParams(), ipc_Log::LogResources(), m_autoCorrect, i_PartitionManager_i::m_config, i_Job_i::m_iJobParams, m_iPM, i_MaintFriJob_i::m_uiMsgWriter, cfg_PMCfg::maintPriority, ui_MsgWriter::OpenFile(), i_PartitionManager_i::SetCheckAutoCorrectRunning(), and i_PartitionManager_i::SetCheckRunning().

     : i_MaintFriJob_i(a_iPM, 
                       a_jobMgr, 
                       a_medSeqByVol, 
                       a_uims, 
                       string(""),
                       a_secondTry,
                       a_autoCorrect,
                       a_removeMissingOnMedia),
        m_iPM(a_iPM),
        m_autoCorrect(a_autoCorrect),
        m_removeMissingOnMedia(a_removeMissingOnMedia)

{
    log_FUNC_m(i_MediumCheckJob_i);
        
    log_DBG_m(dbg_LOW, "" << endl <<
        "Medium Check Job Created:" << endl <<
        ipc_Log::LogJobParams(m_iJobParams) << endl <<
        ipc_Log::LogResources(GetResources()) << endl);
    
    cmn_Path logFileName = g_cmn.dirs.log 
                           + ( string("check_medium_fsc_") 
                           + a_iPM.GetName() 
                           + string("_")
                           + cmn_Num2Str(GetJobId())
                           + string(".log") );
    
    m_uiMsgWriter.OpenFile(logFileName);

    
    if (m_autoCorrect){
        m_iPM.SetCheckAutoCorrectRunning();
    } else {
        m_iPM.SetCheckRunning();
    }

    ostringstream msg;
    msg << "Started FSC vs. media check. Partition " << a_iPM.GetName();
    m_uiMsgWriter.DisplayMessage(msg.str());
    
    log_WriteEvent(msg.str(), GetJobTypeText(), m_iJobParams.jobID);

    m_iJobParams.jobPriority = m_iPM.m_config.maintPriority;
    m_iJobParams.jobType  = jt_MAINT;
}

Here is the call graph for this function:


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