ipc_Log Class Reference
[IPC (CORBA) helpers]

#include <ipc_helpers.h>

List of all members.


Detailed Description

Definition at line 27 of file ipc_helpers.h.


Static Public Member Functions

static const string LogJobParams (const i_JobParams &a_jobParams)
static const string LogJobStatus (const i_JobStatus_e &a_jobStatus)
static const string LogResources (const i_ResourceList_t &a_resources)
static const string LogResources (const i_Resource_t &a_resources)
static const string ResourceBusy (const i_ResourceBusy_e &a_resourceBusy)
static const string LogLibrary (const i_Library_t &a_library)
static const string LogDrive (const i_Drive_t &a_drive)
static const string LogDriveHost (const i_DriveHost_t &a_driveHost)
static const string LogDSS (const i_DiskSubsys_t &a_dss)
static const string LogSlot (const i_Slot_t &a_slot)
static const string LogMediaPool (const i_MediaPool_t &a_mp)
static const string LogMedium (const i_Medium_t &a_medium)
static const string LogMediumVol (const i_MediumVol_t &a_mediumVol)
static const string LogCopiesPosition (const i_CopiesPos_v_t &a_copPos)
static const string LogStatus (const i_CompletionStatus_e &a_status)
static const string LogVolInfo (const i_VolInfo_t &a_volInfo)

Public Attributes

 log_CLASSID_m

Member Function Documentation

const string ipc_Log::LogJobParams ( const i_JobParams a_jobParams  )  [static]

Definition at line 296 of file ipc_helpers.cpp.

References i_JobParams::copies, ivd_JobTypeToText(), i_JobParams::jobID, i_JobParams::jobPriority, i_JobParams::jobType, LogJobStatus(), i_JobParams::migID, i_JobParams::partName, i_JobParams::partUUID, i_JobParams::phase, i_JobParams::priorityModifier, i_JobParams::startTime, and i_JobParams::status.

Referenced by i_MediumDupl_i::AssignResources(), i_ResourceManager_i::ExchangeRecallResources(), i_ResourceManager_i::ExchangeResources(), i_ResourceManager_i::GetJob(), i_ResourceManager_i::GetRecallResources(), i_ResourceManager_i::GetResources(), i_BackupJob_i::i_BackupJob_i(), i_MediumCheckJob_i::i_MediumCheckJob_i(), i_MediumDupl_i::i_MediumDupl_i(), i_MigrationJob_i::i_MigrationJob_i(), i_RecoveryJob_i::i_RecoveryJob_i(), i_ThreadJob_i::i_ThreadJob_i(), ListAllJobsinRM(), i_ManagementInterface_i::ListJob(), i_ManagementInterface_i::ListJobs(), ListJobsinPM(), and i_ResourceManager_i::ReleaseResource().

00296                                                                  {
00297     ostringstream logStream;
00298 
00299     logStream << endl;
00300     logStream << "Job Id:           " << a_jobParams.jobID << endl;
00301     logStream << "Mig Id:           " << a_jobParams.migID << endl;
00302     logStream << "jobPriority       " << a_jobParams.jobPriority << endl;
00303     logStream << "priorityModifier  " << a_jobParams.priorityModifier << endl;
00304     logStream << "partName          " << a_jobParams.partName << endl;
00305     logStream << "partUUID          " << a_jobParams.partUUID << endl;
00306     logStream << "jobType           " << ivd_JobTypeToText(static_cast<ivd_JobType_e>(a_jobParams.jobType)) << endl;
00307     logStream << "StartTime         " << a_jobParams.startTime << endl;
00308     logStream << "Phase             " << a_jobParams.phase << endl;
00309     logStream << "Copies            " << a_jobParams.copies << endl;
00310     logStream << "Status            " << ipc_Log::LogJobStatus(a_jobParams.status) << endl;
00311 
00312     return logStream.str();
00313 }

Here is the call graph for this function:

Here is the caller graph for this function:

const string ipc_Log::LogJobStatus ( const i_JobStatus_e a_jobStatus  )  [static]

Definition at line 273 of file ipc_helpers.cpp.

References job_MED_PROC, job_NA, job_NOT_STARTED, job_POST_MED_PROC, job_PRE_MED_PROC, and job_STARTED.

Referenced by LogJobParams().

