Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes

i_FSCCheckJob_i Class Reference
[Partition Manager]

#include <i_fsccheckjob_impl.h>

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

List of all members.

Public Member Functions

 i_FSCCheckJob_i (pm_JobMgr &a_jobMgr, i_PartitionManager_i &a_iPM, i_UIMessageServer_ptr a_uims, Int32_t a_numFilesPerBatch, Int16_t a_sysLoadPct)
virtual ~i_FSCCheckJob_i ()
void AbortJob ()

Public Attributes

 log_CLASSID_m

Protected Member Functions

void Execute ()

Protected Attributes

Int32_t m_numFilesPerBatch
Int16_t m_sysLoadPct

Detailed Description

Definition at line 36 of file i_fsccheckjob_impl.h.


Constructor & Destructor Documentation

i_FSCCheckJob_i::i_FSCCheckJob_i ( pm_JobMgr a_jobMgr,
i_PartitionManager_i a_iPM,
i_UIMessageServer_ptr  a_uims,
Int32_t  a_numFilesPerBatch,
Int16_t  a_sysLoadPct 
)

Definition at line 53 of file i_fsccheckjob_impl.cpp.

References log_FUNC_m.

        :
        i_ThreadJob_i(a_jobMgr, a_iPM, a_uims),
        m_numFilesPerBatch(a_numFilesPerBatch),
        m_sysLoadPct(a_sysLoadPct)
        
{
    log_FUNC_m(i_FSCCheckJob_i);
}

i_FSCCheckJob_i::~i_FSCCheckJob_i (  )  [virtual]

Definition at line 70 of file i_fsccheckjob_impl.cpp.

References log_FUNC_m.


Member Function Documentation

void i_FSCCheckJob_i::AbortJob (  )  [virtual]

Reimplemented from i_Job_i.

Definition at line 76 of file i_fsccheckjob_impl.cpp.

References dbg_NORM, evt_ERROR, i_PartitionManager_i::GetHSM(), i_Job_i::GetJobTypeText(), i_htCheckFSCvsIVDFS, ipc_EXEC_m, i_JobParams::jobID, log_DBG_m, log_FUNC_m, log_WriteEvent(), i_Job_i::m_iJobParams, and i_ThreadJob_i::m_iPM.

                              {
    log_FUNC_m(AbortJob);
    try {
        ipc_EXEC_m (
            i_HSM_var iHSM = m_iPM.GetHSM();
            log_DBG_m(dbg_NORM, "Abort CheckFSCvsIVDFS");
            iHSM->Abort(i_htCheckFSCvsIVDFS);
        );
    }
    catch(ivd_Error) {
        log_WriteEvent(
            evt_ERROR,
            "HSM process not accessible, maybe not mounted.",
            GetJobTypeText(),
            m_iJobParams.jobID);
    }
}

Here is the call graph for this function:

void i_FSCCheckJob_i::Execute (  )  [protected, virtual]

Implements i_ThreadJob_i.

Definition at line 94 of file i_fsccheckjob_impl.cpp.

References dbg_DETAIL, dbg_LOW, ui_MsgWriter::DisplayError(), ivd_BaseException::GetFriendly(), i_PartitionManager_i::GetHSM(), ui_MsgWriter::GetMessageServer(), ipc_EXEC_m, log_DBG_m, log_ERR_m, log_FUNC_m, i_ThreadJob_i::m_iPM, m_numFilesPerBatch, i_Job_i::m_status, m_sysLoadPct, and i_ThreadJob_i::m_uiMsgWriter.

                              {
    log_FUNC_m(Execute);

    try {
        try {
            ipc_EXEC_m(
                log_DBG_m(dbg_DETAIL, "will get HSM from PM:" << &m_iPM);
                i_HSM_var iHSM = m_iPM.GetHSM();
                log_DBG_m(dbg_DETAIL, "will start check");
                iHSM->CheckFSCvsIVDFS(
                    m_numFilesPerBatch,
                    m_sysLoadPct,
                    m_uiMsgWriter.GetMessageServer());

                log_DBG_m(dbg_LOW,"Check finished.");
            );
        }
        catch (ivd_Exception &e) {
            ostringstream err;
            err << e.GetFriendly() << endl;
            m_uiMsgWriter.DisplayError(err.str());
            m_status = i_FAILED;
            return;
        }
    }
    catch (ivd_Exception &ie) {
        log_ERR_m( ie );
        throw;
    }
    catch (ivd_InternalError &iie) {
        log_ERR_m( iie );
        throw;
    }
    catch ( ... ) {
        log_ERR_m("Caught unknown exception." );
        throw;
    }
    m_status = i_SUCCEDED;
}

Here is the call graph for this function:


Member Data Documentation

Reimplemented from i_ThreadJob_i.

Definition at line 51 of file i_fsccheckjob_impl.h.

Definition at line 56 of file i_fsccheckjob_impl.h.

Referenced by Execute().

Definition at line 57 of file i_fsccheckjob_impl.h.

Referenced by Execute().


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