rm_PartitionStatus Class Reference
[Resource Manager]

#include <rm.h>

Collaboration diagram for rm_PartitionStatus:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 26 of file rm.h.


Public Member Functions

 rm_PartitionStatus (string a_partName, UInt32_t a_maxDrives, UInt32_t a_maxDrivesRecall, UInt32_t a_maxDrivesMig, UInt32_t a_maxDrivesReorg, UInt32_t a_maxDrivesRecovery, UInt32_t a_maxDrivesMaint, UInt32_t a_reservedDrives, UInt32_t a_reservedDrivesRecall, UInt32_t a_reservedDrivesMig, UInt32_t a_reservedDrivesReorg, UInt32_t a_reservedDrivesRecovery, UInt32_t a_reservedDrivesMaint, UInt32_t a_partitionPriority, UInt32_t a_migrationPriority, UInt32_t a_recallPriority, UInt32_t a_reorgPriority, UInt32_t a_recoveryPriority, UInt32_t a_maintPriority, i_ResourceManager_i *a_iRMi)
 ~rm_PartitionStatus ()
void Init (string a_partName, UInt32_t a_maxDrives, UInt32_t a_maxDrivesRecall, UInt32_t a_maxDrivesMig, UInt32_t a_maxDrivesReorg, UInt32_t a_maxDrivesRecovery, UInt32_t a_maxDrivesMaint, UInt32_t a_reservedDrives, UInt32_t a_reservedDrivesRecall, UInt32_t a_reservedDrivesMig, UInt32_t a_reservedDrivesReorg, UInt32_t a_reservedDrivesRecovery, UInt32_t a_reservedDrivesMaint, UInt32_t a_partitionPriority, UInt32_t a_migrationPriority, UInt32_t a_recallPriority, UInt32_t a_reorgPriority, UInt32_t a_recoveryPriority, UInt32_t a_maintPriority)
void Update (const rm_PartitionStatus &a_fromPM)
bool Reserve (ivd_JobType_e a_type, UInt32_t a_number)
void Release (ivd_JobType_e a_type, UInt32_t a_number)
string GetPartName () const
cmn_UUID_t GetPartUUID () const
Int32_t GetMaxDrives () const
Int32_t GetMaxDrivesRecall () const
Int32_t GetMaxDrivesMig () const
Int32_t GetMaxDrivesReorg () const
Int32_t GetMaxDrivesRecovery () const
Int32_t GetMaxDrivesMaint () const
Int32_t GetDrivesInUse () const
Int32_t GetDrivesInUseRecall () const
Int32_t GetDrivesInUseMig () const
Int32_t GetDrivesInUseReorg () const
Int32_t GetDrivesInUseRecovery () const
Int32_t GetDrivesInUseMaint () const
Int32_t GetReservedDrives () const
Int32_t GetReservedDrivesRecall () const
Int32_t GetReservedDrivesMig () const
Int32_t GetReservedDrivesReorg () const
Int32_t GetReservedDrivesRecovery () const
Int32_t GetReservedDrivesMaint () const
Int32_t GetPartitionPriority () const
Int32_t GetMigrationPriority () const
Int32_t GetRecallPriority () const
Int32_t GetReorgPriority () const
Int32_t GetRecoveryPriority () const
Int32_t GetMaintPriority () const
void LogCurrentState ()

Public Attributes

rm_Partition m_part

Private Attributes

string m_partName
UInt32_t m_maxDrives
UInt32_t m_maxDrivesRecall
UInt32_t m_maxDrivesMig
UInt32_t m_maxDrivesReorg
UInt32_t m_maxDrivesRecovery
UInt32_t m_maxDrivesMaint
UInt32_t m_drivesInUse
UInt32_t m_drivesInUseRecall
UInt32_t m_drivesInUseMig
UInt32_t m_drivesInUseReorg
UInt32_t m_drivesInUseRecovery
UInt32_t m_drivesInUseMaint
UInt32_t m_reservedDrives
UInt32_t m_reservedDrivesRecall
UInt32_t m_reservedDrivesMig
UInt32_t m_reservedDrivesReorg
UInt32_t m_reservedDrivesRecovery
UInt32_t m_reservedDrivesMaint
UInt32_t m_partitionPriority
UInt32_t m_migrationPriority
UInt32_t m_recallPriority
UInt32_t m_reorgPriority
UInt32_t m_recoveryPriority
UInt32_t m_maintPriority
i_ResourceManager_im_iRMi
 log_CLASSID_m