00273                                                                    {
00274 
00275     switch (a_jobStatus) {
00276             case (job_NOT_STARTED):
00277                     return string("NOT_STARTED");
00278             case (job_STARTED):
00279                     return string("STARTED");
00280             case (job_PRE_MED_PROC):
00281                     return string("job_PRE_MED_PROC");
00282             case (job_MED_PROC):
00283                     return string("job_MED_PROC");
00284             case (job_POST_MED_PROC):
00285                     return string("job_POST_MED_PROC");
00286             case (job_NA):
00287                     return string("NA");
00288         };
00289 
00290     ostringstream logStream;
00291     logStream << "WARNING: enum i_JobStatus_e: [" << a_jobStatus <<
00292                  "] was probably changed without changing ipc_Log::LogStatus !!!";
00293     return logStream.str();
00294 }

Here is the caller graph for this function:

const string ipc_Log::LogResources ( const i_ResourceList_t a_resources  )  [static]

const string ipc_Log::LogResources ( const i_Resource_t a_resources  )  [static]

Definition at line 326 of file ipc_helpers.cpp.

References i_Resource_t::barcode, i_Resource_t::blockOffset, i_Resource_t::blockSize, i_Resource_t::collocation, i_Resource_t::driveCtrlDevice, i_Resource_t::driveHost, i_Resource_t::driveIndex, i_Resource_t::driveKey, i_Resource_t::fileId, ivd_MediaFamilyToText(), i_Resource_t::libraryHost, i_Resource_t::libraryName, i_Resource_t::load, i_Resource_t::loadSlotAddr, i_Resource_t::majColId, i_Resource_t::mediumFamily, i_Resource_t::mediumKey, i_Resource_t::medVolId, i_Resource_t::medVolNr, i_Resource_t::medVolType, i_Resource_t::minColId, i_Resource_t::minFlags, i_Resource_t::poolKey, i_Resource_t::poolName, i_Resource_t::poolType, i_Resource_t::poolUUID, i_Resource_t::resAllocated, i_Resource_t::resAssigned, i_Resource_t::resBeaStarted, i_Resource_t::resMedOpComplete, i_Resource_t::resNum, i_Resource_t::resProcessed, i_Resource_t::resReleased, i_Resource_t::resRequested, i_Resource_t::splitOffset, i_Resource_t::unloadBarcode, and i_Resource_t::unloadSlotAddr.

00326                                                                  {
00327     ostringstream logStream;
00328 
00329     logStream << "    Resource num:     " << a_resource.resNum << endl;
00330 
00331     logStream << "    PoolKey:          " <<  a_resource.poolKey << endl;
00332     logStream << "    PoolUUID:         " <<  a_resource.poolUUID << endl;
00333     logStream << "    PoolName:         " <<  a_resource.poolName << endl;
00334     logStream << "    PoolType:         " <<  a_resource.poolType << endl;
00335     logStream << "    LibraryName:      " <<  a_resource.libraryName << endl;
00336     logStream << "    LibraryHost:      " <<  a_resource.libraryHost << endl;
00337 
00338     logStream << "    DriveKey:         " <<  a_resource.driveKey << endl;
00339     logStream << "    DriveCtrlDevice:  " <<  a_resource.driveCtrlDevice << endl;
00340     logStream << "    DriveIndex:       " <<  a_resource.driveIndex << endl;
00341     logStream << "    DriveHost:        " <<  a_resource.driveHost << endl;
00342 
00343     //logStream << "    DssKey:           " <<  a_resource.dssKey << endl;
00344     logStream << "    MediumKey:        " <<  a_resource.mediumKey << endl;
00345     logStream << "    Barcode:          " <<  a_resource.barcode << endl;
00346 
00347     logStream << "    LoadRequired:     " <<  boolalpha << a_resource.load << endl;
00348     logStream << "    BlockSize:        " <<  a_resource.blockSize << endl;
00349     logStream << "    MediumFamily:     " <<
00350         ivd_MediaFamilyToText(ivd_MediaFamily_e(a_resource.mediumFamily)) << endl;
00351 
00352     logStream << "    LoadSlotAddr:     " <<  a_resource.loadSlotAddr << endl;
00353     logStream << "    UnloadSlotAddr:   " <<  a_resource.unloadSlotAddr << endl;
00354     logStream << "    UnloadBarcode:    " <<  a_resource.unloadBarcode << endl;
00355 
00356 
00357     logStream << "    MedVolNr:         " <<  a_resource.medVolNr << endl;
00358     logStream << "    MedVolId:         " <<  a_resource.medVolId << endl;
00359     logStream << "    MedVolType:       " <<  a_resource.medVolType << endl;
00360 
00361     logStream << "    FileID:           " <<  a_resource.fileId << endl;
00362     logStream << "    BlockOffset:      " <<  a_resource.blockOffset << endl;
00363     logStream << "    SplitOffset:      " <<  a_resource.splitOffset << endl;
00364 
00365     logStream << "    resRequested:     " <<  boolalpha << a_resource.resRequested << endl;
00366     logStream << "    resAllocated:     " <<  boolalpha << a_resource.resAllocated << endl;
00367     logStream << "    resAssigned:      " <<  boolalpha << a_resource.resAssigned  << endl;
00368     logStream << "    resReleased:      " <<  boolalpha << a_resource.resReleased  << endl;
00369     logStream << "    resBeaStarted:    " <<  boolalpha << a_resource.resBeaStarted  << endl;
00370     logStream << "    resProcessed:     " <<  boolalpha << a_resource.resProcessed << endl;
00371     logStream << "    resMedOpComplete: " <<  boolalpha << a_resource.resMedOpComplete << endl;
00372 
00373     logStream << "    collocation: "    << boolalpha << a_resource.collocation << endl;
00374     logStream << "    majColId: "       << a_resource.majColId << endl;
00375     logStream << "    minColId: "       << a_resource.minColId << endl;
00376     logStream << "    minFlags: "       << a_resource.minFlags << endl;
00377     
00378     return logStream.str();
00379 }

