Public Member Functions | Protected Member Functions | Private Attributes

i_Component_i Class Reference
[CORBA Interface Definitions]

#include <i_component_impl.h>

Inheritance diagram for i_Component_i:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 i_Component_i ()
virtual i_VersionGetVersion ()
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

Detailed Description

Definition at line 46 of file i_component_impl.h.


Constructor & Destructor Documentation

i_Component_i::i_Component_i (  ) 

Definition at line 48 of file i_component_impl.cpp.

References log_FUNC_m.

i_Component_i::~i_Component_i (  )  [protected, virtual]

Definition at line 54 of file i_component_impl.cpp.

                             {
}


Member Function Documentation

i_Version * i_Component_i::GetVersion (  )  [virtual]

Definition at line 57 of file i_component_impl.cpp.

References g_cmn, ivd_Versions::GetVersions(), log_FUNC_m, cmn_SysInfo::m_osRelease, cmn_SysInfo::m_osVersion, and cmn_Global::si.

Referenced by i_PartitionManager_i::RegisterHSM().

                                     {
    log_FUNC_m(GetVersion);

    try {
        i_Version_var ver(new i_Version());

        // OS type and version

#if TGT_OS_linux
        ver->osType = i_Linux;
#elif TGT_OS_windows
        ver->osType = i_Windows;
#elif TGT_OS_hpux
        ver->osType = i_HPUX;
#else
        ver->osType = i_OtherOS;
#endif
        ver->osVer = CORBA::string_dup(g_cmn.si.m_osVersion.c_str());
        ver->osRel = CORBA::string_dup(g_cmn.si.m_osRelease.c_str());

        // Product version

        // last module on the list is binary itself - use its version.
        const ivd_ModVersion *ivdVer = *(ivd_Versions::GetVersions().rbegin());

        ver->major = ivdVer->GetMajor();
        ver->minor = ivdVer->GetMinor();
        ver->smr   = ivdVer->GetSystemMaintRel();
        ver->build = ivdVer->GetBuildNum();
        ver->label = CORBA::string_dup(ivdVer->GetLabel().c_str());

        return ver._retn();
    } ipc_CATCH_IVD_THROW_CORBA_m;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void i_Component_i::Ping (  )  [virtual]

Definition at line 151 of file i_component_impl.cpp.

                         {
    return;
}

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 126 of file i_component_impl.cpp.

References dbg_EXTAPI, dbg_LOW, dbg_NORM, ipc_Corba::IsMajorServant(), log_DBG_m, log_FUNC_m, m_deactivated, and ipc_Corba::ResetMajorServant().

Referenced by i_ResourceManager_i::Remove(), i_PartitionManager_i::Remove(), and ipc_Corba::RemoveMajorServant().

                          {
    log_FUNC_m(Remove);

    if (m_deactivated) {
        log_DBG_m(dbg_NORM, "Object already deactivated. Ignore.");
        return;
    }
    m_deactivated = true;
    try {
        log_DBG_m(dbg_EXTAPI, "Will call poa->deactivate_object().");

        PortableServer::POA_var poa = _default_POA();

        PortableServer::ObjectId_var id = poa->servant_to_id(this);
        poa->deactivate_object(id);

        if (ipc_Corba::IsMajorServant(this)) {
            log_DBG_m(dbg_LOW,
                "Removed major servant. Resetting major servant reference.");

            ipc_Corba::ResetMajorServant();
        }
    } ipc_CATCH_IVD_THROW_CORBA_m;
}

Here is the call graph for this function:

Here is the caller graph for this function:

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 92 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().

                             {

    log_FUNC_m(StartDebug);

    try {

        dbg_SetArgs(a_level, a_output, a_flags);
        dbg_On();

    }
    catch (const ivd_Exception& ie) {
        log_WRN_m("Can't start debugging: " << ie.GetFriendly() );
    }

}

Here is the call graph for this function:

Here is the caller graph for this function:

void i_Component_i::StopDebug (  )  [virtual]

Reimplemented in i_FsEvMgr_i, and i_FsEvMgr_i.

Definition at line 112 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().

                              {
    log_FUNC_m(StopDebug);

    try {

        dbg_Off();
        dbg_SetArgs(0, "", "");

    }
    catch (const ivd_Exception& ie) {
        log_WRN_m("Can't stop debugging: " << ie.GetFriendly() );
    }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 72 of file i_component_impl.h.

Referenced by Remove().


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