Friends

class rm_SysState

Constructor & Destructor Documentation

rm_PartitionStatus::rm_PartitionStatus ( string  a_partName,
UInt32_t  a_maxDrives,
UInt32_t  a_maxDrivesRecall,
UInt32_t  a_maxDrivesMig,
UInt32_t  a_maxDrivesReorg,
UInt32_t  a_maxDrivesRecovery,
UInt32_t  a_maxDrivesMaint,
UInt32_t  a_reservedDrives,
UInt32_t  a_reservedDrivesRecall,
UInt32_t  a_reservedDrivesMig,
UInt32_t  a_reservedDrivesReorg,
UInt32_t  a_reservedDrivesRecovery,
UInt32_t  a_reservedDrivesMaint,
UInt32_t  a_partitionPriority,
UInt32_t  a_migrationPriority,
UInt32_t  a_recallPriority,
UInt32_t  a_reorgPriority,
UInt32_t  a_recoveryPriority,
UInt32_t  a_maintPriority,
i_ResourceManager_i a_iRMi 
)

Definition at line 32 of file rm_partstate.cpp.

References rm_DBOperation::Execute(), i_ResourceManager_i::m_DBThread, m_iRMi, m_part, and m_partName.

00057         :   
00058             m_partName(a_partName),
00059             m_maxDrives(a_maxDrives),
00060             m_maxDrivesRecall(a_maxDrivesRecall),
00061             m_maxDrivesMig(a_maxDrivesMig),
00062             m_maxDrivesReorg(a_maxDrivesReorg),
00063             m_maxDrivesRecovery(a_maxDrivesRecovery),
00064             m_maxDrivesMaint(a_maxDrivesMaint),
00065 
00066             m_drivesInUse(0),
00067             m_drivesInUseRecall(0),
00068             m_drivesInUseMig(0),
00069             m_drivesInUseReorg(0),
00070             m_drivesInUseRecovery(0),
00071             m_drivesInUseMaint(0),
00072             
00073             m_reservedDrives(a_reservedDrives),
00074             m_reservedDrivesRecall(a_reservedDrivesRecall),
00075             m_reservedDrivesMig(a_reservedDrivesMig),
00076             m_reservedDrivesReorg(a_reservedDrivesReorg),
00077             m_reservedDrivesRecovery(a_reservedDrivesRecovery),
00078 
00079             m_partitionPriority(a_partitionPriority),
00080             m_migrationPriority(a_migrationPriority),
00081             m_recallPriority(a_recallPriority),
00082             m_reorgPriority(a_reorgPriority),
00083             m_recoveryPriority(a_recoveryPriority),
00084             m_maintPriority(a_maintPriority),
00085             m_iRMi(a_iRMi)
00086             
00087              { 
00088     
00089     dbo_InitPartition ip(m_partName, m_part, *(m_iRMi->m_DBThread));
00090     ip.Execute();
00091 }

Here is the call graph for this function:

rm_PartitionStatus::~rm_PartitionStatus (  )  [inline]

Definition at line 57 of file rm.h.

00057 {};


Member Function Documentation

void rm_PartitionStatus::Init ( string  a_partName,
UInt32_t  a_maxDrives,
UInt32_t  a_maxDrivesRecall,
UInt32_t  a_maxDrivesMig,
UInt32_t  a_maxDrivesReorg,
UInt32_t  a_maxDrivesRecovery,
UInt32_t  a_maxDrivesMaint,
UInt32_t  a_reservedDrives,
UInt32_t  a_reservedDrivesRecall,
UInt32_t  a_reservedDrivesMig,
UInt32_t  a_reservedDrivesReorg,
UInt32_t  a_reservedDrivesRecovery,
UInt32_t  a_reservedDrivesMaint,
UInt32_t  a_partitionPriority,
UInt32_t  a_migrationPriority,
UInt32_t  a_recallPriority,
UInt32_t  a_reorgPriority,
UInt32_t  a_recoveryPriority,
UInt32_t  a_maintPriority 
)

Definition at line 160 of file rm_partstate.cpp.

References rm_MigIdGen::Init(), log_FUNC_m, m_drivesInUse, m_drivesInUseMaint, m_drivesInUseMig, m_drivesInUseRecall, m_drivesInUseRecovery, m_drivesInUseReorg, m_maintPriority, m_maxDrives, m_maxDrivesMaint, m_maxDrivesMig, m_maxDrivesRecall, m_maxDrivesRecovery, m_maxDrivesReorg, rm_Partition::m_migIdGen, m_migrationPriority, m_part, m_partitionPriority, m_partName, m_recallPriority, m_recoveryPriority, m_reorgPriority, m_reservedDrives, m_reservedDrivesMaint, m_reservedDrivesMig, m_reservedDrivesRecall, m_reservedDrivesRecovery, and m_reservedDrivesReorg.