Here is the call graph for this function:

const string ipc_Log::ResourceBusy ( const i_ResourceBusy_e a_resourceBusy  )  [static]

Definition at line 381 of file ipc_helpers.cpp.

References i_COL_GRP_SIZE_EXC, i_DRIVE_BUSY, i_DRIVE_NOT_AVAILABLE, i_LIBRARY_NOT_AVAILABLE, i_MAX_NUM_DRIVES, i_MEDIUM_BUSY, i_MEDIUM_NOT_AVAILABLE, i_PRIORITY_BELOW_THRESHOLD, and i_RESOURCE_UNKNOWN.

Referenced by rm_Queue::Allocate(), i_ReorgJob_i::SetResourceBusyStatus(), i_RedundantCopyJob_i::SetResourceBusyStatus(), i_MediumDupl_i::SetResourceBusyStatus(), i_AdminJob_i::SetResourceBusyStatus(), and i_ManagementInterface_i::WaitingForResStatus().

00381                                                                          {
00382 
00383     switch (a_resourceBusy) {
00384             case (i_RESOURCE_UNKNOWN):
00385                     return string("N/A");
00386             case (i_MEDIUM_BUSY):
00387                     return string("Medium busy");
00388             case (i_MEDIUM_NOT_AVAILABLE):
00389                     return string("Medium not available");
00390             case (i_DRIVE_BUSY):
00391                     return string("Drive busy");
00392             case (i_DRIVE_NOT_AVAILABLE):
00393                     return string("Drive not available");
00394             case (i_LIBRARY_NOT_AVAILABLE):
00395                     return string("Library not available");
00396             case (i_PRIORITY_BELOW_THRESHOLD):
00397                     return string("Priority below threshold");
00398             case (i_MAX_NUM_DRIVES):
00399                     return string("Exceeded maximum number of drives");
00400             case (i_COL_GRP_SIZE_EXC):
00401                     return string("Exceeded maximum collocation group size");
00402             
00403         };
00404 
00405     ostringstream logStream;
00406     logStream << "WARNING: enum i_ResourceBusy_t: [" << a_resourceBusy <<
00407                  "] was probably changed without changing ipc_Log::LogStatus !!!";
00408     return logStream.str();
00409 }

Here is the caller graph for this function:

const string ipc_Log::LogLibrary ( const i_Library_t a_library  )  [static]

Definition at line 412 of file ipc_helpers.cpp.

References i_Library_t::auditTime, i_Library_t::capabilities, i_Library_t::controlDevice, i_Library_t::firmwareRev, i_Library_t::host, i_Library_t::libraryKey, i_Library_t::libraryName, i_Library_t::libraryType, i_Library_t::loadNr, i_Library_t::mediaAccessTime, i_Library_t::mediaFamily, i_Library_t::mediaXChgTime, i_Library_t::options, i_Library_t::productID, i_Library_t::scsiID, i_Library_t::serialNo, i_Library_t::status, i_Library_t::unloadNr, and i_Library_t::vendorID.

Referenced by i_ResourceManager_i::AddLibrary(), and i_ResourceManager_i::UpdateLibrary().

