ClientConf_t Struct Reference
[Classes for managing eventsClasses for managing object list]

#include <i_hsm_impl.h>

Collaboration diagram for ClientConf_t:

Collaboration graph
[legend]

List of all members.


Detailed Description

ClientConf_s: Structure, which contain all client configuration parameters.

Definition at line 31 of file i_hsm_impl.h.


Public Member Functions

 ClientConf_t ()
 ClientConf_t (i_ClientConf_t *a_ClConf)
void Init (const i_ClientConf_t &a_ClConf)
 ClientConf_t ()
 ClientConf_t (i_ClientConf_t *a_ClConf)

Public Attributes

 log_CLASSID_m
 Macro to add class name member s_className.
Int32_t CfgHashSize
ivd_Time32_t CfgMFAge
 MinFileAge.
ivd_Time32_t CfgMaxWaitTime
 MaxWaitTime.
ivd_FileSize_t CfgMinMigSize
 MinMigSize.
ivd_FileSize_t CfgMaxMigSize
 MaxMigSize.
UInt32_t CfgMinNumFiles
 MinNumFiles.
UInt32_t CfgMaxNumFiles
 MaxNumFiles.
ivd_Time32_t CfgMinWaitTime
 MinWaitTime.
UInt32_t CfgFileHeaderSize
 MaxNumFiles.
string CfgPartitionName
 Partition ID.
string CfgPartitionUUID
 Partition UUID.
UInt32_t CfgHighWaterMark
 High Water Mark.
UInt32_t CfgLowWaterMark
 Low Water Mark.
UInt32_t CfgCriticalWaterMark
 Critical Water Mark.
ivd_Time32_t CfgReleaseInterval
 Release Wake up interval.
ivd_Time32_t CfgMigRetentionTime
 Migration Retention Time.
ivd_Time32_t CfgRecallRetentionTime
 Recall Retention Time.
ivd_FileSize_t CfgMinFileSize
 Min File Size for release.
ivd_FileSize_t CfgChunkSize
 Chunk Size.
ivd_Time32_t CfgRecallTimeOut
 Recall Time out.
i_FSType_e CfgOperationMode
 Operation Mode.
ivd_Time32_t CfgWORMTimeout
bool CfgRecoveryOfIVDFS
cmn_Path CfgAlternateDataPath
cmn_Mutex ExcludeFromRelease_x
vector< string > CfgExcludeFromRelease
bool CfgRecallOnly
 HSM should process only recall requests.
string CfgReplTargetHost
string CfgReplTargetPart
UInt32_t CfgStartReleaseNumF
ivd_Time32_t CfgStartReleaseTime
bool CfgStartReleaseEarly

Constructor & Destructor Documentation

ClientConf_t::ClientConf_t (  )  [inline]

Definition at line 35 of file i_hsm_impl.h.

00035                    {
00036         // NULL statement
00037     };

ClientConf_t::ClientConf_t ( i_ClientConf_t a_ClConf  )  [inline]

Definition at line 40 of file i_hsm_impl.h.

References Init().

00040                                            {
00041         Init(*a_ClConf);
00042     };

Here is the call graph for this function:

ClientConf_t::ClientConf_t (  )  [inline]

Definition at line 240 of file hsm_common.h.

00240                    {
00241         // NULL statement
00242     };

ClientConf_t::ClientConf_t ( i_ClientConf_t a_ClConf  )  [inline]

Definition at line 245 of file hsm_common.h.

References CfgStartReleaseEarly, and i_ClientConf_t::CfgStartReleaseEarly.

