Static Public Member Functions | Public Attributes

ipc_Log Class Reference
[IPC (CORBA) helpers]

#include <ipc_helpers.h>

List of all members.

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

Detailed Description

Definition at line 41 of file ipc_helpers.h.


Member Function Documentation

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

Definition at line 589 of file ipc_helpers.cpp.

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

                                                                       {
    ostringstream logStream;
    logStream <<
        endl <<
        "CopiesPosition " <<
        "[DataType:MedVolNum:MediumKey:BlockOffset:SplitOffset:SplitSize]" <<
        endl;

    for (UInt32_t i = 0; i < a_copPos.length(); i++) {
        logStream << "[";
        for(UInt32_t j = 0; j < a_copPos[i].length(); j++) {
            logStream << a_copPos[i][j].dataType    << ":";
            logStream << a_copPos[i][j].medVolNum   << ":";
            logStream << a_copPos[i][j].mediumKey    << ":";
            logStream << a_copPos[i][j].blockOffset << ":";
            logStream << a_copPos[i][j].splitOffset << ":";
            logStream << a_copPos[i][j].splitSize   ;
        }
        logStream << "]" << endl;
    }

    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 450 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().

                                                       {
    ostringstream logStream;
    logStream << "driveKey          " << a_drive.driveKey       << endl;
    logStream << "libraryName       " << a_drive.libraryName    << endl;
    logStream << "driveName         " << a_drive.driveName      << endl;
    logStream << "status            " << a_drive.status         << endl;
    logStream << "driveIndex        " << a_drive.driveIndex     << endl;
    logStream << "mediumFamily      " <<
        ivd_MediaFamilyToText(ivd_MediaFamily_e(a_drive.mediaFamily))    << endl;
    logStream << "capabilities      " << a_drive.capabilities   << endl;
    logStream << "dataThroughput    " << a_drive.dataThroughput << endl;
    logStream << "loadTime          " << a_drive.loadTime       << endl;
    logStream << "unloadTime        " << a_drive.unloadTime     << endl;
    logStream << "aveSeekTime       " << a_drive.aveSeekTime    << endl;
    logStream << "rewindTime        " << a_drive.rewindTime     << endl;
    logStream << "usageCount        " << a_drive.usageCount      << endl;
    logStream << "cleanNr           " << a_drive.cleanNr        << endl;
    logStream << "lastClean         " << a_drive.lastClean      << endl;
    logStream << "options           " << a_drive.options        << endl;
    logStream << "vendorID          " << a_drive.vendorID       << endl;
    logStream << "productID         " << a_drive.productID      << endl;
    logStream << "serialNo          " << a_drive.serialNo       << endl;
    logStream << "firmwareRev       " << a_drive.firmwareRev  << endl;
    logStream << "scsiID            " << a_drive.scsiID  << endl;

    return logStream.str();
}

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 480 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().

                                                                   {
    ostringstream logStream;
    logStream << "host          " << a_driveHost.host           << endl;
    logStream << "driveName     " << a_driveHost.driveName      << endl;
    logStream << "controlDevice " << a_driveHost.controlDevice  << endl;

    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 490 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().

                                                        {
    ostringstream logStream;
    logStream << "diskSubsysKey  " << a_dss.diskSubsysKey   << endl;
    logStream << "diskSubsysName " << a_dss.diskSubsysName  << endl;
    logStream << "host           " << a_dss.host            << endl;
    logStream << "diskSubsysType " << a_dss.diskSubsysType  << endl;
    logStream << "status         " << a_dss.status          << endl;

    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 310 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().

                                                                 {
    ostringstream logStream;

    logStream << endl;
    logStream << "Job Id:           " << a_jobParams.jobID << endl;
    logStream << "Mig Id:           " << a_jobParams.migID << endl;
    logStream << "jobPriority       " << a_jobParams.jobPriority << endl;
    logStream << "priorityModifier  " << a_jobParams.priorityModifier << endl;
    logStream << "partName          " << a_jobParams.partName << endl;
    logStream << "partUUID          " << a_jobParams.partUUID << endl;
    logStream << "jobType           " << ivd_JobTypeToText(static_cast<ivd_JobType_e>(a_jobParams.jobType)) << endl;
    logStream << "StartTime         " << a_jobParams.startTime << endl;
    logStream << "Phase             " << a_jobParams.phase << endl;
    logStream << "Copies            " << a_jobParams.copies << endl;
    logStream << "Status            " << ipc_Log::LogJobStatus(a_jobParams.status) << endl;

    return logStream.str();
}

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 287 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().

                                                                   {

    switch (a_jobStatus) {
            case (job_NOT_STARTED):
                    return string("NOT_STARTED");
            case (job_STARTED):
                    return string("STARTED");
            case (job_PRE_MED_PROC):
                    return string("job_PRE_MED_PROC");
            case (job_MED_PROC):
                    return string("job_MED_PROC");
            case (job_POST_MED_PROC):
                    return string("job_POST_MED_PROC");
            case (job_NA):
                    return string("NA");
        };

    ostringstream logStream;
    logStream << "WARNING: enum i_JobStatus_e: [" << a_jobStatus <<
                 "] was probably changed without changing ipc_Log::LogStatus !!!";
    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 426 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().

                                                              {
    ostringstream logStream;
    logStream << "libraryKey        " << a_library.libraryKey << endl;
    logStream << "libraryName       " << a_library.libraryName   << endl;
    logStream << "status            " << a_library.status  << endl;
    logStream << "host              " << a_library.host  << endl;
    logStream << "controlDevice     " << a_library.controlDevice  << endl;
    logStream << "libraryType       " << a_library.libraryType  << endl;
    logStream << "mediumFamily      " << a_library.mediaFamily  << endl;
    logStream << "capabilities      " << a_library.capabilities  << endl;
    logStream << "auditTime         " << a_library.auditTime  << endl;
    logStream << "mediumAccessTime  " << a_library.mediaAccessTime  << endl;
    logStream << "mediumXChgTime    " << a_library.mediaXChgTime  << endl;
    logStream << "options           " << a_library.options  << endl;
    logStream << "loadNr            " << a_library.loadNr  << endl;
    logStream << "unloadNr          " << a_library.unloadNr  << endl;
    logStream << "productID         " << a_library.productID  << endl;
    logStream << "serialNo          " << a_library.serialNo  << endl;
    logStream << "vendorID          " << a_library.vendorID  << endl;
    logStream << "firmwareRev       " << a_library.firmwareRev  << endl;
    logStream << "scsiID            " << a_library.scsiID  << endl;
    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 514 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().

                                                            {
    ostringstream logStream;
    logStream << "mediaPoolKey          " << a_mp.mediaPoolKey          << endl;
    logStream << "mediaPoolName         " << a_mp.mediaPoolName         << endl;
    logStream << "mediaFamily           " <<
        ivd_MediaFamilyToText(ivd_MediaFamily_e(a_mp.mediaFamily)) << endl;
    logStream << "mediaPoolType         " << a_mp.mediaPoolType         << endl;
    logStream << "partitionUUIDString   " << a_mp.partitionUUIDString   << endl;
    logStream << "maxMediaAge           " << a_mp.maxMediaAge           << endl;
    logStream << "maxNrReadWrite        " << a_mp.maxNrReadWrite        << endl;
    logStream << "blockSize             " << a_mp.blockSize             << endl;
    logStream << "numOfVolumes          " << a_mp.numOfVolumes          << endl;
    logStream << "idxOfSysVol           " << a_mp.sysVolLocation        << endl;
    logStream << "sizeOfSysVol          " << a_mp.sizeOfSysVol          << endl;
    logStream << "sizeOfVolume          " << a_mp.sizeOfVolume          << endl;

    return logStream.str();
}

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 535 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().

                                                          {
    ostringstream logStream;
    logStream << "mediumKey      " << a_medium.mediumKey       << endl;
    logStream << "mediaPoolName " << a_medium.mediaPoolName  << endl;
    logStream << "libraryName   " << a_medium.libraryName    << endl;
    logStream << "slotAddr      " << a_medium.slotAddr       << endl;
    logStream << "slotType      " << a_medium.slotType       << endl;
    logStream << "diskSubsysName " << a_medium.diskSubsysName << endl;
    logStream << "driveName     " << a_medium.driveName     << endl;
    logStream << "barcode       " << a_medium.barcode        << endl;
    logStream << "status        " << a_medium.status         << endl;
    logStream << "location      " << a_medium.location       << endl;
    logStream << "mediumType     " <<
        ivd_MediaTypeToText(ivd_MediaType_e(a_medium.mediumType)) << endl;
    logStream << "mediumSerialNo " << a_medium.mediumSerialNo  << endl;
    logStream << "blockSize     " << a_medium.blockSize      << endl;
    logStream << "numOfVolumes  " << a_medium.numOfVolumes   << endl;
    logStream << "idxOfSysVol   " << a_medium.idxOfSysVol    << endl;
    logStream << "sizeOfSysVol  " << a_medium.sizeOfSysVol   << endl;
    logStream << "currentVolume " << a_medium.currentVolume  << endl;
    logStream << "partitionName " << a_medium.partitionName  << endl;

    return logStream.str();
}

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 564 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().

                                                                   {
    ostringstream logStream;
    logStream << "mediumBarcode  " << a_mediumVol.mediumBarcode    << endl;
    logStream << "medVolNr      " << a_mediumVol.medVolNr        << endl;
    logStream << "medVolId      " << a_mediumVol.medVolId        << endl;
    logStream << "status        " << a_mediumVol.status          << endl;
    logStream << "volType       " << a_mediumVol.volType         << endl;
    logStream << "volUsed       " << a_mediumVol.volUsed         << endl;
    logStream << "volSize       " << a_mediumVol.volSize         << endl;
    logStream << "accessNr      " << a_mediumVol.accessNr        << endl;
    logStream << "writeNr       " << a_mediumVol.writeNr         << endl;
    logStream << "owriteNr      " << a_mediumVol.owriteNr        << endl;
    logStream << "initTime      " << a_mediumVol.initTime        << endl;
    logStream << "accessTime    " << a_mediumVol.accessTime      << endl;
    logStream << "writeTime     " << a_mediumVol.writeTime       << endl;
    logStream << "owriteTime    " << a_mediumVol.owriteTime      << endl;
    logStream << "lastVerification " << a_mediumVol.lastVerification << endl;
    logStream << "totalData     " << a_mediumVol.totalData << endl;
    logStream << "validData     " << a_mediumVol.validData << endl;

    return logStream.str();
}

Here is the caller graph for this function:

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

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

                                                                 {
    ostringstream logStream;

    logStream << "    Resource num:     " << a_resource.resNum << endl;

    logStream << "    PoolKey:          " <<  a_resource.poolKey << endl;
    logStream << "    PoolUUID:         " <<  a_resource.poolUUID << endl;
    logStream << "    PoolName:         " <<  a_resource.poolName << endl;
    logStream << "    PoolType:         " <<  a_resource.poolType << endl;
    logStream << "    LibraryName:      " <<  a_resource.libraryName << endl;
    logStream << "    LibraryHost:      " <<  a_resource.libraryHost << endl;

    logStream << "    DriveKey:         " <<  a_resource.driveKey << endl;
    logStream << "    DriveCtrlDevice:  " <<  a_resource.driveCtrlDevice << endl;
    logStream << "    DriveIndex:       " <<  a_resource.driveIndex << endl;
    logStream << "    DriveHost:        " <<  a_resource.driveHost << endl;

    //logStream << "    DssKey:           " <<  a_resource.dssKey << endl;
    logStream << "    MediumKey:        " <<  a_resource.mediumKey << endl;
    logStream << "    Barcode:          " <<  a_resource.barcode << endl;

    logStream << "    LoadRequired:     " <<  boolalpha << a_resource.load << endl;
    logStream << "    BlockSize:        " <<  a_resource.blockSize << endl;
    logStream << "    MediumFamily:     " <<
        ivd_MediaFamilyToText(ivd_MediaFamily_e(a_resource.mediumFamily)) << endl;

    logStream << "    LoadSlotAddr:     " <<  a_resource.loadSlotAddr << endl;
    logStream << "    UnloadSlotAddr:   " <<  a_resource.unloadSlotAddr << endl;
    logStream << "    UnloadBarcode:    " <<  a_resource.unloadBarcode << endl;


    logStream << "    MedVolNr:         " <<  a_resource.medVolNr << endl;
    logStream << "    MedVolId:         " <<  a_resource.medVolId << endl;
    logStream << "    MedVolType:       " <<  a_resource.medVolType << endl;

    logStream << "    FileID:           " <<  a_resource.fileId << endl;
    logStream << "    BlockOffset:      " <<  a_resource.blockOffset << endl;
    logStream << "    SplitOffset:      " <<  a_resource.splitOffset << endl;

    logStream << "    resRequested:     " <<  boolalpha << a_resource.resRequested << endl;
    logStream << "    resAllocated:     " <<  boolalpha << a_resource.resAllocated << endl;
    logStream << "    resAssigned:      " <<  boolalpha << a_resource.resAssigned  << endl;
    logStream << "    resReleased:      " <<  boolalpha << a_resource.resReleased  << endl;
    logStream << "    resBeaStarted:    " <<  boolalpha << a_resource.resBeaStarted  << endl;
    logStream << "    resProcessed:     " <<  boolalpha << a_resource.resProcessed << endl;
    logStream << "    resMedOpComplete: " <<  boolalpha << a_resource.resMedOpComplete << endl;

    logStream << "    collocation: "    << boolalpha << a_resource.collocation << endl;
    logStream << "    majColId: "       << a_resource.majColId << endl;
    logStream << "    minColId: "       << a_resource.minColId << endl;
    logStream << "    minFlags: "       << a_resource.minFlags << endl;

    return logStream.str();
}

Here is the call graph for this function:

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

Definition at line 502 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().

                                                    {
    ostringstream logStream;
    logStream << "slotKey       " << a_slot.slotKey     << endl;
    logStream << "libraryName   " << a_slot.libraryName << endl;
    logStream << "slotAddr      " << a_slot.slotAddr    << endl;
    logStream << "slotType      " << a_slot.slotType    << endl;
    logStream << "status        " << a_slot.status      << endl;

    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 613 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().

                                                                    {
    ostringstream logStream;
    switch (a_status) {
        case(i_SUCCEDED):
            logStream << "Succeded";
            break;
        case(i_FAILED):
            logStream << "Failed";
            break;
        case(i_INV_PARAMS):
            logStream << "Invalid Parameters";
            break;
        case(i_CLIENT_ERROR):
            logStream << "Client Error";
            break;
        case(i_CLIENT_NOFILES):
            logStream << "Client no files.";
            break;
        case(i_RESOURCE_ERROR):
            logStream << "Resource Error";
            break;
        case(i_FSC_ERROR):
            logStream << "FSC Error";
            break;
        case(i_RMCOPYPOS_ERROR):
            logStream << "Copy Position Error";
            break;
        case(i_NO_HOST):
            logStream << "No host";
            break;
        case(i_LA_ERROR):
            logStream << "LA Error";
            break;
        case(i_SVC_ERROR):
            logStream << "SVC Error";
            break;
        case(i_BEA_ERROR):
            logStream << "BEA Error";
            break;
        case(i_MEDIUM_ERROR):
            logStream << "Medium Error";
            break;
        case(i_HW_ERROR):
            logStream << "Hardware Error";
            break;
        case(i_INV_MEDVOLID):
            logStream << "Invalid MedVol ID";
            break;
        case(i_DATA_ERROR):
            logStream << "Data Error";
            break;
        case(i_REMOVED):
            logStream << "Removed";
            break;
        case(i_ABORTED):
            logStream << "Aborted";
            break;
        case(i_UNKNOWN):
            logStream << "Unknown";
            break;
        default:
            logStream << endl << "***************************************************" << endl <<
                      "WARNING: enum i_CompletionStatus_e: [" << a_status <<
                      "] was probably changed without changing ipc_Log::LogStatus !!!";


    }
    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 683 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().

                                                             {
    ostringstream logStream;

    logStream << "volNum        " << a_volInfo.volNum   << endl;
    logStream << "type          " << a_volInfo.type     << endl;
    logStream << "mediumType    " << a_volInfo.mediumType     << endl;
    logStream << "implID        " << a_volInfo.implID   << endl;
    logStream << "size          " << a_volInfo.size     << endl;
    logStream << "sysVolNum     " << a_volInfo.sysVolNum << endl;
    logStream << "medVolID      " << a_volInfo.medVolID << endl;
    logStream << "poolID        " << a_volInfo.poolID   << endl;
    logStream << "partID        " << a_volInfo.partID   << endl;
    logStream << "blockSize     " << a_volInfo.blockSize << endl;
    logStream << "accessNum     " << a_volInfo.accessNum << endl;
    logStream << "appendNum     " << a_volInfo.appendNum << endl;
    logStream << "owriteNum     " << a_volInfo.owriteNum << endl;
    logStream << "accessTime    " << a_volInfo.accessTime << endl;
    logStream << "appendTime    " << a_volInfo.appendTime << endl;
    logStream << "owriteTime    " << a_volInfo.owriteTime << endl;
    return logStream.str();
}

Here is the caller graph for this function:

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

Definition at line 395 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().

                                                                         {

    switch (a_resourceBusy) {
            case (i_RESOURCE_UNKNOWN):
                    return string("N/A");
            case (i_MEDIUM_BUSY):
                    return string("Medium busy");
            case (i_MEDIUM_NOT_AVAILABLE):
                    return string("Medium not available");
            case (i_DRIVE_BUSY):
                    return string("Drive busy");
            case (i_DRIVE_NOT_AVAILABLE):
                    return string("Drive not available");
            case (i_LIBRARY_NOT_AVAILABLE):
                    return string("Library not available");
            case (i_PRIORITY_BELOW_THRESHOLD):
                    return string("Priority below threshold");
            case (i_MAX_NUM_DRIVES):
                    return string("Exceeded maximum number of drives");
            case (i_COL_GRP_SIZE_EXC):
                    return string("Exceeded maximum collocation group size");

        };

    ostringstream logStream;
    logStream << "WARNING: enum i_ResourceBusy_t: [" << a_resourceBusy <<
                 "] was probably changed without changing ipc_Log::LogStatus !!!";
    return logStream.str();
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 61 of file ipc_helpers.h.


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