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

pm_RecallSetReader Class Reference
[G_new_group]

#include <pm_recallsetreader.h>

Collaboration diagram for pm_RecallSetReader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 pm_RecallSetReader (string a_partName, UInt32_t a_mediaKey, UInt32_t a_medVolNr)
 pm_RecallSetReader (UInt32_t a_mediaKey, UInt32_t a_medVolNr, UInt32_t a_sourceMedKey)
 pm_RecallSetReader (UInt32_t a_medVolNr, ivd_FileLocationData_t_v_i a_begin, ivd_FileLocationData_t_v_i a_end)
 ~pm_RecallSetReader ()
void SetFileInfo ()
i_FileLocationDataList_tGetNextRecallSet (UInt64_t a_bufferSize)
i_FileLocationDataList_tGetNextRecallSet ()
i_RecallList_tGetCurrentRecallSet ()
UInt64_t GetCurrentSplitSize ()
void SetCurrentBuffSize (UInt64_t a_buffSize)
UInt64_t GetCurrentBuffSize ()
UInt64_t GetRemainingBytesToCopy ()
bool EndOfCurrentVolume ()
void ReadFinished (i_CompletionStatus_e a_status)
void WriteFinished (i_CompletionStatus_e a_status)
bool IsReadFinished ()
bool IsWriteFinished ()

Public Attributes

cmn_Path m_dataPath
UInt32_t m_fileSize
UInt32_t m_currentPosition
bool m_fileValid

Private Member Functions

void ResetReadFinished ()
void ResetWriteFinished ()

Private Attributes

fsc_FLSPerVolumem_currentVolumeFLS_p
UInt64_t m_currentBuffSize
bool m_GetNextList
bool m_WriteOfSetFinished
bool m_ReadOfSetFinished
 log_CLASSID_m
 Macro to add class name member s_className.

Detailed Description

Definition at line 48 of file pm_recallsetreader.h.


Constructor & Destructor Documentation

pm_RecallSetReader::pm_RecallSetReader ( string  a_partName,
UInt32_t  a_mediaKey,
UInt32_t  a_medVolNr 
)

Definition at line 54 of file pm_recallsetreader.cpp.

References log_FUNC_m, m_currentVolumeFLS_p, and fsc_FLSPerVolume::SortByOffset().

Here is the call graph for this function:

pm_RecallSetReader::pm_RecallSetReader ( UInt32_t  a_mediaKey,
UInt32_t  a_medVolNr,
UInt32_t  a_sourceMedKey 
)

Definition at line 77 of file pm_recallsetreader.cpp.

References log_FUNC_m, m_currentVolumeFLS_p, and fsc_FLSPerVolume::SortByOffset().

Here is the call graph for this function:

pm_RecallSetReader::pm_RecallSetReader ( UInt32_t  a_medVolNr,
ivd_FileLocationData_t_v_i  a_begin,
ivd_FileLocationData_t_v_i  a_end 
)

Definition at line 96 of file pm_recallsetreader.cpp.

References log_FUNC_m, m_currentVolumeFLS_p, and fsc_FLSPerVolume::SortByOffset().

Here is the call graph for this function:

pm_RecallSetReader::~pm_RecallSetReader (  ) 

Definition at line 114 of file pm_recallsetreader.cpp.

                                        {
    //empty
}


Member Function Documentation

bool pm_RecallSetReader::EndOfCurrentVolume (  ) 
UInt64_t pm_RecallSetReader::GetCurrentBuffSize (  ) 

Definition at line 171 of file pm_recallsetreader.cpp.

References log_FUNC_m, and m_currentBuffSize.

i_RecallList_t * pm_RecallSetReader::GetCurrentRecallSet (  ) 

Definition at line 233 of file pm_recallsetreader.cpp.

References fsc_FLSPerVolume::GetCurrentRecallList(), log_FUNC_m, and m_currentVolumeFLS_p.

Referenced by i_EfficientRecallJob_i::PrepareRecallListSeq().

Here is the call graph for this function:

Here is the caller graph for this function:

UInt64_t pm_RecallSetReader::GetCurrentSplitSize (  ) 

Definition at line 150 of file pm_recallsetreader.cpp.

References fsc_FLSPerVolume::GetCurrentSplitSize(), log_FUNC_m, and m_currentVolumeFLS_p.

Referenced by i_ReorgJob_i::Execute(), i_RedundantCopyJob_i::Execute(), and i_EfficientRecallJob_i::Execute().

Here is the call graph for this function:

Here is the caller graph for this function:

i_FileLocationDataList_t * pm_RecallSetReader::GetNextRecallSet ( UInt64_t  a_bufferSize  ) 
i_FileLocationDataList_t * pm_RecallSetReader::GetNextRecallSet (  ) 

Definition at line 143 of file pm_recallsetreader.cpp.

References log_FUNC_m, and m_currentBuffSize.

Referenced by GetNextRecallSet().

