Classes for managing events
[Client]

Collaboration diagram for Classes for managing events:

Detailed Description

See also:
eventmgr

i_fsevmgr_impl

i_hsm_impl

ivd-fsevent

ivd-hsm


Classes

class  Collocation
class  MigrateTreewalk
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

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


Define Documentation

#define IS_OFFLINE   1

Definition at line 43 of file fslib.h.

Referenced by IsFileOffline().

#define NOT_OFFLINE   0

Definition at line 42 of file fslib.h.

Referenced by IsFileOffline().


Typedef Documentation

typedef list<UInt32_t>::iterator unusedIter_t

Definition at line 104 of file joblistmgr.h.


Function Documentation

int IsFileOffline ( const char *  a_path  ) 

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

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

Referenced by IsFileOffline().

00244                                       {
00245 
00246     log_FUNC_m(IsFileOffline);
00247 
00248     ivd_hsmattr_t   ia;
00249     int             ret = IS_OFFLINE;
00250 
00251     memset (&ia, sizeof(ia), 0);
00252 
00253     try {
00254         log_DBG_m (dbg_DETAIL, " Checking path " << a_path);
00255 
00256         if (ivd_GetFsAttr(a_path, &ia, true) > 0) {
00257             if ( (ia.flags & ia_F_OFFLINE) == 0) {
00258                 ret = NOT_OFFLINE;
00259             };
00260         }
00261         else {
00262             // File does not have extended attributes
00263             // and no exception was thrown
00264             // Assume file is ONLINE.
00265             ret = NOT_OFFLINE;
00266         };
00267     }
00268     catch (ivd_SysError &ie) {
00269         if (ie.GetError() != EACCES) {
00270             log_ERR_m(
00271                 "User/effective: " << g_cmn.si.m_userName <<
00272                 "/" << g_cmn.si.m_effUserName << endl << ie);
00273         }
00274     }
00275     catch(ivd_Exception &ie) {
00276         log_ERR_m(
00277             "User/effective: " << g_cmn.si.m_userName <<
00278             "/" << g_cmn.si.m_effUserName << endl << ie);
00279     }
00280     catch(ivd_InternalError &ie) {
00281         log_ERR_m(
00282             "User/effective: " << g_cmn.si.m_userName <<
00283             "/" << g_cmn.si.m_effUserName << endl << ie);
00284     }
00285     catch(...) {
00286         log_ERR_m(
00287             "User/effective: " << g_cmn.si.m_userName <<
00288             "/" << g_cmn.si.m_effUserName << endl << "Unknown exception.");
00289     }
00290 
00291     return ret;
00292 }

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

00230                                                        {
00231 
00232     log_FUNC_m(ivd_GetFdFsAttr);
00233     int ret = 0;
00234 
00235     memset(a_fsAttr, 0, sizeof(ivd_hsmattr_t));
00236 
00237     throw ivd_Error(ie_NOT_SUPPORTED, "Not implemented!");
00238 
00239     return ret;
00240 }

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

00221                         {
00222 
00223     log_FUNC_m(ivd_GetFsAttr);
00224 
00225     return ivd_AccessFsAttr(a_path, a_fsAttr, false);
00226 }

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

00207                         {
00208 
00209     log_FUNC_m(ivd_SetFsAttr);
00210 
00211     ivd_AccessFsAttr(a_path, (ivd_hsmattr_t *)a_fsAttr, true);
00212 
00213     return 0;
00214 }

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

ClientConf_t* g_clientConf_p

i_FSC_var g_iFSC

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

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

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


Generated on Mon Feb 27 18:54:09 2012 for OPENARCHIVE by  doxygen 1.5.6