Classes | Defines | Typedefs | Functions | Variables

Classes for managing events
[Client]

Collaboration diagram for Classes for managing events:

Classes

class  Collocation
class  MigrateTreewalk
struct  hsm_hl7ServerInfo
struct  ClientConf_t
 ClientConf_s: Structure, which contain all client configuration parameters. More...
class  i_HSM_i
struct  FileInfo
class  FileInfoCache
class  TreeWalk
struct  FileMigrate_t
 Job list manager manage vector of vector of files for each job A more elaborate class description that describes all aspects of class usage etc. More...
struct  FileRecall_t
class  JobListMgr< T1 >

Defines

#define NOT_OFFLINE   0
#define IS_OFFLINE   1

Typedefs

typedef list< UInt32_t >::iterator unusedIter_t

Functions

void ReadHL7Configuration ()
int ivd_SetFsAttr (const char *a_path, const ivd_hsmattr_t *a_fsAttr, bool a_followLink=false)
int ivd_GetFsAttr (const char *a_path, ivd_hsmattr_t *a_fsAttr, bool a_followLink=false)
int ivd_GetFdFsAttr (int a_fd, ivd_hsmattr_t *a_fsAttr)
int IsFileOffline (const char *a_path)

Variables

ClientConf_tg_clientConf_p
string g_partitionFSID
i_FSC_var g_iFSC

Detailed Description

See also:
eventmgr
i_fsevmgr_impl
i_hsm_impl
ivd-fsevent
ivd-hsm

Define Documentation

#define IS_OFFLINE   1

Definition at line 57 of file fslib.h.

#define NOT_OFFLINE   0

Definition at line 56 of file fslib.h.


Typedef Documentation

typedef list<UInt32_t>::iterator unusedIter_t

Definition at line 118 of file joblistmgr.h.


Function Documentation

int IsFileOffline ( const char *  a_path  ) 

Definition at line 258 of file hpux/ivd_ea.cpp.

References dbg_DETAIL, ivd_hsmattr_t::flags, g_cmn, ivd_BaseException::GetError(), ia_F_OFFLINE, IsFileOffline(), ivd_GetFsAttr(), ivd_GetFsAttrNative(), log_DBG_m, log_ERR_m, log_FUNC_m, cmn_SysInfo::m_effUserName, cmn_SysInfo::m_userName, and cmn_Global::si.

Referenced by IsFileOffline().

                                      {

    log_FUNC_m(IsFileOffline);

    ivd_hsmattr_t   ia;
    int             ret = IS_OFFLINE;

    memset (&ia, sizeof(ia), 0);

    try {
        log_DBG_m (dbg_DETAIL, " Checking path " << a_path);

        if (ivd_GetFsAttr(a_path, &ia, true) > 0) {
            if ( (ia.flags & ia_F_OFFLINE) == 0) {
                ret = NOT_OFFLINE;
            };
        }
        else {
            // File does not have extended attributes
            // and no exception was thrown
            // Assume file is ONLINE.
            ret = NOT_OFFLINE;
        };
    }
    catch (ivd_SysError &ie) {
        if (ie.GetError() != EACCES) {
            log_ERR_m(
                "User/effective: " << g_cmn.si.m_userName <<
                "/" << g_cmn.si.m_effUserName << endl << ie);
        }
    }
    catch(ivd_Exception &ie) {
        log_ERR_m(
            "User/effective: " << g_cmn.si.m_userName <<
            "/" << g_cmn.si.m_effUserName << endl << ie);
    }
    catch(ivd_InternalError &ie) {
        log_ERR_m(
            "User/effective: " << g_cmn.si.m_userName <<
            "/" << g_cmn.si.m_effUserName << endl << ie);
    }
    catch(...) {
        log_ERR_m(
            "User/effective: " << g_cmn.si.m_userName <<
            "/" << g_cmn.si.m_effUserName << endl << "Unknown exception.");
    }

    return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int ivd_GetFdFsAttr ( int  a_fd,
ivd_hsmattr_t a_fsAttr 
)

Definition at line 244 of file hpux/ivd_ea.cpp.

References dbg_LOW, errno, ia_HSMATTR_NAME, ie_ERRORREAD, ie_NOT_SUPPORTED, ivd_Error, ivd_GetFdFsAttr(), log_DBG_m, and log_FUNC_m.

Referenced by ivd_GetFdFsAttr().

                                                       {

    log_FUNC_m(ivd_GetFdFsAttr);
    int ret = 0;

    memset(a_fsAttr, 0, sizeof(ivd_hsmattr_t));

    throw ivd_Error(ie_NOT_SUPPORTED, "Not implemented!");

    return ret;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int ivd_GetFsAttr ( const char *  a_path,
ivd_hsmattr_t a_fsAttr,
bool  a_followLink = false 
)

Definition at line 232 of file hpux/ivd_ea.cpp.

References cmn_UTF8ToLocale(), ivd_AccessFsAttr(), ivd_GetFsAttr(), ivd_GetFsAttrNative(), and log_FUNC_m.

Referenced by _tmain(), FileName2IPCFileList(), api_Partition::GetFileLocations(), api_Partition::GetFileStatus(), InputFile2IPCFileList(), IsFileOffline(), ivd_GetFsAttr(), ivd_GetFsAttrNative(), and main().

                        {

    log_FUNC_m(ivd_GetFsAttr);

    return ivd_AccessFsAttr(a_path, a_fsAttr, false);
}

Here is the call graph for this function:

Here is the caller graph for this function:

int ivd_SetFsAttr ( const char *  a_path,
const ivd_hsmattr_t a_fsAttr,
bool  a_followLink = false 
)

Definition at line 218 of file hpux/ivd_ea.cpp.

References cmn_UTF8ToLocale(), ivd_AccessFsAttr(), ivd_SetFsAttr(), ivd_SetFsAttrNative(), and log_FUNC_m.

Referenced by ivd_SetFsAttr(), and main().

                        {

    log_FUNC_m(ivd_SetFsAttr);

    ivd_AccessFsAttr(a_path, (ivd_hsmattr_t *)a_fsAttr, true);

    return 0;
}

Here is the call graph for this function:

Here is the caller graph for this function:

void ReadHL7Configuration (  ) 

Variable Documentation

ClientConf_t* g_clientConf_p
i_FSC_var g_iFSC

Definition at line 67 of file ivd-hsm.cpp.

Definition at line 64 of file ivd-hsm.cpp.

Referenced by fs_api::EventMounted(), and main().