Static Public Member Functions | Public Attributes

ipc_Init Class Reference
[IPC (CORBA) helpers]

#include <ipc_helpers.h>

List of all members.

Static Public Member Functions

static void FileInit (i_File_t &a_file)
static void JobRequestInit (i_JobRequest_t &a_migReq)
static void ResourceInit (i_Resource_t &a_resource)
static void JobParamsInit (i_JobParams &a_params)
static void PoolInfoInit (i_PoolInfo_t &a_poolInfo)
static void InitVolInfo (i_VolInfo_t &a_volInfo, i_MediumVol_t &a_medVol)
static void InitFSCFileState (i_FSCfileState_t &a_fstate)

Public Attributes

 log_CLASSID_m

Detailed Description

Definition at line 64 of file ipc_helpers.h.


Member Function Documentation

void ipc_Init::FileInit ( i_File_t a_file  )  [static]

Definition at line 137 of file ipc_helpers.cpp.

References i_File_t::fileIdx, i_File_t::fSize, ipc_nilStr, and i_File_t::name.

                                       {
    a_file.name      = CORBA::string_dup(ipc_nilStr);
    a_file.fSize      = 0;
    a_file.fileIdx   = 0;
}

void ipc_Init::InitFSCFileState ( i_FSCfileState_t a_fstate  )  [static]
void ipc_Init::InitVolInfo ( i_VolInfo_t a_volInfo,
i_MediumVol_t a_medVol 
) [static]
void ipc_Init::JobParamsInit ( i_JobParams a_params  )  [static]

Definition at line 201 of file ipc_helpers.cpp.

References i_JobParams::bufId, i_JobParams::bufType, i_JobParams::copies, ipc_nilStr, i_JobParams::jobID, i_JobParams::jobPriority, i_JobParams::jobType, i_JobParams::partName, i_JobParams::partUUID, i_JobParams::phase, i_JobParams::priorityModifier, i_JobParams::startTime, and i_JobParams::status.

Referenced by i_ResourceManager_i::GetAllJobs(), i_ResourceManager_i::GetJob(), and i_Job_i::i_Job_i().

                                                 {

    a_params.jobID              = 0;
    a_params.jobID              = 0;
    a_params.jobPriority        = 0;
    a_params.priorityModifier   = 0;

    a_params.partName = CORBA::string_dup(ipc_nilStr);
    a_params.partUUID = CORBA::string_dup(ipc_nilStr);

    a_params.jobType    = jt_UNKNOWN;
    a_params.bufType    = i_NA;

#if TGT_OS_windows
    #pragma message ("WARNING: what is bufId used for?")
#else
    #warning "WARNING: what is bufId used for?"
#endif

    a_params.bufId      = 0;

    a_params.startTime  = 0;
    a_params.phase      = 0;
    a_params.copies     = 0;
    a_params.status     = job_NA;
}

Here is the caller graph for this function:

void ipc_Init::JobRequestInit ( i_JobRequest_t a_migReq  )  [static]

Definition at line 143 of file ipc_helpers.cpp.

References i_JobRequest_t::fileIdx, and i_JobRequest_t::fSize.

                                                     {
    a_migReq.fSize      = 0;
    a_migReq.fileIdx   = 0;
}

void ipc_Init::PoolInfoInit ( i_PoolInfo_t a_poolInfo  )  [static]

Definition at line 228 of file ipc_helpers.cpp.

