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.


Detailed Description

Definition at line 22 of file i_fsccheckjob_impl.h.


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

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 39 of file i_fsccheckjob_impl.cpp.

References log_FUNC_m.

00045         :
00046         i_ThreadJob_i(a_jobMgr, a_iPM, a_uims),
00047         m_numFilesPerBatch(a_numFilesPerBatch),
00048         m_sysLoadPct(a_sysLoadPct)
00049         
00050 {
00051     log_FUNC_m(i_FSCCheckJob_i);
00052 }
//============================================================================//

i_FSCCheckJob_i::~i_FSCCheckJob_i (  )  [virtual]

Definition at line 56 of file i_fsccheckjob_impl.cpp.

References log_FUNC_m.

00056                                  {
00057     log_FUNC_m(~i_FSCCheckJob_i);
00058 
00059 }


Member Function Documentation

void i_FSCCheckJob_i::AbortJob (  )  [virtual]

Reimplemented from i_Job_i.

Definition at line 62 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.

00062                               {
00063     log_FUNC_m(AbortJob);
00064     try {
00065         ipc_EXEC_m (
00066             i_HSM_var iHSM = m_iPM.GetHSM();
00067             log_DBG_m(dbg_NORM, "Abort CheckFSCvsIVDFS");
00068             iHSM->Abort(i_htCheckFSCvsIVDFS);
00069         );
00070     }
00071     catch(ivd_Error) {
00072         log_WriteEvent(
00073             evt_ERROR,
00074             "HSM process not accessible, maybe not mounted.",
00075             GetJobTypeText(),
00076             m_iJobParams.jobID);
00077     }
00078 }

Here is the call graph for this function:

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

Implements i_ThreadJob_i.

Definition at line 80 of file i_fsccheckjob_impl.cpp.

References dbg_DETAIL, dbg_LOW, ui_MsgWriter::DisplayError(), ivd_BaseException::GetFriendly(), i_PartitionManager_i::GetHSM(), ui_MsgWriter::GetMessageServer(), i_FAILED, i_SUCCEDED, 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.

00080                               {
00081     log_FUNC_m(Execute);
00082 
00083     try {
00084         try {
00085             ipc_EXEC_m(
00086                 log_DBG_m(dbg_DETAIL, "will get HSM from PM:" << &m_iPM);
00087                 i_HSM_var iHSM = m_iPM.GetHSM();
00088                 log_DBG_m(dbg_DETAIL, "will start check");
00089                 iHSM->CheckFSCvsIVDFS(
00090                     m_numFilesPerBatch,
00091                     m_sysLoadPct,
00092                     m_uiMsgWriter.GetMessageServer());
00093 
00094                 log_DBG_m(dbg_LOW,"Check finished.");
00095             );
00096         }
00097         catch (ivd_Exception &e) {
00098             ostringstream err;
00099             err << e.GetFriendly() << endl;
00100             m_uiMsgWriter.DisplayError(err.str());
00101             m_status = i_FAILED;
00102             return;
00103         }
00104     }
00105     catch (ivd_Exception &ie) {
00106         log_ERR_m( ie );
00107         throw;
00108     }
00109     catch (ivd_InternalError &iie) {
00110         log_ERR_m( iie );
00111         throw;
00112     }
00113     catch ( ... ) {
00114         log_ERR_m("Caught unknown exception." );
00115         throw;
00116     }
00117     m_status = i_SUCCEDED;
00118 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from i_ThreadJob_i.

Definition at line 37 of file i_fsccheckjob_impl.h.

Definition at line 42 of file i_fsccheckjob_impl.h.

Referenced by Execute().

Definition at line 43 of file i_fsccheckjob_impl.h.

Referenced by Execute().


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

Generated on Mon Feb 27 19:32:46 2012 for OPENARCHIVE by  doxygen 1.5.6