Here is the caller graph for this function:

UInt64_t pm_RecallSetReader::GetRemainingBytesToCopy (  ) 

Definition at line 157 of file pm_recallsetreader.cpp.

References fsc_FLSPerVolume::GetRemainingBytesToCopy(), log_FUNC_m, and m_currentVolumeFLS_p.

Referenced by i_ReorgJob_i::Execute(), i_RedundantCopyJob_i::Execute(), and i_EfficientRecallJob_i::Execute().

Here is the call graph for this function:

Here is the caller graph for this function:

bool pm_RecallSetReader::IsReadFinished (  )  [inline]

Definition at line 75 of file pm_recallsetreader.h.

References m_ReadOfSetFinished.

{ return m_ReadOfSetFinished; } ;

bool pm_RecallSetReader::IsWriteFinished (  )  [inline]

Definition at line 76 of file pm_recallsetreader.h.

Referenced by i_EfficientRecallJob_i::Execute(), i_ReorgJob_i::MigrateFiles(), and i_RedundantCopyJob_i::MigrateFiles().

{ return m_WriteOfSetFinished; } ;

Here is the caller graph for this function:

void pm_RecallSetReader::ReadFinished ( i_CompletionStatus_e  a_status  ) 

Definition at line 185 of file pm_recallsetreader.cpp.

References dbg_DETAIL, log_DBG_m, log_FUNC_m, ipc_Log::LogStatus(), and m_ReadOfSetFinished.

Referenced by pm_VolStatus::ReadFinished().

                                                                   {
    log_FUNC_m(ReadFinished);

    log_DBG_m(dbg_DETAIL, "Completion status: " << ipc_Log::LogStatus(a_status));

    log_DBG_m(dbg_DETAIL, "Current read status: " << 
                          boolalpha << 
                          m_ReadOfSetFinished);
    
    m_ReadOfSetFinished = true;

    log_DBG_m(dbg_DETAIL, "Read status set to: " << 
                          boolalpha << 
                          m_ReadOfSetFinished);   
}

Here is the call graph for this function:

Here is the caller graph for this function:

void pm_RecallSetReader::ResetReadFinished (  )  [private]

Definition at line 219 of file pm_recallsetreader.cpp.

References log_FUNC_m, and m_ReadOfSetFinished.

Referenced by GetNextRecallSet().

                                           {
    log_FUNC_m(ResetReadStatus);

    m_ReadOfSetFinished = false;
}

Here is the caller graph for this function:

void pm_RecallSetReader::ResetWriteFinished (  )  [private]

Definition at line 226 of file pm_recallsetreader.cpp.

References log_FUNC_m, and m_WriteOfSetFinished.

Referenced by GetNextRecallSet().

                                            {
    log_FUNC_m(ResetWriteStatus);

    m_WriteOfSetFinished = false;
}

Here is the caller graph for this function:

void pm_RecallSetReader::SetCurrentBuffSize ( UInt64_t  a_buffSize  ) 

Definition at line 164 of file pm_recallsetreader.cpp.

References log_FUNC_m, and m_currentBuffSize.

Referenced by i_EfficientRecallJob_i::Execute(), i_ReorgJob_i::RecallFiles(), and i_RedundantCopyJob_i::RecallFiles().

Here is the caller graph for this function:

void pm_RecallSetReader::SetFileInfo (  ) 
void pm_RecallSetReader::WriteFinished ( i_CompletionStatus_e  a_status  ) 

Definition at line 202 of file pm_recallsetreader.cpp.

References dbg_DETAIL, log_DBG_m, log_FUNC_m, ipc_Log::LogStatus(), m_ReadOfSetFinished, and m_WriteOfSetFinished.

Referenced by pm_VolStatus::WriteFinished().

                                                                   {
    log_FUNC_m(WriteFinished);

    log_DBG_m(dbg_DETAIL, "Completion status: " << ipc_Log::LogStatus(a_status));

    log_DBG_m(dbg_DETAIL, "Current write status: " << 
                          boolalpha << 
                          m_ReadOfSetFinished);
    
    m_WriteOfSetFinished = true;

    log_DBG_m(dbg_DETAIL, "Write status set to: " << 
                          boolalpha << 
                          m_WriteOfSetFinished);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Macro to add class name member s_className.

Definition at line 93 of file pm_recallsetreader.h.

Definition at line 87 of file pm_recallsetreader.h.

Referenced by GetCurrentBuffSize(), GetNextRecallSet(), and SetCurrentBuffSize().

Definition at line 80 of file pm_recallsetreader.h.

Definition at line 76 of file pm_recallsetreader.h.

Definition at line 79 of file pm_recallsetreader.h.

Definition at line 81 of file pm_recallsetreader.h.

Definition at line 88 of file pm_recallsetreader.h.

Referenced by GetNextRecallSet().

Definition at line 89 of file pm_recallsetreader.h.

Referenced by ResetWriteFinished(), and WriteFinished().


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