#include <cmn_globals.h>

Definition at line 27 of file cmn_globals.h.
Public Member Functions | |
| cmn_Global () | |
| ~cmn_Global () | |
| bool | IsDbgActive () |
| void | cmn_SetHostNames (string &a_hostname, string &a_servername) |
Public Attributes | |
| const string | c_ErrorFileName |
| bool | m_evtReady |
| bool | m_dbgReady |
| ivd_Product | prod |
| ivd_Directories | dirs |
| log_ErrorStream | err |
| cmn_SysInfo | si |
| log_Debugger | dbg |
| Global singleton for debugging. | |
| log_EventLogger | evt |
| Global facility for event logging. | |
| cmn_UTF8Converter | conv |
| Converter between locale codeset and UTF-8. | |
| cmn_Path | unitTestPath |
| path used for unit tests. | |
| cmn_Global::cmn_Global | ( | ) |
Definition at line 30 of file cmn_global.cpp.
References IVD_COUT_LOG_m, cmn_SysInfo::m_effUserName, m_evtReady, si, and unitTestPath.
00031 : c_ErrorFileName("error.log"), 00032 m_evtReady(false), 00033 m_dbgReady(false), // dbg obj set this value when it is ready 00034 dbg(m_dbgReady), 00035 conv(g_cmn.si.m_codeset) 00036 { 00037 IVD_COUT_LOG_m(" cmn_Global::cmn_Global() ") 00038 00039 #if TGT_OS_windows 00040 unitTestPath = string("c:\\ivd\\build\\ut"); 00041 #else 00042 unitTestPath = string("/proj/" + si.m_effUserName + "/ut"); 00043 #endif 00044 00045 // Other member objects' ctors rely on this member. 00046 m_evtReady = true; 00047 }
| cmn_Global::~cmn_Global | ( | ) |
Definition at line 49 of file cmn_global.cpp.
References IVD_COUT_LOG_m.
00049 { 00050 IVD_COUT_LOG_m(" cmn_Global::~cmn_Global() ") 00051 }
| bool cmn_Global::IsDbgActive | ( | ) | [inline] |
Definition at line 33 of file cmn_globals.h.
Referenced by i_PartitionManager_i::BuildExpirationTree(), ivd_BaseException::FormatText(), log_FunctionTracer::log_FunctionTracer(), log_Output(), log_Stack::log_Stack(), main(), log_FunctionTracer::~log_FunctionTracer(), and log_Stack::~log_Stack().
00033 { return m_dbgReady; };