00178                                          {
00179     
00180     log_FUNC_m(Init);
00181     m_partName              = a_partName;
00182     m_maxDrives             = a_maxDrives ;
00183     m_maxDrivesRecall       = a_maxDrivesRecall ;
00184     m_maxDrivesMig          = a_maxDrivesMig ;
00185     m_maxDrivesReorg        = a_maxDrivesReorg ;
00186     m_maxDrivesRecovery     = a_maxDrivesRecovery ;
00187     m_maxDrivesMaint        = a_maxDrivesMaint ;
00188     
00189     m_drivesInUse           = 0;
00190     m_drivesInUseRecall     = 0;
00191     m_drivesInUseMig        = 0;
00192     m_drivesInUseReorg      = 0;
00193     m_drivesInUseRecovery   = 0;
00194     m_drivesInUseMaint      = 0;
00195     
00196     m_reservedDrives        = a_reservedDrives ;
00197     m_reservedDrivesRecall  = a_reservedDrivesRecall ;
00198     m_reservedDrivesMig     = a_reservedDrivesMig ;
00199     m_reservedDrivesReorg   = a_reservedDrivesReorg ;
00200     m_reservedDrivesRecovery= a_reservedDrivesRecovery ;
00201     m_reservedDrivesMaint   = a_reservedDrivesMaint ;
00202 
00203     m_partitionPriority     = a_partitionPriority;
00204     m_migrationPriority     = a_migrationPriority;
00205     m_recallPriority        = a_recallPriority;
00206     m_reorgPriority         = a_reorgPriority;
00207     m_recoveryPriority      = a_recoveryPriority;
00208     m_maintPriority         = a_maintPriority;
00209 
00210     m_part.m_migIdGen.Init(&m_part);
00211 }

Here is the call graph for this function:

void rm_PartitionStatus::Update ( const rm_PartitionStatus a_fromPM  ) 

Definition at line 125 of file rm_partstate.cpp.

References log_FUNC_m, m_maintPriority, m_maxDrives, m_maxDrivesMaint, m_maxDrivesMig, m_maxDrivesRecall, m_maxDrivesRecovery, m_maxDrivesReorg, m_migrationPriority, m_part, m_partitionPriority, m_partName, m_recallPriority, m_recoveryPriority, m_reorgPriority, m_reservedDrives, m_reservedDrivesMaint, m_reservedDrivesMig, m_reservedDrivesRecall, m_reservedDrivesRecovery, and m_reservedDrivesReorg.

00125                                                                  {
00126     log_FUNC_m(Update);
00127 
00128     m_partName                  = a_fromPM.m_partName;
00129     m_part                      = a_fromPM.m_part;
00130     m_maxDrives                 = a_fromPM.m_maxDrives;
00131     m_maxDrivesRecall           = a_fromPM.m_maxDrivesRecall;
00132     m_maxDrivesMig              = a_fromPM.m_maxDrivesMig;
00133     m_maxDrivesReorg            = a_fromPM.m_maxDrivesReorg;
00134     m_maxDrivesRecovery         = a_fromPM.m_maxDrivesRecovery;
00135     m_maxDrivesMaint            = a_fromPM.m_maxDrivesMaint;
00136 
00137     /*m_drivesInUse               = a_fromPM.m_drivesInUse;
00138     m_drivesInUseRecall         = a_fromPM.m_drivesInUseRecall;
00139     m_drivesInUseMig            = a_fromPM.m_drivesInUseMig;
00140     m_drivesInUseReorg          = a_fromPM.m_drivesInUseReorg;
00141     m_drivesInUseRecovery       = a_fromPM.m_drivesInUseRecovery;
00142     m_drivesInUseMaint          = a_fromPM.m_drivesInUseMaint;*/
00143 
00144     m_reservedDrives            = a_fromPM.m_reservedDrives;
00145     m_reservedDrivesRecall      = a_fromPM.m_reservedDrivesRecall;
00146     m_reservedDrivesMig         = a_fromPM.m_reservedDrivesMig;
00147     m_reservedDrivesReorg       = a_fromPM.m_reservedDrivesReorg;
00148     m_reservedDrivesRecovery    = a_fromPM.m_reservedDrivesRecovery;
00149     m_reservedDrivesMaint       = a_fromPM.m_reservedDrivesMaint;
00150 
00151     m_partitionPriority         = a_fromPM.m_partitionPriority;
00152     m_migrationPriority         = a_fromPM.m_migrationPriority;
00153     m_recallPriority            = a_fromPM.m_recallPriority;
00154     m_reorgPriority             = a_fromPM.m_reorgPriority;
00155     m_recoveryPriority          = a_fromPM.m_recoveryPriority;
00156     m_maintPriority             = a_fromPM.m_maintPriority;
00157 
00158 }