00412                                                               {
00413     ostringstream logStream;
00414     logStream << "libraryKey        " << a_library.libraryKey << endl;
00415     logStream << "libraryName       " << a_library.libraryName   << endl;
00416     logStream << "status            " << a_library.status  << endl;
00417     logStream << "host              " << a_library.host  << endl;
00418     logStream << "controlDevice     " << a_library.controlDevice  << endl;
00419     logStream << "libraryType       " << a_library.libraryType  << endl;
00420     logStream << "mediumFamily      " << a_library.mediaFamily  << endl;
00421     logStream << "capabilities      " << a_library.capabilities  << endl;
00422     logStream << "auditTime         " << a_library.auditTime  << endl;
00423     logStream << "mediumAccessTime  " << a_library.mediaAccessTime  << endl;
00424     logStream << "mediumXChgTime    " << a_library.mediaXChgTime  << endl;
00425     logStream << "options           " << a_library.options  << endl;
00426     logStream << "loadNr            " << a_library.loadNr  << endl;
00427     logStream << "unloadNr          " << a_library.unloadNr  << endl;
00428     logStream << "productID         " << a_library.productID  << endl;
00429     logStream << "serialNo          " << a_library.serialNo  << endl;
00430     logStream << "vendorID          " << a_library.vendorID  << endl;
00431     logStream << "firmwareRev       " << a_library.firmwareRev  << endl;
00432     logStream << "scsiID            " << a_library.scsiID  << endl;
00433     return logStream.str();
00434 }

Here is the caller graph for this function:

const string ipc_Log::LogDrive ( const i_Drive_t a_drive  )  [static]

Definition at line 436 of file ipc_helpers.cpp.

References i_Drive_t::aveSeekTime, i_Drive_t::capabilities, i_Drive_t::cleanNr, i_Drive_t::dataThroughput, i_Drive_t::driveIndex, i_Drive_t::driveKey, i_Drive_t::driveName, i_Drive_t::firmwareRev, ivd_MediaFamilyToText(), i_Drive_t::lastClean, i_Drive_t::libraryName, i_Drive_t::loadTime, i_Drive_t::mediaFamily, i_Drive_t::options, i_Drive_t::productID, i_Drive_t::rewindTime, i_Drive_t::scsiID, i_Drive_t::serialNo, i_Drive_t::status, i_Drive_t::unloadTime, i_Drive_t::usageCount, and i_Drive_t::vendorID.

Referenced by i_ResourceManager_i::AddDrive(), and i_ResourceManager_i::UpdateDrive().

00436                                                        {
00437     ostringstream logStream;
00438     logStream << "driveKey          " << a_drive.driveKey       << endl;
00439     logStream << "libraryName       " << a_drive.libraryName    << endl;
00440     logStream << "driveName         " << a_drive.driveName      << endl;
00441     logStream << "status            " << a_drive.status         << endl;
00442     logStream << "driveIndex        " << a_drive.driveIndex     << endl;
00443     logStream << "mediumFamily      " <<
00444         ivd_MediaFamilyToText(ivd_MediaFamily_e(a_drive.mediaFamily))    << endl;
00445     logStream << "capabilities      " << a_drive.capabilities   << endl;
00446     logStream << "dataThroughput    " << a_drive.dataThroughput << endl;
00447     logStream << "loadTime          " << a_drive.loadTime       << endl;
00448     logStream << "unloadTime        " << a_drive.unloadTime     << endl;
00449     logStream << "aveSeekTime       " << a_drive.aveSeekTime    << endl;
00450     logStream << "rewindTime        " << a_drive.rewindTime     << endl;
00451     logStream << "usageCount        " << a_drive.usageCount      << endl;
00452     logStream << "cleanNr           " << a_drive.cleanNr        << endl;
00453     logStream << "lastClean         " << a_drive.lastClean      << endl;
00454     logStream << "options           " << a_drive.options        << endl;
00455     logStream << "vendorID          " << a_drive.vendorID       << endl;
00456     logStream << "productID         " << a_drive.productID      << endl;
00457     logStream << "serialNo          " << a_drive.serialNo       << endl;
00458     logStream << "firmwareRev       " << a_drive.firmwareRev  << endl;
00459     logStream << "scsiID            " << a_drive.scsiID  << endl;
00460 
00461     return logStream.str();
00462 }

Here is the call graph for this function:

Here is the caller graph for this function:

const string ipc_Log::LogDriveHost ( const i_DriveHost_t a_driveHost  )  [static]

Definition at line 466 of file ipc_helpers.cpp.

References i_DriveHost_t::controlDevice, i_DriveHost_t::driveName, and i_DriveHost_t::host.

Referenced by i_ResourceManager_i::AddDriveHost(), and i_ResourceManager_i::UpdateDriveHost().