References i_PoolInfo_t::dataAvailable, i_PoolInfo_t::dataSize, ipc_nilStr, i_PoolInfo_t::mediaGood, i_PoolInfo_t::mediaOffline, i_PoolInfo_t::mediaUninitialized, i_PoolInfo_t::mediaUnreliable, i_PoolInfo_t::mediaUnusable, i_PoolInfo_t::partName, i_PoolInfo_t::poolName, i_PoolInfo_t::sysAvailable, and i_PoolInfo_t::sysSize.

                                                   {
//    string              partName;
//    string              poolName;
//
//    unsigned long long  dataSize;
//    unsigned long long  dataAvailable;
//    unsigned long long  sysSize;
//    unsigned long long  sysAvailable;
//
//
//    long    mediaGood; //number of good medias in RMDB
//    long    mediaUnusable;
//    long    mediaUnreliable;
//    long    mediaUninitialized;

    a_poolInfo.partName = CORBA::string_dup(ipc_nilStr);
    a_poolInfo.poolName = CORBA::string_dup(ipc_nilStr);

    a_poolInfo.dataAvailable = 0;
    a_poolInfo.dataSize = 0;
    a_poolInfo.sysSize = 0;
    a_poolInfo.sysAvailable = 0;
    a_poolInfo.mediaGood = 0;
    a_poolInfo.mediaUninitialized = 0;
    a_poolInfo.mediaUnreliable = 0;
    a_poolInfo.mediaUnusable = 0;
    a_poolInfo.mediaOffline = 0;
}

void ipc_Init::ResourceInit ( i_Resource_t a_resource  )  [static]

Definition at line 148 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::dssKey, i_Resource_t::fileId, ipc_nilStr, i_Resource_t::libraryHost, i_Resource_t::libraryName, i_Resource_t::load, i_Resource_t::loadSlotAddr, log_FUNC_m, 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::resourceBusyStatus, 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.

Referenced by i_BackupJob_i::i_BackupJob_i(), i_EfficientRecallJob_i::i_EfficientRecallJob_i(), i_MediumDupl_i::i_MediumDupl_i(), i_MigrationJob_i::i_MigrationJob_i(), i_RecallJob_i::i_RecallJob_i(), i_RedundantCopyJob_i::i_RedundantCopyJob_i(), i_ReorgJob_i::i_ReorgJob_i(), i_ReorgJob_i::InitializeVolumes(), i_AdminJob_i::InitJob(), i_ReorgJob_i::MigrateFiles(), i_MaintFriJob_i::PrepareMedium(), i_RedundantCopyJob_i::RecallFiles(), and i_RecallJob_i::RecallRetry().

                                                   {
    log_FUNC_m(InitResources);

    a_resource.resNum           = 0;
    a_resource.poolKey          = 0;
    a_resource.poolUUID         = CORBA::string_dup(ipc_nilStr);
    a_resource.poolName         = CORBA::string_dup(ipc_nilStr);
    a_resource.poolType         = 0;

    a_resource.libraryName      = CORBA::string_dup(ipc_nilStr);
    a_resource.libraryHost      = CORBA::string_dup(ipc_nilStr);

    a_resource.driveKey         = 0;
    a_resource.driveCtrlDevice  = CORBA::string_dup(ipc_nilStr);
    a_resource.driveIndex       = CORBA::string_dup(ipc_nilStr);
    a_resource.driveHost        = CORBA::string_dup(ipc_nilStr);

    a_resource.mediumKey        = 0;
    a_resource.barcode          = CORBA::string_dup(ipc_nilStr);
    a_resource.load             = false;
    a_resource.blockSize        = 0;
    a_resource.mediumFamily     = mf_UNKNOWN;

    a_resource.loadSlotAddr     = CORBA::string_dup(ipc_nilStr);
    a_resource.unloadSlotAddr   = CORBA::string_dup(ipc_nilStr);
    a_resource.unloadBarcode    = CORBA::string_dup(ipc_nilStr);

    a_resource.medVolNr         = 0;
    a_resource.medVolId         = CORBA::string_dup(ipc_nilStr);
    a_resource.medVolType       = 0;

    a_resource.dssKey           = 0;

    a_resource.fileId           = 0;
    a_resource.blockOffset      = 0;
    a_resource.splitOffset      = 0;

    a_resource.resRequested     = false;
    a_resource.resourceBusyStatus = i_RESOURCE_UNKNOWN;
    a_resource.resAllocated     = false;
    a_resource.resAssigned      = false;
    a_resource.resReleased      = false;
    a_resource.resBeaStarted    = false;
    a_resource.resProcessed     = false;
    a_resource.resMedOpComplete = false;

    a_resource.collocation = false;
    a_resource.majColId = 0;
    a_resource.minColId = 0;
    a_resource.minFlags = 0;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 73 of file ipc_helpers.h.


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