| void cmn_Global::cmn_SetHostNames | ( | string & | a_hostname, | |
| string & | a_servername | |||
| ) | [inline] |
Definition at line 34 of file cmn_globals.h.
00034 { 00035 si.cmn_SetHostNames(a_hostname, a_servername); 00036 }
| const string cmn_Global::c_ErrorFileName |
Definition at line 44 of file cmn_globals.h.
Referenced by _tmain(), pm_JobMgr::CheckFSCvsIVDFS(), i_HSM_i::CheckFSCvsIVDFS(), cmn_GetComponentName(), i_AdminJob_i::DetectVolumeHeader(), hsm_FileHeader::EventOffline(), i_ReorgScanJob_i::Execute(), log_EventLogger::GetComponent(), fsc_nsElement::GetFullPath(), log_EventLogger::GetHeader(), log_ErrorStream::GetHeader(), i_HSM_i::GetInfo(), cfg_Cli_hsm::HelpDump(), i_BackupAgent_i::i_BackupAgent_i(), i_RestoreAgent_i::i_RestoreAgent_i(), bea_Volume::Init(), ivd_ParseCmnArgs(), log_Output(), main(), hsm_JobListMgr::MigrateFailedJob(), log_Debugger::Off(), log_Debugger::On(), operator<<(), PrintUsage(), i_MediumCheckJob_i::ProcessFRI(), fio_uvListMgr::ReadUV(), i_HSM_i::Recall(), cfg_CliBase::Refresh(), FSEvMgrThrd::Run(), ivd_DD::Run(), hsm_FHmigc::SendToPM(), log_EventLogger::SetNewPath(), Update(), Usage(), and fsc_DataL::Write2DB().
Definition at line 47 of file cmn_globals.h.
Referenced by i_ManagementInterface_i::AddMediumToPool(), blk_DiskFRIReader::blk_DiskFRIReader(), bea_MigrationThread::CheckFRI(), i_HSM_i::CheckFSCvsIVDFS(), i_MaintFriJob_i::CheckReadFri(), rm_DiskBuffer::Clear(), i_BackEndAgent_i::CloseMediumVolume(), bea_FRI::CloseVolume(), bea_FRI::CreateFRI(), cmn_File::CreatePipe(), i_Service_i::DeleteFile(), rm_DiskBufAllocator::DetectVolumes(), i_Service_i::Execute(), fsc_GetDir(), fsc_GetRedunCopyDir(), fsc_GetReorgDir(), bea_DiskMedium::GetDiskMediumPath(), fsc_RawMedVolPathCollector::GetFileName(), i_MaintFriJob_i::GetFRI(), HsmApiEnableDebug(), i_BackEndAgent_i::i_BackEndAgent_i(), i_DownloadAgent_i::i_DownloadAgent_i(), i_MediumCheckJob_i::i_MediumCheckJob_i(), i_ResourceManager_i::i_ResourceManager_i(), i_UploadAgent_i::i_UploadAgent_i(), log_ivdfs::Init(), ipc_Corba::Init(), bea_Volume::Init(), i_ReorgJob_i::InitializeVolumes(), log_ErrorStream::log_ErrorStream(), main(), df_FRI::MediumVolumeClosed(), bea_MigrationThread::Migrate(), bea_FRI::MoveFromWorkToFRI(), bea_Volume::MustDumpFRI(), nsc_ScanForIVDFSRecovery(), la_SCSILibrary::Open(), blk_DiskFRIWriter::OpenFRIFile(), i_PartitionManager_i::ParseConfig(), i_ResourceManager_i::ParsePMConfig(), cmn_SysInfo::ParseServices(), i_MaintFriJob_i::PrepareVolumes(), i_RecoveryJob_i::ProcessFRI(), i_MediumCheckJob_i::ProcessFRI(), bea_DupReadThread::ReadMedVolume(), ReadRefFromFile(), fio_uvListMgr::ReadUV(), bea_DiskMedium::Refresh(), i_ManagementInterface_i::RemovePartition(), rm_DiskBuffer::ReportContent(), rm_DiskBuffer::rm_DiskBuffer(), ivd_DD::Run(), RunOmniNames(), bea_FRI::SaveFRIOnError(), log_Debugger::SetFileName(), log_EventLogger::SetNewPath(), log_ErrorStream::SetNewPath(), mif_CfgRep::SetPath(), bea_FRIThread::SetWorkDir(), SimulateMediumError(), SimulateUVStructureError(), bea_DupWriteThread::WriteMedVolume(), WriteRefToFile(), i_MediumDupl_i::~i_MediumDupl_i(), and i_RedundantCopyJob_i::~i_RedundantCopyJob_i().
Definition at line 50 of file cmn_globals.h.
Definition at line 54 of file cmn_globals.h.
Referenced by _tmain(), log_Debugger::ChangeParams(), CliConnectToHSM(), CliConnectToMIF(), cmn_DaemonInit(), cmn_Global(), i_ManagementInterface_i::DisableDebug(), i_ManagementInterface_i::EnableDebug(), i_MigrationJob_i::Execute(), i_ManagementInterface_i::FileHistory(), log_EventLogger::GetHeader(), i_HSM_i::GetInfo(), i_Component_i::GetVersion(), ut_Group::Header(), i_ManagementInterface_i::i_ManagementInterface_i(), ipc_Corba::Init(), i_AdminJob_i::InitializeSingleVolume(), IsFileOffline(), ivd_FileSystemAPI::ivd_FileSystemAPI(), i_ManagementInterface_i::ListDrives(), cfg_CliBase::LocaleToUTF8Argv(), log_Output(), main(), i_EfficientRecallJob_i::MediumOperationComplete(), log_Debugger::On(), i_PartitionManager_i::ParseConfig(), i_LibraryAgentSCSI_i::ReadDriveInfo(), i_ManagementInterface_i::RecallFile(), ipc_Corba::RegisterFSEvtMgr(), ipc_Corba::RegisterLA(), ipc_Corba::RegisterMIF(), ipc_Corba::RegisterPMByPMID(), ipc_Corba::RegisterSvc(), i_Job_i::ReleaseDiskBuffer(), FSEvMgrThrd::Run(), pm_RecallClientThread::Run(), RunOmniNames(), ServerLoop(), i_Job_i::SetDriveProperties(), log_Debugger::SetFileName(), api_Partition::SetReferences(), i_HSM_i::ShowStatus(), mif_PartMgr::StartPM(), Suspend(), i_ManagementInterface_i::TrigMigration(), i_ManagementInterface_i::UpdatePool(), log_EventLogger::Write(), and log_Debugger::WriteHeader().
Global singleton for debugging.
Definition at line 57 of file cmn_globals.h.
Referenced by i_HSM_i::ChangeLogLevel(), dbg_GetFlags(), dbg_GetLevel(), dbg_Off(), dbg_On(), dbg_SetArgs(), dbg_SetExternalDebugger(), dbg_SetFlags(), dbg_SetLevel(), dbg_SetProcName(), i_HSM_i::DoMigrationJob(), i_Service_i::Execute(), ivd_BaseException::FormatText(), fsc_DataL::Insert(), log_FunctionTracer::log_FunctionTracer(), log_Output(), log_Stack::log_Stack(), i_HSM_i::PackFile(), rm_Queue::Recalc(), rm_PartitionStatus::Release(), rm_SysState::ReleaseSys(), rm_PartitionStatus::Reserve(), rm_SysState::ReserveSys(), ivd_DD::Run(), hsm_FHmigc::Run(), rm_SysState::UnRegisterPM(), rm_SysState::UpdatePM(), log_FunctionTracer::~log_FunctionTracer(), and log_Stack::~log_Stack().
Global facility for event logging.
Definition at line 60 of file cmn_globals.h.
Referenced by log_EventLog::ChangeQualifier(), bea_TapeDrive::Close(), bea_DiskDrive::Close(), log_EventLog::log_EventLog(), log_Output(), log_WriteEvent(), bea_TapeDrive::Open(), bea_DiskDrive::Open(), and i_BackEndAgent_i::UseResources().
Converter between locale codeset and UTF-8.
Definition at line 63 of file cmn_globals.h.
Referenced by cmn_LocaleToUTF8(), and cmn_UTF8ToLocale().
path used for unit tests.
Reason: reduce number of ? <files> in CVS
Definition at line 68 of file cmn_globals.h.
Referenced by cmn_Global().
1.5.6