bool rm_PartitionStatus::Reserve ( ivd_JobType_e  a_type,
UInt32_t  a_number 
)

Definition at line 214 of file rm_partstate.cpp.

References cmn_Global::dbg, dbg_DETAIL, dbg_NORM, g_cmn, log_Debugger::GetLevel(), ie_NOJOBTYPE, jt_MAINT, jt_MIGRATION, jt_RECALL, jt_RECOVERY, jt_REORG, log_DBG_m, log_FUNC_m, LogCurrentState(), m_drivesInUse, m_drivesInUseMaint, m_drivesInUseMig, m_drivesInUseRecall, m_drivesInUseRecovery, m_maxDrives, m_maxDrivesMaint, m_maxDrivesMig, m_maxDrivesRecall, and m_maxDrivesRecovery.

00214                                                                        {
00215     log_FUNC_m(Reserve);
00216     if (g_cmn.dbg.GetLevel() == dbg_DETAIL) {
00217         LogCurrentState();
00218     }
00219     if ( (m_drivesInUse + a_number) > m_maxDrives) {
00220         log_DBG_m(dbg_NORM,"Not enough drives Cfg:"<<
00221                            m_maxDrives << " InUse:" << m_drivesInUse);
00222         return false;
00223     };
00224     switch (a_type) {
00225         case (jt_RECALL):      if ( (m_drivesInUseRecall + a_number) <= m_maxDrivesRecall) {
00226                                     m_drivesInUse       += a_number;
00227                                     m_drivesInUseRecall += a_number;
00228                                     return true;
00229                                 } else {
00230                                     log_DBG_m(dbg_NORM,"Not enough drives for recall Cfg:"<<
00231                                                         m_maxDrivesRecall << " InUse:" << m_drivesInUseRecall);
00232                                     return false;
00233                                 };
00234 
00235         case (jt_MIGRATION):   if ( (m_drivesInUseMig + a_number) <= m_maxDrivesMig) {
00236                                     m_drivesInUse       += a_number;
00237                                     m_drivesInUseMig    += a_number;
00238                                     return true;
00239                                 } else {
00240                                     log_DBG_m(dbg_NORM,"Not enough drives for Mig Cfg:" <<
00241                                                     m_maxDrivesMig << " InUse:" << m_drivesInUseMig);
00242                                     return false;
00243                                 };
00244         /*case (jt_REORG):       if ( (m_drivesInUseReorg + a_number) <= m_maxDrivesReorg) {
00245                                     m_drivesInUse       += a_number;
00246                                     m_drivesInUseReorg  += a_number;
00247                                     return true;
00248                                 } else {
00249                                     log_DBG_m(dbg_NORM,"Not enough drives for Reorg"<<
00250                                                     m_maxDrivesReorg << " InUse:" << m_drivesInUseReorg);
00251                                     return false;
00252                                 };*/
00253         case (jt_RECOVERY):    if ( (m_drivesInUseRecovery + a_number) <= m_maxDrivesRecovery) {
00254                                     m_drivesInUse       += a_number;
00255                                     m_drivesInUseRecovery  += a_number;
00256                                     return true;
00257                                 } else {
00258                                     log_DBG_m(dbg_NORM,"Not enough drives for Recovery"<<
00259                                                     m_maxDrivesRecovery << " InUse:" << m_drivesInUseRecovery);
00260                                     return false;
00261                                 };
00262         case (jt_REORG):
00263         case (jt_MAINT):    if ( (m_drivesInUseMaint + a_number) <= m_maxDrivesMaint) {
00264                                     m_drivesInUse       += a_number;
00265                                     m_drivesInUseMaint  += a_number;
00266                                     return true;
00267                                 } else {
00268                                     log_DBG_m(dbg_NORM,"Not enough drives for Maint"<<
00269                                                     m_maxDrivesMaint << " InUse:" << m_drivesInUseMaint);
00270                                     return false;
00271                                 };
00272         default:                throw ivd_InternalError (ie_NOJOBTYPE, "Can not reserve drives in SysStae w/o job type", true);
00273     };
00274 
00275 }

