#include <i_component_impl.h>

Definition at line 32 of file i_component_impl.h.
Public Member Functions | |
| i_Component_i () | |
| virtual i_Version * | GetVersion () |
| virtual void | StartDebug (CORBA::Char a_level, const char *a_output, const char *a_flags, CORBA::ULong a_ivdfsFlags) |
| virtual void | StopDebug () |
| virtual void | Remove () |
| virtual void | Ping () |
Protected Member Functions | |
| virtual | ~i_Component_i () |
Private Attributes | |
| log_CLASSID_m | |
| bool | m_deactivated |
| i_Component_i::i_Component_i | ( | ) |
Definition at line 34 of file i_component_impl.cpp.
References log_FUNC_m.
00035 : m_deactivated(false) { 00036 00037 log_FUNC_m(i_Component_i); 00038 }
| i_Component_i::~i_Component_i | ( | ) | [protected, virtual] |
| i_Version * i_Component_i::GetVersion | ( | ) | [virtual] |
Definition at line 43 of file i_component_impl.cpp.
References g_cmn, ivd_Versions::GetVersions(), i_HPUX, i_Linux, i_OtherOS, i_Windows, ipc_CATCH_IVD_THROW_CORBA_m, log_FUNC_m, cmn_SysInfo::m_osRelease, cmn_SysInfo::m_osVersion, and cmn_Global::si.
Referenced by i_PartitionManager_i::RegisterHSM().
00043 { 00044 log_FUNC_m(GetVersion); 00045 00046 try { 00047 i_Version_var ver(new i_Version()); 00048 00049 // OS type and version 00050 00051 #if TGT_OS_linux 00052 ver->osType = i_Linux; 00053 #elif TGT_OS_windows 00054 ver->osType = i_Windows; 00055 #elif TGT_OS_hpux 00056 ver->osType = i_HPUX; 00057 #else 00058 ver->osType = i_OtherOS; 00059 #endif 00060 ver->osVer = CORBA::string_dup(g_cmn.si.m_osVersion.c_str()); 00061 ver->osRel = CORBA::string_dup(g_cmn.si.m_osRelease.c_str()); 00062 00063 // Product version 00064 00065 // last module on the list is binary itself - use its version. 00066 const ivd_ModVersion *ivdVer = *(ivd_Versions::GetVersions().rbegin()); 00067 00068 ver->major = ivdVer->GetMajor(); 00069 ver->minor = ivdVer->GetMinor(); 00070 ver->smr = ivdVer->GetSystemMaintRel(); 00071 ver->build = ivdVer->GetBuildNum(); 00072 ver->label = CORBA::string_dup(ivdVer->GetLabel().c_str()); 00073 00074 return ver._retn(); 00075 } ipc_CATCH_IVD_THROW_CORBA_m; 00076 }


| void i_Component_i::StartDebug | ( | CORBA::Char | a_level, | |
| const char * | a_output, | |||
| const char * | a_flags, | |||
| CORBA::ULong | a_ivdfsFlags | |||
| ) | [virtual] |
Reimplemented in i_FsEvMgr_i, and i_FsEvMgr_i.
Definition at line 78 of file i_component_impl.cpp.
References dbg_On(), dbg_SetArgs(), ivd_BaseException::GetFriendly(), log_FUNC_m, and log_WRN_m.
Referenced by i_ManagementInterface_i::EnableDebug(), and i_FsEvMgr_i::StartDebug().
00082 { 00083 00084 log_FUNC_m(StartDebug); 00085 00086 try { 00087 00088 dbg_SetArgs(a_level, a_output, a_flags); 00089 dbg_On(); 00090 00091 } 00092 catch (const ivd_Exception& ie) { 00093 log_WRN_m("Can't start debugging: " << ie.GetFriendly() ); 00094 } 00095 00096 }


| void i_Component_i::StopDebug | ( | ) | [virtual] |
Reimplemented in i_FsEvMgr_i, and i_FsEvMgr_i.
Definition at line 98 of file i_component_impl.cpp.
References dbg_Off(), dbg_SetArgs(), ivd_BaseException::GetFriendly(), log_FUNC_m, and log_WRN_m.
Referenced by i_ManagementInterface_i::DisableDebug(), and i_FsEvMgr_i::StopDebug().
00098 { 00099 log_FUNC_m(StopDebug); 00100 00101 try { 00102 00103 dbg_Off(); 00104 dbg_SetArgs(0, "", ""); 00105 00106 } 00107 catch (const ivd_Exception& ie) { 00108 log_WRN_m("Can't stop debugging: " << ie.GetFriendly() ); 00109 } 00110 }


| void i_Component_i::Remove | ( | ) | [virtual] |
Reimplemented in i_BackEndAgent_i, i_LibraryAgentSCSI_i, i_LibraryAgentManual_i, i_HSM_i, i_Job_i, i_BackupJob_i, i_ManagementInterface_i, i_PartitionManager_i, i_ThreadJob_i, i_ResourceManager_i, and i_UIMessageServer_i.
Definition at line 112 of file i_component_impl.cpp.
References dbg_EXTAPI, dbg_LOW, dbg_NORM, ipc_CATCH_IVD_THROW_CORBA_m, ipc_Corba::IsMajorServant(), log_DBG_m, log_FUNC_m, m_deactivated, and ipc_Corba::ResetMajorServant().
Referenced by i_UIMessageServer_i::Remove(), i_ResourceManager_i::Remove(), i_PartitionManager_i::Remove(), i_ManagementInterface_i::Remove(), i_LibraryAgentSCSI_i::Remove(), i_LibraryAgentManual_i::Remove(), i_Job_i::Remove(), i_HSM_i::Remove(), i_BackEndAgent_i::Remove(), and ipc_Corba::RemoveMajorServant().
00112 { 00113 log_FUNC_m(Remove); 00114 00115 if (m_deactivated) { 00116 log_DBG_m(dbg_NORM, "Object already deactivated. Ignore."); 00117 return; 00118 } 00119 m_deactivated = true; 00120 try { 00121 log_DBG_m(dbg_EXTAPI, "Will call poa->deactivate_object()."); 00122 00123 PortableServer::POA_var poa = _default_POA(); 00124 00125 PortableServer::ObjectId_var id = poa->servant_to_id(this); 00126 poa->deactivate_object(id); 00127 00128 if (ipc_Corba::IsMajorServant(this)) { 00129 log_DBG_m(dbg_LOW, 00130 "Removed major servant. Resetting major servant reference."); 00131 00132 ipc_Corba::ResetMajorServant(); 00133 } 00134 } ipc_CATCH_IVD_THROW_CORBA_m; 00135 }


| void i_Component_i::Ping | ( | ) | [virtual] |
i_Component_i::log_CLASSID_m [private] |
Reimplemented in i_BackEndAgent_i, i_LibraryAgentSCSI_i, i_LibraryAgentManual_i, i_FsEvMgr_i, i_HSM_i, i_Collection_i, i_FSC_i, i_Job_i, i_AdminJob_i, i_BackupJob_i, i_MediumDupl_i, i_ManagementInterface_i, i_DelExpiredFilesJob_i, i_FSCCheckJob_i, i_MaintFriJob_i, i_MediumCheckJob_i, i_MigrationJob_i, i_PartitionManager_i, i_RecallJob_i, i_EfficientRecallJob_i, i_RecoveryJob_i, i_RecreatedIVDFSJob_i, i_RedundantCopyJob_i, i_ReorgJob_i, i_ReorgScanJob_i, i_ThreadJob_i, i_ResourceManager_i, i_UploadAgent_i, i_DownloadAgent_i, i_BackupAgent_i, i_RestoreAgent_i, i_Service_i, i_IvdNet_i, and i_UIMessageServer_i.
Definition at line 56 of file i_component_impl.h.
bool i_Component_i::m_deactivated [private] |
1.5.6