00466                                                                    {
00467     ostringstream logStream;
00468     logStream << "host          " << a_driveHost.host           << endl;
00469     logStream << "driveName     " << a_driveHost.driveName      << endl;
00470     logStream << "controlDevice " << a_driveHost.controlDevice  << endl;
00471 
00472     return logStream.str();
00473 }

Here is the caller graph for this function:

const string ipc_Log::LogDSS ( const i_DiskSubsys_t a_dss  )  [static]

Definition at line 476 of file ipc_helpers.cpp.

References i_DiskSubsys_t::diskSubsysKey, i_DiskSubsys_t::diskSubsysName, i_DiskSubsys_t::diskSubsysType, i_DiskSubsys_t::host, and i_DiskSubsys_t::status.

Referenced by i_ResourceManager_i::AddDiskSubsys(), and i_ResourceManager_i::UpdateDiskSubsys().

00476                                                         {
00477     ostringstream logStream;
00478     logStream << "diskSubsysKey  " << a_dss.diskSubsysKey   << endl;
00479     logStream << "diskSubsysName " << a_dss.diskSubsysName  << endl;
00480     logStream << "host           " << a_dss.host            << endl;
00481     logStream << "diskSubsysType " << a_dss.diskSubsysType  << endl;
00482     logStream << "status         " << a_dss.status          << endl;
00483 
00484     return logStream.str();
00485 }

Here is the caller graph for this function:

const string ipc_Log::LogSlot ( const i_Slot_t a_slot  )  [static]

Definition at line 488 of file ipc_helpers.cpp.

References i_Slot_t::libraryName, i_Slot_t::slotAddr, i_Slot_t::slotKey, i_Slot_t::slotType, and i_Slot_t::status.

Referenced by i_ResourceManager_i::AddSlot(), i_ManagementInterface_i::GetMediumBySlot(), and i_ResourceManager_i::UpdateSlot().

00488                                                     {
00489     ostringstream logStream;
00490     logStream << "slotKey       " << a_slot.slotKey     << endl;
00491     logStream << "libraryName   " << a_slot.libraryName << endl;
00492     logStream << "slotAddr      " << a_slot.slotAddr    << endl;
00493     logStream << "slotType      " << a_slot.slotType    << endl;
00494     logStream << "status        " << a_slot.status      << endl;
00495 
00496     return logStream.str();
00497 }

Here is the caller graph for this function:

const string ipc_Log::LogMediaPool ( const i_MediaPool_t a_mp  )  [static]

Definition at line 500 of file ipc_helpers.cpp.

References i_MediaPool_t::blockSize, ivd_MediaFamilyToText(), i_MediaPool_t::maxMediaAge, i_MediaPool_t::maxNrReadWrite, i_MediaPool_t::mediaFamily, i_MediaPool_t::mediaPoolKey, i_MediaPool_t::mediaPoolName, i_MediaPool_t::mediaPoolType, i_MediaPool_t::numOfVolumes, i_MediaPool_t::partitionUUIDString, i_MediaPool_t::sizeOfSysVol, i_MediaPool_t::sizeOfVolume, and i_MediaPool_t::sysVolLocation.

Referenced by i_ResourceManager_i::AddMediaPool(), i_AdminJob_i::CheckPool(), and i_ResourceManager_i::UpdateMediaPool().

00500                                                             {
00501     ostringstream logStream;
00502     logStream << "mediaPoolKey          " << a_mp.mediaPoolKey          << endl;
00503     logStream << "mediaPoolName         " << a_mp.mediaPoolName         << endl;
00504     logStream << "mediaFamily           " <<
00505         ivd_MediaFamilyToText(ivd_MediaFamily_e(a_mp.mediaFamily)) << endl;
00506     logStream << "mediaPoolType         " << a_mp.mediaPoolType         << endl;
00507     logStream << "partitionUUIDString   " << a_mp.partitionUUIDString   << endl;
00508     logStream << "maxMediaAge           " << a_mp.maxMediaAge           << endl;
00509     logStream << "maxNrReadWrite        " << a_mp.maxNrReadWrite        << endl;
00510     logStream << "blockSize             " << a_mp.blockSize             << endl;
00511     logStream << "numOfVolumes          " << a_mp.numOfVolumes          << endl;
00512     logStream << "idxOfSysVol           " << a_mp.sysVolLocation        << endl;
00513     logStream << "sizeOfSysVol          " << a_mp.sizeOfSysVol          << endl;
00514     logStream << "sizeOfVolume          " << a_mp.sizeOfVolume          << endl;
00515 
00516     return logStream.str();
00517 }

Here is the call graph for this function:

Here is the caller graph for this function:

const string ipc_Log::LogMedium ( const i_Medium_t a_medium  )  [static]