00246         : 
00247     CfgHashSize      (a_ClConf->CfgHashSize),
00248     CfgMFAge         (a_ClConf->CfgMFAge),
00249     CfgMaxWaitTime   (a_ClConf->CfgMaxWaitTime),
00250     CfgMinMigSize    (a_ClConf->CfgMinMigSize),
00251     CfgMaxMigSize    (a_ClConf->CfgMaxMigSize),
00252     CfgMinNumFiles   (a_ClConf->CfgMinNumFiles),
00253     CfgMaxNumFiles   (a_ClConf->CfgMaxNumFiles),
00254     CfgMinWaitTime   (a_ClConf->CfgMinWaitTime),
00255     CfgFileHeaderSize(a_ClConf->CfgFileHeaderSize),
00256     CfgPartitionName (a_ClConf->CfgPartitionName),
00257     CfgPartitionUUID (a_ClConf->CfgPartitionUUID),
00258     CfgHighWaterMark      (a_ClConf->CfgHighWaterMark),
00259     CfgLowWaterMark       (a_ClConf->CfgLowWaterMark),       
00260     CfgCriticalWaterMark  (a_ClConf->CfgCriticalWaterMark),
00261     CfgReleaseInterval    (a_ClConf->CfgReleaseInterval),
00262     CfgStartReleaseNumF   (a_ClConf->CfgStartReleaseNumF),   
00263     CfgStartReleaseTime   (a_ClConf->CfgStartReleaseTime),
00264     CfgMigRetentionTime   (a_ClConf->CfgMigRetentionTime),
00265     CfgRecallRetentionTime(a_ClConf->CfgRecallRetentionTime),
00266     CfgMinFileSize        (a_ClConf->CfgMinFileSize),
00267     CfgChunkSize          (a_ClConf->CfgChunkSize),
00268     CfgRecallTimeOut      (a_ClConf->CfgRecallTimeOut) {
00269         
00270     if (a_ClConf->CfgStartReleaseEarly == 0) {
00271         CfgStartReleaseEarly = false;
00272     }
00273     else {
00274         CfgStartReleaseEarly = true;
00275     };
00276 };


Member Function Documentation

void ClientConf_t::Init ( const i_ClientConf_t a_ClConf  ) 

Definition at line 67 of file i_hsm_impl.cpp.

References i_ClientConf_t::CfgAlternateDataPath, CfgAlternateDataPath, i_ClientConf_t::CfgChunkSize, CfgChunkSize, i_ClientConf_t::CfgCriticalWaterMark, CfgCriticalWaterMark, i_ClientConf_t::CfgExcludeFromRelease, CfgExcludeFromRelease, i_ClientConf_t::CfgFileHeaderSize, CfgFileHeaderSize, i_ClientConf_t::CfgHashSize, CfgHashSize, i_ClientConf_t::CfgHighWaterMark, CfgHighWaterMark, i_ClientConf_t::CfgLowWaterMark, CfgLowWaterMark, i_ClientConf_t::CfgMaxMigSize, CfgMaxMigSize, i_ClientConf_t::CfgMaxNumFiles, CfgMaxNumFiles, i_ClientConf_t::CfgMaxWaitTime, CfgMaxWaitTime, i_ClientConf_t::CfgMFAge, CfgMFAge, i_ClientConf_t::CfgMigRetentionTime, CfgMigRetentionTime, i_ClientConf_t::CfgMinFileSize, CfgMinFileSize, i_ClientConf_t::CfgMinMigSize, CfgMinMigSize, i_ClientConf_t::CfgMinNumFiles, CfgMinNumFiles, i_ClientConf_t::CfgMinWaitTime, CfgMinWaitTime, i_ClientConf_t::CfgOperationMode, CfgOperationMode, i_ClientConf_t::CfgPartitionName, CfgPartitionName, i_ClientConf_t::CfgPartitionUUID, CfgPartitionUUID, i_ClientConf_t::CfgRecallOnly, CfgRecallOnly, i_ClientConf_t::CfgRecallRetentionTime, CfgRecallRetentionTime, i_ClientConf_t::CfgRecallTimeOut, CfgRecallTimeOut, i_ClientConf_t::CfgRecoveryOfIVDFS, CfgRecoveryOfIVDFS, i_ClientConf_t::CfgReleaseInterval, CfgReleaseInterval, i_ClientConf_t::CfgReplTargetHost, CfgReplTargetHost, i_ClientConf_t::CfgReplTargetPart, CfgReplTargetPart, i_ClientConf_t::CfgWORMTimeout, CfgWORMTimeout, dbg_LOW, evt_WARNING, ExcludeFromRelease_x, cmn_Path::HostPathSeparator(), log_DBG_m, log_FUNC_m, and log_WriteEvent().

Referenced by ClientConf_t(), and i_HSM_i::Reconfigure().