Here is the call graph for this function:

void rm_PartitionStatus::Release ( ivd_JobType_e  a_type,
UInt32_t  a_number 
)

Definition at line 277 of file rm_partstate.cpp.

References cmn_Global::dbg, dbg_DETAIL, dbg_LOW, g_cmn, log_Debugger::GetLevel(), ie_NOJOBTYPE, ie_RELEASEERR, ivd_Error, jt_MAINT, jt_MIGRATION, jt_RECALL, jt_RECOVERY, jt_REORG, log_DBG_m, log_FUNC_m, LogCurrentState(), m_drivesInUse, m_drivesInUseMaint, m_drivesInUseMig, m_drivesInUseRecall, and m_drivesInUseRecovery.

00277                                                                        {
00278     log_FUNC_m(Release);
00279     if (g_cmn.dbg.GetLevel() == dbg_DETAIL) {
00280         LogCurrentState();
00281     }
00282         
00283     if ( m_drivesInUse < a_number ) {
00284         log_DBG_m(dbg_LOW, " Partition Status:Can not release more drives than allocated" << endl <<
00285                                                    "m_drivesInUse "  << m_drivesInUse <<
00286                                                    "a_numberFor Release " << a_number);
00287         throw ivd_Error(ie_RELEASEERR, " Partition Status:Can not release more drives than allocated", true);
00288     };
00289     switch (a_type) {
00290     case (jt_RECALL):      log_DBG_m(dbg_DETAIL, "Partition Status: Releasing recall resources");
00291                             if ( m_drivesInUseRecall >= a_number) {
00292                                 m_drivesInUse       -= a_number;
00293                                 m_drivesInUseRecall -= a_number;
00294                             } else {
00295                                 log_DBG_m(dbg_LOW, " Partition Status:Can not release more drives than allocated" << endl <<
00296                                                    "m_drivesInUseRecall "  << m_drivesInUseRecall <<
00297                                                    "a_numberFor Release " << a_number);
00298                                 throw ivd_Error(ie_RELEASEERR, "Partition Status:Can not release more drives than allocated", true);
00299                             }
00300                             break;
00301     case (jt_MIGRATION):   log_DBG_m(dbg_DETAIL, "Partition Status: Releasing migration resources");
00302                             if ( m_drivesInUseMig >= a_number) {
00303                                 m_drivesInUse       -= a_number;
00304                                 m_drivesInUseMig    -= a_number;
00305 
00306                             } else {
00307                                 log_DBG_m(dbg_LOW, " Partition Status:Can not release more drives than allocated"<< endl <<
00308                                                         "m_drivesInUseMig "  << m_drivesInUseMig <<
00309                                                         "a_numberFor Release " << a_number);
00310                                 throw ivd_Error(ie_RELEASEERR, " Partition Status:Can not release more drives than allocated", true);
00311                             }
00312                             break;
00313     /*case (jt_REORG):       log_DBG_m(dbg_DETAIL, "Partition Status:Releasing reorg resources");
00314                             if ( m_drivesInUseReorg >= a_number) {
00315                                 m_drivesInUse       -= a_number;
00316                                 m_drivesInUseReorg  -= a_number;
00317                             } else {
00318                                 log_DBG_m(dbg_LOW, " Partition Status:Can not release more drives than allocated"<< endl <<
00319                                                    "m_drivesInUseReorg "  << m_drivesInUseReorg <<
00320                                                    "a_numberFor Release " << a_number);
00321                                 throw ivd_Error(ie_RELEASEERR, " Partition Status:Can not release more drives than allocated", true);
00322                             }
00323                             break;*/
00324     case (jt_RECOVERY):    log_DBG_m(dbg_DETAIL, "Partition Status:Releasing recovery resources");
00325                             if ( m_drivesInUseRecovery >= a_number) {
00326                                 m_drivesInUse       -= a_number;
00327                                 m_drivesInUseRecovery  -= a_number;
00328                             } else {
00329                                 log_DBG_m(dbg_LOW, " Partition Status:Can not release more drives than allocated"<< endl <<
00330                                                    "m_drivesInUseRecovery "  << m_drivesInUseRecovery <<
00331                                                    "a_numberFor Release " << a_number);
00332                                 throw ivd_Error(ie_RELEASEERR, " Partition Status:Can not release more drives than allocated", true);
00333                             }
00334                             break;
00335     case (jt_REORG):
00336     case (jt_MAINT):    log_DBG_m(dbg_DETAIL, "Partition Status:Releasing maint resources");
00337                             if ( m_drivesInUseMaint >= a_number) {
00338                                 m_drivesInUse       -= a_number;
00339                                 m_drivesInUseMaint  -= a_number;
00340                             } else {
00341                                 log_DBG_m(dbg_LOW, " Partition Status:Can not release more drives than allocated"<< endl <<
00342                                                    "m_drivesInUseMaint "  << m_drivesInUseMaint <<
00343                                                    "a_numberFor Release " << a_number);
00344                                 throw ivd_Error(ie_RELEASEERR, " Partition Status:Can not release more drives than allocated", true);
00345                             }
00346                             break;
00347 
00348     default:                throw ivd_InternalError (ie_NOJOBTYPE, "Partition Status:Can not unreserve drives in SysState w/o job type", true);
00349     };
00350 }