Definition at line 521 of file ipc_helpers.cpp.

References i_Medium_t::barcode, i_Medium_t::blockSize, i_Medium_t::currentVolume, i_Medium_t::diskSubsysName, i_Medium_t::driveName, i_Medium_t::idxOfSysVol, ivd_MediaTypeToText(), i_Medium_t::libraryName, i_Medium_t::location, i_Medium_t::mediaPoolName, i_Medium_t::mediumKey, i_Medium_t::mediumSerialNo, i_Medium_t::mediumType, i_Medium_t::numOfVolumes, i_Medium_t::partitionName, i_Medium_t::sizeOfSysVol, i_Medium_t::slotAddr, i_Medium_t::slotType, and i_Medium_t::status.

Referenced by i_ResourceManager_i::AddMedium(), i_ManagementInterface_i::GetMediumBySlot(), i_MaintFriJob_i::PrepareMedium(), i_MediumCheckJob_i::ProcessFRI(), i_ResourceManager_i::SelectMedium(), i_ResourceManager_i::SelectMediumByDrive(), i_ResourceManager_i::SelectMediumByKey(), and i_ResourceManager_i::UpdateMedium().

00521                                                           {
00522     ostringstream logStream;
00523     logStream << "mediumKey      " << a_medium.mediumKey       << endl;
00524     logStream << "mediaPoolName " << a_medium.mediaPoolName  << endl;
00525     logStream << "libraryName   " << a_medium.libraryName    << endl;
00526     logStream << "slotAddr      " << a_medium.slotAddr       << endl;
00527     logStream << "slotType      " << a_medium.slotType       << endl;
00528     logStream << "diskSubsysName " << a_medium.diskSubsysName << endl;
00529     logStream << "driveName     " << a_medium.driveName     << endl;
00530     logStream << "barcode       " << a_medium.barcode        << endl;
00531     logStream << "status        " << a_medium.status         << endl;
00532     logStream << "location      " << a_medium.location       << endl;
00533     logStream << "mediumType     " <<
00534         ivd_MediaTypeToText(ivd_MediaType_e(a_medium.mediumType)) << endl;
00535     logStream << "mediumSerialNo " << a_medium.mediumSerialNo  << endl;
00536     logStream << "blockSize     " << a_medium.blockSize      << endl;
00537     logStream << "numOfVolumes  " << a_medium.numOfVolumes   << endl;
00538     logStream << "idxOfSysVol   " << a_medium.idxOfSysVol    << endl;
00539     logStream << "sizeOfSysVol  " << a_medium.sizeOfSysVol   << endl;
00540     logStream << "currentVolume " << a_medium.currentVolume  << endl;
00541     logStream << "partitionName " << a_medium.partitionName  << endl;
00542 
00543     return logStream.str();
00544 }

Here is the call graph for this function:

Here is the caller graph for this function:

const string ipc_Log::LogMediumVol ( const i_MediumVol_t a_mediumVol  )  [static]

Definition at line 550 of file ipc_helpers.cpp.

References i_MediumVol_t::accessNr, i_MediumVol_t::accessTime, i_MediumVol_t::initTime, i_MediumVol_t::lastVerification, i_MediumVol_t::mediumBarcode, i_MediumVol_t::medVolId, i_MediumVol_t::medVolNr, i_MediumVol_t::owriteNr, i_MediumVol_t::owriteTime, i_MediumVol_t::status, i_MediumVol_t::totalData, i_MediumVol_t::validData, i_MediumVol_t::volSize, i_MediumVol_t::volType, i_MediumVol_t::volUsed, i_MediumVol_t::writeNr, and i_MediumVol_t::writeTime.

Referenced by i_ResourceManager_i::AddMediumVol(), i_AdminJob_i::CheckVolumesForFriMicJob(), i_AdminJob_i::DoInitialize(), i_RedundantCopyJob_i::Execute(), i_MaintFriJob_i::i_MaintFriJob_i(), i_MediumDupl_i::i_MediumDupl_i(), i_ReorgJob_i::i_ReorgJob_i(), i_ReorgJob_i::InitializeVolumes(), i_ManagementInterface_i::ListMediumVolumes(), i_ManagementInterface_i::PartitionReorgStat(), pm_VolStatus::pm_VolStatus(), i_MaintFriJob_i::PrepareVolumes(), i_ManagementInterface_i::RemovePartition(), i_ReorgJob_i::ReorgStatusCleanup(), and i_ResourceManager_i::UpdateMediumVol().