00067                                                       {
00068     log_FUNC_m(Init);
00069 
00070     CfgHashSize           = a_ClConf.CfgHashSize;
00071     CfgMFAge              = a_ClConf.CfgMFAge;
00072     CfgMaxWaitTime        = a_ClConf.CfgMaxWaitTime;
00073     CfgMinMigSize         = a_ClConf.CfgMinMigSize;
00074     CfgMaxMigSize         = a_ClConf.CfgMaxMigSize;
00075     CfgMinNumFiles        = a_ClConf.CfgMinNumFiles;
00076     CfgMaxNumFiles        = a_ClConf.CfgMaxNumFiles;
00077     CfgMinWaitTime        = a_ClConf.CfgMinWaitTime;
00078     CfgFileHeaderSize     = a_ClConf.CfgFileHeaderSize;
00079     CfgPartitionName      = a_ClConf.CfgPartitionName;
00080     CfgPartitionUUID      = a_ClConf.CfgPartitionUUID;
00081     CfgHighWaterMark      = a_ClConf.CfgHighWaterMark;
00082     CfgLowWaterMark       = a_ClConf.CfgLowWaterMark;
00083     CfgCriticalWaterMark  = a_ClConf.CfgCriticalWaterMark;
00084     CfgReleaseInterval    = a_ClConf.CfgReleaseInterval;
00085     CfgMigRetentionTime   = a_ClConf.CfgMigRetentionTime;
00086     CfgRecallRetentionTime= a_ClConf.CfgRecallRetentionTime;
00087     CfgMinFileSize        = a_ClConf.CfgMinFileSize;
00088     CfgChunkSize          = a_ClConf.CfgChunkSize;
00089     CfgRecallTimeOut      = a_ClConf.CfgRecallTimeOut;
00090     CfgOperationMode      = a_ClConf.CfgOperationMode;
00091     CfgWORMTimeout        = a_ClConf.CfgWORMTimeout;
00092     CfgRecoveryOfIVDFS    = a_ClConf.CfgRecoveryOfIVDFS;
00093     CfgRecallOnly         = a_ClConf.CfgRecallOnly;
00094     CfgReplTargetHost     = a_ClConf.CfgReplTargetHost;
00095     CfgReplTargetPart     = a_ClConf.CfgReplTargetPart;
00096 
00097     ostringstream sstr;
00098     sstr << "  Configuration:" << endl <<
00099         "--------------------------------------------------------------------------------" << endl <<
00100         "PartitionName   "  << "`" << CfgPartitionName << "'" << endl <<
00101         "PartitionUUID   " << CfgPartitionUUID << endl <<
00102         "Hash size       " << setw(5) << CfgHashSize <<
00103         "\tMinFileAge    " << setw(10) << CfgMFAge <<
00104         "\tFileHeaderSize" << setw(10) << CfgFileHeaderSize << endl <<
00105         "MinNumFiles     " << setw(5) << CfgMinNumFiles <<
00106         "\tMinMigSize    " << setw(10) << CfgMinMigSize <<
00107         "\tMinWaitTime   " << setw(10) << CfgMinWaitTime << endl <<
00108         "MaxNumFiles     " << setw(5) << CfgMaxNumFiles <<
00109         "\tMaxMigSize    " << setw(10) << CfgMaxMigSize <<
00110         "\tMaxWaitTime   " << setw(10) << CfgMaxWaitTime << endl <<
00111         "HighWaterMark   " << setw(5) << CfgHighWaterMark <<
00112         "\tMigRetentTime " << setw(10) << CfgMigRetentionTime <<
00113         "\tReleaseInterval" << setw(9) << CfgReleaseInterval << endl <<
00114         "LowWaterMark    " << setw(5) << CfgLowWaterMark <<
00115         "\tRclRetentTime " << setw(10) << CfgRecallRetentionTime <<
00116         "\tMinFileSize   " << setw(10) << CfgMinFileSize << endl <<
00117         "CritWaterMark   " << setw(5) << CfgCriticalWaterMark <<
00118         "\tRecallTimeOut " << setw(10) << CfgRecallTimeOut <<
00119         "\tChunkSize     " << setw(10) << CfgChunkSize << endl <<
00120         "RecoveryOfIVDFS " << setw(5) << boolalpha << CfgRecoveryOfIVDFS << endl <<
00121         "RecallFromADP " << setw(10) << "'" << CfgAlternateDataPath << "'" << endl <<
00122         "CfgRecallOnly " << setw(5) << boolalpha << CfgRecallOnly << endl <<
00123         "CfgReplTargetHost " << CfgReplTargetHost << endl <<
00124         "CfgReplTargetPart " << CfgReplTargetPart << endl;
00125 
00126     if (CfgAlternateDataPath.empty()) {
00127         CfgAlternateDataPath  = a_ClConf.CfgAlternateDataPath;
00128         CfgAlternateDataPath.HostPathSeparator();
00129     }
00130     else if (!(CfgAlternateDataPath == string(a_ClConf.CfgAlternateDataPath))) {
00131         ostringstream ivdlog;
00132         ivdlog << "Reconfig alternate data path is not equal to current. Remount HSMFS! "
00133                << a_ClConf.CfgAlternateDataPath << " != " << CfgAlternateDataPath;
00134         log_WriteEvent(evt_WARNING, ivdlog.str());
00135     }
00136 
00137     cmn_MutexLock l(ExcludeFromRelease_x);
00138     CfgExcludeFromRelease.clear();
00139     UInt32_t length = a_ClConf.CfgExcludeFromRelease.length();
00140     sstr << "ExcludeFromRelease patterns:" << endl;
00141     for (UInt32_t item = 0; item < length; item++) {
00142         string pattern(a_ClConf.CfgExcludeFromRelease[item]);
00143         CfgExcludeFromRelease.push_back(pattern);
00144         sstr << "`" << pattern << "'" << endl;
00145     }
00146     log_DBG_m(dbg_LOW, sstr.str()
00147         << "--------------------------------------------------------------------------------");
00148 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Macro to add class name member s_className.

Definition at line 33 of file i_hsm_impl.h.

Definition at line 47 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), and Init().