Here is the call graph for this function:

string rm_PartitionStatus::GetPartName (  )  const [inline]

Definition at line 88 of file rm.h.

References m_partName.

Referenced by i_ResourceManager_i::SetRMPartStatus(), and rm_SysState::UpdatePM().

00088 { return m_partName;            };

Here is the caller graph for this function:

cmn_UUID_t rm_PartitionStatus::GetPartUUID (  )  const [inline]

Definition at line 89 of file rm.h.

References m_part, and rm_Partition::partUUID.

Referenced by i_ResourceManager_i::SetRMPartStatus().

00089 { return m_part.partUUID;       };

Here is the caller graph for this function:

Int32_t rm_PartitionStatus::GetMaxDrives (  )  const [inline]

Definition at line 91 of file rm.h.

References m_maxDrives.

00091 { return m_maxDrives;           };

Int32_t rm_PartitionStatus::GetMaxDrivesRecall (  )  const [inline]

Definition at line 92 of file rm.h.

References m_maxDrivesRecall.

00092 { return m_maxDrivesRecall;     };

Int32_t rm_PartitionStatus::GetMaxDrivesMig (  )  const [inline]

Definition at line 93 of file rm.h.

References m_maxDrivesMig.

00093 { return m_maxDrivesMig;        };

Int32_t rm_PartitionStatus::GetMaxDrivesReorg (  )  const [inline]

Definition at line 94 of file rm.h.

References m_maxDrivesReorg.

00094 { return m_maxDrivesReorg;      };

Int32_t rm_PartitionStatus::GetMaxDrivesRecovery (  )  const [inline]

Definition at line 95 of file rm.h.

References m_maxDrivesRecovery.

00095 { return m_maxDrivesRecovery;   };

Int32_t rm_PartitionStatus::GetMaxDrivesMaint (  )  const [inline]

Definition at line 96 of file rm.h.

References m_maxDrivesMaint.

00096 { return m_maxDrivesMaint;   };

Int32_t rm_PartitionStatus::GetDrivesInUse (  )  const [inline]

Definition at line 98 of file rm.h.

References m_drivesInUse.

00098 { return m_drivesInUse;         };

Int32_t rm_PartitionStatus::GetDrivesInUseRecall (  )  const [inline]

Definition at line 99 of file rm.h.

References m_drivesInUseRecall.

00099 { return m_drivesInUseRecall;   };

Int32_t rm_PartitionStatus::GetDrivesInUseMig (  )  const [inline]

Definition at line 100 of file rm.h.

References m_drivesInUseMig.

00100 { return m_drivesInUseMig;      };

Int32_t rm_PartitionStatus::GetDrivesInUseReorg (  )  const [inline]

Definition at line 101 of file rm.h.

References m_drivesInUseReorg.

00101 { return m_drivesInUseReorg;    };

Int32_t rm_PartitionStatus::GetDrivesInUseRecovery (  )  const [inline]

Definition at line 102 of file rm.h.

References m_drivesInUseRecovery.

00102 { return m_drivesInUseRecovery; };

Int32_t rm_PartitionStatus::GetDrivesInUseMaint (  )  const [inline]

Definition at line 103 of file rm.h.

References m_drivesInUseMaint.

00103 { return m_drivesInUseMaint; };

Int32_t rm_PartitionStatus::GetReservedDrives (  )  const [inline]