00550                                                                    {
00551     ostringstream logStream;
00552     logStream << "mediumBarcode  " << a_mediumVol.mediumBarcode    << endl;
00553     logStream << "medVolNr      " << a_mediumVol.medVolNr        << endl;
00554     logStream << "medVolId      " << a_mediumVol.medVolId        << endl;
00555     logStream << "status        " << a_mediumVol.status          << endl;
00556     logStream << "volType       " << a_mediumVol.volType         << endl;
00557     logStream << "volUsed       " << a_mediumVol.volUsed         << endl;
00558     logStream << "volSize       " << a_mediumVol.volSize         << endl;
00559     logStream << "accessNr      " << a_mediumVol.accessNr        << endl;
00560     logStream << "writeNr       " << a_mediumVol.writeNr         << endl;
00561     logStream << "owriteNr      " << a_mediumVol.owriteNr        << endl;
00562     logStream << "initTime      " << a_mediumVol.initTime        << endl;
00563     logStream << "accessTime    " << a_mediumVol.accessTime      << endl;
00564     logStream << "writeTime     " << a_mediumVol.writeTime       << endl;
00565     logStream << "owriteTime    " << a_mediumVol.owriteTime      << endl;
00566     logStream << "lastVerification " << a_mediumVol.lastVerification << endl;
00567     logStream << "totalData     " << a_mediumVol.totalData << endl;
00568     logStream << "validData     " << a_mediumVol.validData << endl;
00569 
00570     return logStream.str();
00571 }

Here is the caller graph for this function:

const string ipc_Log::LogCopiesPosition ( const i_CopiesPos_v_t a_copPos  )  [static]

Definition at line 575 of file ipc_helpers.cpp.

Referenced by i_ResourceManager_i::GetBestCopy(), and i_FSC_i::GetCopiesPos().

00575                                                                        {
00576     ostringstream logStream;
00577     logStream <<
00578         endl <<
00579         "CopiesPosition " <<
00580         "[DataType:MedVolNum:MediumKey:BlockOffset:SplitOffset:SplitSize]" <<
00581         endl;
00582 
00583     for (UInt32_t i = 0; i < a_copPos.length(); i++) {
00584         logStream << "[";
00585         for(UInt32_t j = 0; j < a_copPos[i].length(); j++) {
00586             logStream << a_copPos[i][j].dataType    << ":";
00587             logStream << a_copPos[i][j].medVolNum   << ":";
00588             logStream << a_copPos[i][j].mediumKey    << ":";
00589             logStream << a_copPos[i][j].blockOffset << ":";
00590             logStream << a_copPos[i][j].splitOffset << ":";
00591             logStream << a_copPos[i][j].splitSize   ;
00592         }
00593         logStream << "]" << endl;
00594     }
00595 
00596     return logStream.str();
00597 }

Here is the caller graph for this function:

const string ipc_Log::LogStatus ( const i_CompletionStatus_e a_status  )  [static]

Definition at line 599 of file ipc_helpers.cpp.

References i_ABORTED, i_BEA_ERROR, i_CLIENT_ERROR, i_CLIENT_NOFILES, i_DATA_ERROR, i_FAILED, i_FSC_ERROR, i_HW_ERROR, i_INV_MEDVOLID, i_INV_PARAMS, i_LA_ERROR, i_MEDIUM_ERROR, i_NO_HOST, i_REMOVED, i_RESOURCE_ERROR, i_RMCOPYPOS_ERROR, i_SUCCEDED, i_SVC_ERROR, and i_UNKNOWN.

Referenced by i_RecallJob_i::CompleteJob(), i_MigrationJob_i::CompleteJob(), i_EfficientRecallJob_i::CompleteJob(), i_RedundantCopyJob_i::Execute(), i_BackEndAgent_i::HandleError(), i_ThreadJob_i::MediumOperationComplete(), i_ReorgJob_i::MediumOperationComplete(), i_RedundantCopyJob_i::MediumOperationComplete(), i_RecallJob_i::MediumOperationComplete(), i_MigrationJob_i::MediumOperationComplete(), i_MaintFriJob_i::MediumOperationComplete(), i_EfficientRecallJob_i::MediumOperationComplete(), pm_VolStatus::ReadFinished(), pm_RecallSetReader::ReadFinished(), pm_VolStatus::WriteFinished(), and pm_RecallSetReader::WriteFinished().

