i_DelExpiredFilesJob_i Class Reference
[Partition Manager]

#include <i_delexpiredfilesjob_impl.h>

Inheritance diagram for i_DelExpiredFilesJob_i:

Inheritance graph
[legend]
Collaboration diagram for i_DelExpiredFilesJob_i:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 21 of file i_delexpiredfilesjob_impl.h.


Public Member Functions

 i_DelExpiredFilesJob_i (pm_JobMgr &a_jobMgr, i_PartitionManager_i &a_iPM, i_UIMessageServer_ptr a_uims)
virtual ~i_DelExpiredFilesJob_i ()

Public Attributes

 log_CLASSID_m

Protected Member Functions

void Execute ()

Constructor & Destructor Documentation

i_DelExpiredFilesJob_i::i_DelExpiredFilesJob_i ( pm_JobMgr a_jobMgr,
i_PartitionManager_i a_iPM,
i_UIMessageServer_ptr  a_uims 
)

Definition at line 34 of file i_delexpiredfilesjob_impl.cpp.

References log_FUNC_m.

00037     : i_ThreadJob_i(a_jobMgr, a_iPM, a_uims) {
00038     log_FUNC_m(i_DelExpiredFilesJob_i);
00039 }

i_DelExpiredFilesJob_i::~i_DelExpiredFilesJob_i (  )  [virtual]

Definition at line 41 of file i_delexpiredfilesjob_impl.cpp.

References log_FUNC_m.

00041                                                 {
00042     log_FUNC_m(~i_DelExpiredFilesJob_i);
00043 }


Member Function Documentation

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

Implements i_ThreadJob_i.

Definition at line 48 of file i_delexpiredfilesjob_impl.cpp.

References i_FSC_i::DelExpiredFiles(), ui_MsgWriter::DisplayMessage(), evt_MAINTJOB, i_PartitionManager_i::GetClientPathSeparator(), i_PartitionManager_i::GetExpirationTree(), ivd_BaseException::GetFriendly(), i_PartitionManager_i::GetName(), i_FAILED, i_SUCCEDED, ie_FATAL_ERROR, log_FUNC_m, log_WriteEvent(), i_PartitionManager_i::m_iFSCi, i_PartitionManager_i::m_iHSM, i_Job_i::m_iJob, i_ThreadJob_i::m_iPM, i_Job_i::m_status, and i_ThreadJob_i::m_uiMsgWriter.

00048                                      {
00049     log_FUNC_m(Execute);
00050 
00051     m_status = i_FAILED;
00052     try {
00053         m_uiMsgWriter.DisplayMessage(
00054                         "Started deletion job. Partition " + m_iPM.GetName());
00055         m_iPM.m_iFSCi->DelExpiredFiles(m_uiMsgWriter,
00056                                        i_HSM::_duplicate(m_iPM.m_iHSM),
00057                                        m_iPM.GetExpirationTree(),
00058                                        m_iPM.GetClientPathSeparator());
00059     }
00060     catch (ivd_Exception &e) {
00061         m_uiMsgWriter.DisplayMessage(
00062                     "Deletion of expired files failed. " + e.GetFriendly());
00063         log_WriteEvent( "Failed.", evt_MAINTJOB, m_iJob->GetJobId());
00064         throw;
00065     }
00066     catch (...) {
00067         log_WriteEvent( "Failed.", evt_MAINTJOB, m_iJob->GetJobId());
00068         throw ivd_InternalError(ie_FATAL_ERROR, "Unknown exception caught");
00069     }
00070     m_status = i_SUCCEDED;    
00071 }

Here is the call graph for this function:


Member Data Documentation

Reimplemented from i_ThreadJob_i.

Definition at line 31 of file i_delexpiredfilesjob_impl.h.


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

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