Definition at line 105 of file rm.h.

References m_reservedDrives.

00105 { return m_reservedDrives;      };

Int32_t rm_PartitionStatus::GetReservedDrivesRecall (  )  const [inline]

Definition at line 106 of file rm.h.

References m_reservedDrivesRecall.

00106 { return m_reservedDrivesRecall;};

Int32_t rm_PartitionStatus::GetReservedDrivesMig (  )  const [inline]

Definition at line 107 of file rm.h.

References m_reservedDrivesMig.

00107 { return m_reservedDrivesMig;   };

Int32_t rm_PartitionStatus::GetReservedDrivesReorg (  )  const [inline]

Definition at line 108 of file rm.h.

References m_reservedDrivesReorg.

00108 { return m_reservedDrivesReorg; };

Int32_t rm_PartitionStatus::GetReservedDrivesRecovery (  )  const [inline]

Definition at line 109 of file rm.h.

References m_reservedDrivesRecovery.

00109 { return m_reservedDrivesRecovery; };

Int32_t rm_PartitionStatus::GetReservedDrivesMaint (  )  const [inline]

Definition at line 110 of file rm.h.

References m_reservedDrivesMaint.

00110 { return m_reservedDrivesMaint; };

Int32_t rm_PartitionStatus::GetPartitionPriority (  )  const [inline]

Definition at line 112 of file rm.h.

References m_partitionPriority.

00112 { return m_partitionPriority;   };

Int32_t rm_PartitionStatus::GetMigrationPriority (  )  const [inline]

Definition at line 113 of file rm.h.

References m_migrationPriority.

00113 { return m_migrationPriority;   };

Int32_t rm_PartitionStatus::GetRecallPriority (  )  const [inline]

Definition at line 114 of file rm.h.

References m_recallPriority.

00114 { return m_recallPriority;      };

Int32_t rm_PartitionStatus::GetReorgPriority (  )  const [inline]

Definition at line 115 of file rm.h.

References m_reorgPriority.

00115 { return m_reorgPriority;       };

Int32_t rm_PartitionStatus::GetRecoveryPriority (  )  const [inline]

Definition at line 116 of file rm.h.

References m_recoveryPriority.

00116 { return m_recoveryPriority;    };

Int32_t rm_PartitionStatus::GetMaintPriority (  )  const [inline]

Definition at line 117 of file rm.h.

References m_maintPriority.

00117 { return m_maintPriority;    };

void rm_PartitionStatus::LogCurrentState (  ) 

Definition at line 352 of file rm_partstate.cpp.

References dbg_DETAIL, log_DBG_m, log_FUNC_m, m_drivesInUse, m_drivesInUseMaint, m_drivesInUseMig, m_drivesInUseRecall, m_drivesInUseRecovery, m_drivesInUseReorg, m_maintPriority, m_maxDrives, m_maxDrivesMaint, m_maxDrivesMig, m_maxDrivesRecall, m_maxDrivesRecovery, m_maxDrivesReorg, m_migrationPriority, m_part, m_partitionPriority, m_partName, m_recallPriority, m_recoveryPriority, m_reorgPriority, rm_Partition::partitionName, rm_Partition::partitionUUIDString, and rm_Partition::partUUID.

Referenced by Release(), Reserve(), i_ResourceManager_i::SetRMPartStatus(), and rm_SysState::UpdatePM().

00352                                         {
00353     log_FUNC_m(LogCurrentState);
00354 
00355     log_DBG_m(dbg_DETAIL,
00356         "PartName               " << m_partName                 << endl <<
00357         "m_part.partitionName   " << m_part.partitionName       << endl <<
00358         "PartUUIDString         " << m_part.partitionUUIDString << endl <<
00359         "PartUUID               " << m_part.partUUID            << endl <<
00360         "m_drivesInUse          " << m_drivesInUse              << endl <<
00361         "m_drivesInUseRecall    " << m_drivesInUseRecall        << endl <<
00362         "m_drivesInUseMig       " << m_drivesInUseMig           << endl <<
00363         "m_drivesInUseReorg     " << m_drivesInUseReorg         << endl <<
00364         "m_drivesInUseRecovery  " << m_drivesInUseRecovery      << endl <<
00365         "m_drivesInUseMaint     " << m_drivesInUseMaint         << endl <<
00366         "m_maxDrives            " << m_maxDrives                << endl <<
00367         "m_maxDrivesRecall      " << m_maxDrivesRecall          << endl <<
00368         "m_maxDrivesMig         " << m_maxDrivesMig             << endl <<
00369         "m_maxDrivesReorg       " << m_maxDrivesReorg           << endl <<
00370         "m_maxDrivesRecovery    " << m_maxDrivesRecovery        << endl <<
00371         "m_maxDrivesMaint       " << m_maxDrivesMaint           << endl <<
00372         "m_partitionPriority    " <<  m_partitionPriority       << endl <<
00373         "m_migrationPriority    " <<  m_migrationPriority       << endl <<
00374         "m_recallPriority       " <<  m_recallPriority          << endl <<
00375         "m_reorgPriority        " <<  m_reorgPriority           << endl <<
00376         "m_recoveryPriority     " <<  m_recoveryPriority        << endl <<
00377         "m_maintPriority        " <<  m_maintPriority );
00378 }

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class rm_SysState [friend]