00599                                                                     {
00600     ostringstream logStream;
00601     switch (a_status) {
00602         case(i_SUCCEDED):
00603             logStream << "Succeded";
00604             break;
00605         case(i_FAILED):
00606             logStream << "Failed";
00607             break;
00608         case(i_INV_PARAMS):
00609             logStream << "Invalid Parameters";
00610             break;
00611         case(i_CLIENT_ERROR):
00612             logStream << "Client Error";
00613             break;
00614         case(i_CLIENT_NOFILES):
00615             logStream << "Client no files.";
00616             break;
00617         case(i_RESOURCE_ERROR):
00618             logStream << "Resource Error";
00619             break;
00620         case(i_FSC_ERROR):
00621             logStream << "FSC Error";
00622             break;
00623         case(i_RMCOPYPOS_ERROR):
00624             logStream << "Copy Position Error";
00625             break;
00626         case(i_NO_HOST):
00627             logStream << "No host";
00628             break;
00629         case(i_LA_ERROR):
00630             logStream << "LA Error";
00631             break;
00632         case(i_SVC_ERROR):
00633             logStream << "SVC Error";
00634             break;
00635         case(i_BEA_ERROR):
00636             logStream << "BEA Error";
00637             break;
00638         case(i_MEDIUM_ERROR):
00639             logStream << "Medium Error";
00640             break;
00641         case(i_HW_ERROR):
00642             logStream << "Hardware Error";
00643             break;
00644         case(i_INV_MEDVOLID):
00645             logStream << "Invalid MedVol ID";
00646             break;
00647         case(i_DATA_ERROR):
00648             logStream << "Data Error";
00649             break;
00650         case(i_REMOVED):
00651             logStream << "Removed";
00652             break;
00653         case(i_ABORTED):
00654             logStream << "Aborted";
00655             break;
00656         case(i_UNKNOWN):
00657             logStream << "Unknown";
00658             break;
00659         default:
00660             logStream << endl << "***************************************************" << endl <<
00661                       "WARNING: enum i_CompletionStatus_e: [" << a_status <<
00662                       "] was probably changed without changing ipc_Log::LogStatus !!!";
00663 
00664 
00665     }
00666     return logStream.str();
00667 }

Here is the caller graph for this function:

const string ipc_Log::LogVolInfo ( const i_VolInfo_t a_volInfo  )  [static]

Definition at line 669 of file ipc_helpers.cpp.

References i_VolInfo_t::accessNum, i_VolInfo_t::accessTime, i_VolInfo_t::appendNum, i_VolInfo_t::appendTime, i_VolInfo_t::blockSize, i_VolInfo_t::implID, i_VolInfo_t::mediumType, i_VolInfo_t::medVolID, i_VolInfo_t::owriteNum, i_VolInfo_t::owriteTime, i_VolInfo_t::partID, i_VolInfo_t::poolID, i_VolInfo_t::size, i_VolInfo_t::sysVolNum, i_VolInfo_t::type, and i_VolInfo_t::volNum.

Referenced by i_MediumDupl_i::CheckTargetMedium(), i_AdminJob_i::DetectVolumeHeader(), i_AdminJob_i::DoInitialize(), i_ReorgJob_i::InitializeSingleVolume(), i_MaintFriJob_i::PrepareMedium(), i_MaintFriJob_i::PrepareVolumes(), i_RecoveryJob_i::ProcessFRI(), i_MediumCheckJob_i::ProcessFRI(), and i_AdminJob_i::RecreateFRIandMIC().

00669                                                              {
00670     ostringstream logStream;
00671 
00672     logStream << "volNum        " << a_volInfo.volNum   << endl;
00673     logStream << "type          " << a_volInfo.type     << endl;
00674     logStream << "mediumType    " << a_volInfo.mediumType     << endl;
00675     logStream << "implID        " << a_volInfo.implID   << endl;
00676     logStream << "size          " << a_volInfo.size     << endl;
00677     logStream << "sysVolNum     " << a_volInfo.sysVolNum << endl;
00678     logStream << "medVolID      " << a_volInfo.medVolID << endl;
00679     logStream << "poolID        " << a_volInfo.poolID   << endl;
00680     logStream << "partID        " << a_volInfo.partID   << endl;
00681     logStream << "blockSize     " << a_volInfo.blockSize << endl;
00682     logStream << "accessNum     " << a_volInfo.accessNum << endl;
00683     logStream << "appendNum     " << a_volInfo.appendNum << endl;
00684     logStream << "owriteNum     " << a_volInfo.owriteNum << endl;
00685     logStream << "accessTime    " << a_volInfo.accessTime << endl;
00686     logStream << "appendTime    " << a_volInfo.appendTime << endl;
00687     logStream << "owriteTime    " << a_volInfo.owriteTime << endl;
00688     return logStream.str();
00689 }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 47 of file ipc_helpers.h.


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

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