MinFileAge.

Definition at line 49 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

MaxWaitTime.

Definition at line 51 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), and i_HSM_i::Reconfigure().

MinMigSize.

Definition at line 53 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

MaxMigSize.

Definition at line 55 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

MinNumFiles.

Definition at line 57 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

MinWaitTime.

Definition at line 61 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

MaxNumFiles.

Definition at line 63 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), and Init().

Partition UUID.

Definition at line 67 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), i_HSM_i::GetInfo(), Init(), main(), hsm_MigByAPI::MajColExists(), and i_HSM_i::ShowStatus().

High Water Mark.

Definition at line 69 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

Low Water Mark.

Definition at line 71 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

Critical Water Mark.

Definition at line 73 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

Release Wake up interval.

Definition at line 75 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

Migration Retention Time.

Definition at line 77 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

Recall Retention Time.

Definition at line 79 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), main(), and i_HSM_i::Reconfigure().

Min File Size for release.

Definition at line 81 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), hsm_Containers::hsm_Containers(), Init(), and i_HSM_i::Reconfigure().

Chunk Size.

Definition at line 83 of file i_hsm_impl.h.

Referenced by i_HSM_i::GetCfg(), and Init().

Recall Time out.

Definition at line 85 of file i_hsm_impl.h.

Referenced by fs_api::EventMounted(), i_HSM_i::GetCfg(), Init(), i_HSM_i::Reconfigure(), and i_HSM_i::SetFullAccess().

Operation Mode.

Definition at line 87 of file i_hsm_impl.h.

Referenced by fs_api::EventMounted(), i_HSM_i::GetCfg(), Init(), i_HSM_i::Reconfigure(), and i_HSM_i::SetFullAccess().

Definition at line 91 of file i_hsm_impl.h.

Referenced by Init(), and main().

Definition at line 93 of file i_hsm_impl.h.

Referenced by hsm_Containers::hsm_Containers(), and Init().

Definition at line 95 of file i_hsm_impl.h.

Referenced by Init(), and IsPatternMatch().

Definition at line 96 of file i_hsm_impl.h.

Referenced by Init(), and IsPatternMatch().

Definition at line 101 of file i_hsm_impl.h.

Referenced by Init(), and i_HSM_i::MigrateByAPI().

Definition at line 102 of file i_hsm_impl.h.

Referenced by Init(), and i_HSM_i::MigrateByAPI().

Definition at line 294 of file hsm_common.h.

Definition at line 295 of file hsm_common.h.

Definition at line 301 of file hsm_common.h.

Referenced by ClientConf_t().


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

Generated on Mon Feb 27 19:04:15 2012 for OPENARCHIVE by  doxygen 1.5.6