Definition at line 27 of file rm.h.


Member Data Documentation

Definition at line 128 of file rm.h.

Referenced by GetPartName(), Init(), LogCurrentState(), rm_PartitionStatus(), and Update().

Definition at line 131 of file rm.h.

Referenced by GetMaxDrives(), Init(), LogCurrentState(), Reserve(), and Update().

Definition at line 132 of file rm.h.

Referenced by GetMaxDrivesRecall(), Init(), LogCurrentState(), Reserve(), and Update().

Definition at line 133 of file rm.h.

Referenced by GetMaxDrivesMig(), Init(), LogCurrentState(), Reserve(), and Update().

Definition at line 134 of file rm.h.

Referenced by GetMaxDrivesReorg(), Init(), LogCurrentState(), and Update().

Definition at line 135 of file rm.h.

Referenced by GetMaxDrivesRecovery(), Init(), LogCurrentState(), Reserve(), and Update().

Definition at line 136 of file rm.h.

Referenced by GetMaxDrivesMaint(), Init(), LogCurrentState(), Reserve(), and Update().

Definition at line 138 of file rm.h.

Referenced by GetDrivesInUse(), Init(), LogCurrentState(), Release(), and Reserve().

Definition at line 139 of file rm.h.

Referenced by GetDrivesInUseRecall(), Init(), LogCurrentState(), Release(), and Reserve().

Definition at line 140 of file rm.h.

Referenced by GetDrivesInUseMig(), Init(), LogCurrentState(), Release(), and Reserve().

Definition at line 141 of file rm.h.

Referenced by GetDrivesInUseReorg(), Init(), and LogCurrentState().

Definition at line 142 of file rm.h.

Referenced by GetDrivesInUseRecovery(), Init(), LogCurrentState(), Release(), and Reserve().

Definition at line 143 of file rm.h.

Referenced by GetDrivesInUseMaint(), Init(), LogCurrentState(), Release(), and Reserve().

Definition at line 145 of file rm.h.

Referenced by GetReservedDrives(), Init(), and Update().

Definition at line 146 of file rm.h.

Referenced by GetReservedDrivesRecall(), Init(), and Update().

Definition at line 147 of file rm.h.

Referenced by GetReservedDrivesMig(), Init(), and Update().

Definition at line 148 of file rm.h.

Referenced by GetReservedDrivesReorg(), Init(), and Update().

Definition at line 149 of file rm.h.

Referenced by GetReservedDrivesRecovery(), Init(), and Update().

Definition at line 150 of file rm.h.

Referenced by GetReservedDrivesMaint(), Init(), and Update().

Definition at line 152 of file rm.h.

Referenced by GetPartitionPriority(), Init(), LogCurrentState(), and Update().

Definition at line 153 of file rm.h.

Referenced by GetMigrationPriority(), Init(), LogCurrentState(), and Update().

Definition at line 154 of file rm.h.

Referenced by GetRecallPriority(), Init(), LogCurrentState(), and Update().

Definition at line 155 of file rm.h.

Referenced by GetReorgPriority(), Init(), LogCurrentState(), and Update().

Definition at line 156 of file rm.h.

Referenced by GetRecoveryPriority(), Init(), LogCurrentState(), and Update().

Definition at line 157 of file rm.h.

Referenced by GetMaintPriority(), Init(), LogCurrentState(), and Update().

Definition at line 159 of file rm.h.

Referenced by rm_SysState::GetNewMigID(), and rm_PartitionStatus().

Definition at line 161 of file rm.h.


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

Generated on Mon Feb 27 19:48:42 2012 for OPENARCHIVE by  doxygen 1.5.6