Public Member Functions | Public Attributes

rm_Resource_t Struct Reference

#include <rm_resource.h>

List of all members.

Public Member Functions

 rm_Resource_t ()
 ~rm_Resource_t ()
rm_Resource_toperator= (const i_Resource_t &a_resource)
i_Resource_t Convert2Corba ()

Public Attributes

UInt32_t resNum
Int32_t poolKey
string poolUUID
string poolName
UInt32_t poolType
string libraryName
string libraryHost
Int32_t driveKey
string driveCtrlDevice
string driveIndex
string driveHost
Int32_t mediumKey
string barcode
bool load
bool unload
UInt32_t blockSize
UInt32_t mediumFamily
string loadSlotAddr
string unloadSlotAddr
string unloadBarcode
UInt32_t medVolNr
string medVolId
UInt32_t medVolType
Int32_t dssKey
Int32_t fileId
Int32_t blockOffset
Int64_t splitOffset
bool resRequested
i_ResourceBusy_e resourceBusyStatus
bool resAllocated
bool resAssigned
bool resBeaStarted
bool resProcessed
bool resReleased
bool resMedOpComplete
bool collocation
UInt64_t majColId
UInt64_t minColId
UInt32_t minFlags
 log_CLASSID_m

Detailed Description

Definition at line 33 of file rm_resource.h.


Constructor & Destructor Documentation

rm_Resource_t::rm_Resource_t (  ) 

Definition at line 45 of file rm_resource.cpp.

rm_Resource_t::~rm_Resource_t (  )  [inline]

Definition at line 36 of file rm_resource.h.

                     {
    };


Member Function Documentation

i_Resource_t rm_Resource_t::Convert2Corba (  ) 

Definition at line 131 of file rm_resource.cpp.

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

Referenced by i_Job_i::LoadUnload().

                                         {
    i_Resource_t iResource;

    iResource.resNum          = resNum;
    iResource.poolKey         = poolKey;
    iResource.poolUUID        = CORBA::string_dup(poolUUID.c_str());
    iResource.poolName        = CORBA::string_dup(poolName.c_str());
    iResource.poolType        = poolType;
    iResource.libraryName     = CORBA::string_dup(libraryName.c_str());
    iResource.libraryHost     = CORBA::string_dup(libraryHost.c_str());

    iResource.driveKey        = driveKey ;
    iResource.driveCtrlDevice = CORBA::string_dup(driveCtrlDevice.c_str());
    iResource.driveIndex      = CORBA::string_dup(driveIndex.c_str());
    iResource.driveHost       = CORBA::string_dup(driveHost.c_str());

    iResource.mediumKey         = mediumKey;
    iResource.barcode           = CORBA::string_dup(barcode.c_str());
    iResource.load              = load;
    iResource.unload            = unload;
    iResource.blockSize         = blockSize;
    iResource.mediumFamily      = mediumFamily;

    iResource.loadSlotAddr    = CORBA::string_dup(loadSlotAddr.c_str());
    iResource.unloadSlotAddr  = CORBA::string_dup(unloadSlotAddr.c_str());
    iResource.unloadBarcode   = CORBA::string_dup(unloadBarcode.c_str());

    iResource.medVolNr        = medVolNr;
    iResource.medVolId        = CORBA::string_dup(medVolId.c_str());
    iResource.medVolType      = medVolType;

    iResource.dssKey          = dssKey;

    iResource.fileId          = fileId;
    iResource.blockOffset     = blockOffset;
    iResource.splitOffset     = splitOffset; //used for recall resource allocation

    iResource.resRequested       = resRequested;
    iResource.resourceBusyStatus = resourceBusyStatus;    
    iResource.resAllocated       = resAllocated;
    iResource.resAssigned        = resAssigned;
    iResource.resBeaStarted      = resBeaStarted;
    iResource.resReleased        = resReleased;
    iResource.resProcessed       = resProcessed;
    iResource.resMedOpComplete   = resMedOpComplete;
    
    iResource.collocation     = collocation;
    iResource.majColId        = majColId;
    iResource.minColId        = minColId;
    iResource.minFlags        = minFlags;

    return iResource;
}

Here is the caller graph for this function:

rm_Resource_t & rm_Resource_t::operator= ( const i_Resource_t a_resource  ) 

Definition at line 76 of file rm_resource.cpp.

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

                                                                      {

    resNum          = a_resource.resNum;
    poolKey         = a_resource.poolKey;
    poolUUID        = a_resource.poolUUID;
    poolName        = a_resource.poolName;
    poolType        = a_resource.poolType;
    libraryName     = a_resource.libraryName;
    libraryHost     = a_resource.libraryHost;

    driveKey        = a_resource.driveKey ;
    driveCtrlDevice = a_resource.driveCtrlDevice ;
    driveIndex      = a_resource.driveIndex ;
    driveHost       = a_resource.driveHost ;


    mediumKey       = a_resource.mediumKey;
    barcode         = a_resource.barcode;
    load            = a_resource.load;
    unload          = a_resource.unload;
    blockSize       = a_resource.blockSize;
    mediumFamily    = a_resource.mediumFamily;

    loadSlotAddr    = a_resource.loadSlotAddr;
    unloadSlotAddr  = a_resource.unloadSlotAddr;
    unloadBarcode   = a_resource.unloadBarcode;

    medVolNr        = a_resource.medVolNr;
    medVolId        = a_resource.medVolId;
    medVolType      = a_resource.medVolType;

    dssKey          = a_resource.dssKey;

    fileId          = a_resource.fileId;
    blockOffset     = a_resource.blockOffset;
    splitOffset     = a_resource.splitOffset; //used for recall resource allocation

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

    collocation     = a_resource.collocation;
    majColId        = a_resource.majColId;
    minColId        = a_resource.minColId;
    minFlags        = a_resource.minFlags;


    return *this;
}


Member Data Documentation

Definition at line 70 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 82 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 50 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 67 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 69 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 90 of file rm_resource.h.

Definition at line 65 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 42 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 43 of file rm_resource.h.

Referenced by rm_Operator::AllocateRecall(), Convert2Corba(), and operator=().

Definition at line 41 of file rm_resource.h.

Referenced by rm_Operator::AllocateRecall(), Convert2Corba(), and operator=().

Definition at line 75 of file rm_resource.h.

Referenced by rm_Operator::AllocateRecall(), Convert2Corba(), and operator=().

Definition at line 76 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 77 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 80 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 37 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 78 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 79 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 73 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 71 of file rm_resource.h.

Referenced by Convert2Corba(), and operator=().

Definition at line 55 of file rm_resource.h.

Referenced by Convert2Corba(), operator=(), and rm_Operator::SelectDriveForMig().


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