#include <pm.h>
Definition at line 58 of file pm.h.
Public Member Functions | |
| pm_FileList (const pm_FileList &a_fileList) | |
| pm_FileList (const i_JobRequestList_t &a_fileList) | |
| i_JobRequestList_t * | ConvertToCorba () |
| UInt64_t | GetListSize () |
| UInt32_t | NumOfFiles () |
Private Member Functions | |
| void | CalcSize () |
Private Attributes | |
| pm_FileList_v | m_fileList |
| ivd_FileSize_t | m_listfSize |
| log_CLASSID_m | |
| pm_FileList::pm_FileList | ( | const pm_FileList & | a_fileList | ) |
Definition at line 32 of file pm_filelist.cpp.
References CalcSize(), log_FUNC_m, and m_fileList.
00032 : 00033 m_listfSize(0) { 00034 00035 log_FUNC_m(pm_FileList); 00036 00037 m_fileList = a_fileList.m_fileList; 00038 CalcSize(); 00039 }

| pm_FileList::pm_FileList | ( | const i_JobRequestList_t & | a_fileList | ) |
Definition at line 41 of file pm_filelist.cpp.
References CalcSize(), dbg_DETAIL, dbg_NORM, file, pm_File_t::fileIdx, pm_File_t::fSize, ie_DATA_CORRUPTION, log_DBG_m, log_FUNC_m, and m_fileList.
00042 : m_listfSize(0) { 00043 00044 log_FUNC_m(pm_FileList); 00045 00046 if (a_fileList.length() == 0) { 00047 throw ivd_InternalError(ie_DATA_CORRUPTION, "File List is empty"); 00048 } 00049 00050 for (UInt32_t i = 0; i < a_fileList.length(); i++){ 00051 pm_File_t file; 00052 file.fileIdx = a_fileList[i].fileIdx; 00053 file.fSize = a_fileList[i].fSize; 00054 00055 m_fileList.push_back(file); 00056 log_DBG_m(dbg_DETAIL, 00057 "iFile: [" << 00058 a_fileList[i].fileIdx << "] " << " : " << a_fileList[i].fSize 00059 ); 00060 } 00061 00062 CalcSize(); 00063 log_DBG_m(dbg_NORM, "m_fileList length is " << m_fileList.size()); 00064 }

| i_JobRequestList_t * pm_FileList::ConvertToCorba | ( | ) |
Definition at line 76 of file pm_filelist.cpp.
References dbg_NORM, i_JobRequest_t::fileID, i_JobRequest_t::fileIdx, i_JobRequest_t::fSize, log_DBG_m, log_FUNC_m, and m_fileList.
Referenced by i_MigrationJob_i::CompleteJob(), i_MigrationJob_i::Execute(), and i_MigrationJob_i::GetFiles().
00076 { 00077 log_FUNC_m(ConvertToCorba); 00078 00079 i_JobRequestList_t_var iFileList(new i_JobRequestList_t(m_fileList.size())); 00080 iFileList->length(m_fileList.size()); 00081 log_DBG_m(dbg_NORM,"Coverting fileList of " << m_fileList.size() << " elements"); 00082 00083 for(UInt32_t i = 0; i < iFileList->length(); i++){ 00084 i_JobRequest_t iFile; 00085 iFile.fileID = 0; 00086 iFile.fileIdx = m_fileList[i].fileIdx; 00087 iFile.fSize = m_fileList[i].fSize; 00088 iFileList[i] = iFile; 00089 } 00090 log_DBG_m(dbg_NORM,"Created CORBA::sequence with " << iFileList->length() << " elements" ); 00091 00092 return iFileList._retn(); 00093 }

| UInt64_t pm_FileList::GetListSize | ( | ) |
Definition at line 96 of file pm_filelist.cpp.
References m_listfSize.
Referenced by i_MigrationJob_i::Execute().
00096 { 00097 return m_listfSize; 00098 }

| UInt32_t pm_FileList::NumOfFiles | ( | ) |
Definition at line 72 of file pm_filelist.cpp.
References m_fileList.
Referenced by i_MigrationJob_i::i_MigrationJob_i().
00072 { 00073 return m_fileList.size(); 00074 }

| void pm_FileList::CalcSize | ( | ) | [private] |
Definition at line 100 of file pm_filelist.cpp.
References dbg_DETAIL, log_DBG_m, log_FUNC_m, m_fileList, and m_listfSize.
Referenced by pm_FileList().
00100 { 00101 log_FUNC_m(CalcSize); 00102 00103 m_listfSize = 0; 00104 for (UInt32_t i = 0 ; i < m_fileList.size(); i++){ 00105 m_listfSize += m_fileList[i].fSize; 00106 } 00107 m_listfSize += m_fileList.size() * 1024; 00108 log_DBG_m(dbg_DETAIL,"Size of List is " << m_listfSize); 00109 }

pm_FileList_v pm_FileList::m_fileList [private] |
Definition at line 72 of file pm.h.
Referenced by CalcSize(), ConvertToCorba(), NumOfFiles(), and pm_FileList().
ivd_FileSize_t pm_FileList::m_listfSize [private] |
pm_FileList::log_CLASSID_m [private] |
1.5.6