xrootd
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
XrdFrmConfig Class Reference

#include <XrdFrmConfig.hh>

Collaboration diagram for XrdFrmConfig:
Collaboration graph
[legend]

Classes

struct  Cmd
 
struct  Policy
 
struct  VPInfo
 

Public Types

enum  PPVar {
  PP_atime =0, PP_ctime, PP_fname, PP_fsize,
  PP_fspace, PP_mtime, PP_pfn, PP_sname,
  PP_tspace, PP_usage
}
 
enum  SubSys {
  ssAdmin, ssMigr, ssPstg, ssPurg,
  ssXfr
}
 

Public Member Functions

int Configure (int argc, char **argv, int(*ppf)())
 
int LocalPath (const char *oldp, char *newp, int newpsz)
 
int LogicalPath (const char *oldp, char *newp, int newpsz)
 
int NeedsCTA (const char *Lfn)
 
unsigned long long PathOpts (const char *Lfn)
 
int RemotePath (const char *oldp, char *newp, int newpsz)
 
XrdOucTListSpace (const char *Name, const char *Path=0)
 
 XrdFrmConfig (SubSys ss, const char *vopts, const char *uinfo)
 
 ~XrdFrmConfig ()
 

Public Attributes

const char * myProg
 
const char * myName
 
const char * myInst
 
const char * mySite
 
const char * myFrmid
 
const char * myFrmID
 
const char * lockFN
 
char * AdminPath
 
char * QPath
 
char * PidPath
 
char * myInstance
 
char * StopPurge
 
char * MSSCmd
 
XrdOucProgMSSProg
 
struct XrdFrmConfig::Cmd xfrCmd [4]
 
int xfrIN
 
int xfrOUT
 
char * CksAlg
 
XrdCksConfigCksCfg
 
XrdCksCksMan
 
XrdOucName2Namethe_N2N
 
XrdOssossFS
 
XrdNetCmsNotifycmsPath
 
uid_t myUid
 
gid_t myGid
 
long long cmdFree
 
int cmdHold
 
int AdminMode
 
int isAgent
 
int xfrMax
 
int FailHold
 
int IdleHold
 
int WaitQChk
 
int WaitPurge
 
int WaitMigr
 
int haveCMS
 
int isOTO
 
int Fix
 
int Test
 
int TrackDC
 
int Verbose
 
int runOld
 
int runNew
 
int nonXA
 
int hasCache
 
char ** vectArg
 
int nextArg
 
int numcArg
 
struct XrdFrmConfig::VPInfoVPList
 
VPInfopathList
 
XrdOucTListspacList
 
Policy dfltPolicy
 
int dirHold
 
int pVecNum
 
char pVec [pVecMax]
 
char * pProg
 
char * xfrFdir
 
int xfrFdln
 

Static Public Attributes

static const int cmdAlloc = 0x0001
 
static const int cmdMDP = 0x0002
 
static const int cmdStats = 0x0004
 
static const int cmdXPD = 0x0008
 
static const int pVecMax =8
 

Private Member Functions

int ConfigCks ()
 
XrdOucMsubsConfigCmd (const char *cname, char *cdata)
 
int ConfigMum (XrdFrmConfigSE &theSE)
 
int ConfigN2N ()
 
int ConfigMon (int isxfr)
 
int ConfigMP (const char *)
 
int ConfigMss ()
 
int ConfigOTO (char *Parms)
 
int ConfigPaths ()
 
void ConfigPF (const char *pFN)
 
int ConfigProc ()
 
int ConfigXeq (char *var, int mbok)
 
int ConfigXfr ()
 
int getTime (const char *, const char *, int *, int mnv=-1, int mxv=-1)
 
int Grab (const char *var, char **Dest, int nosubs)
 
XrdOucTListInsertPL (XrdOucTList *pP, const char *Path, int Plen, int isRW)
 
void InsertXD (const char *Path)
 
void Usage (int rc)
 
int xapath ()
 
int xcks (int isOfs=0)
 
int xcnsd ()
 
int xcopy ()
 
int xcopy (int &TLim)
 
int xcmax ()
 
int xdpol ()
 
int xitm (const char *What, int &tDest)
 
int xnml ()
 
int xmon ()
 
int xoss ()
 
int xpol ()
 
int xpolprog ()
 
int xqchk ()
 
int xsit ()
 
int xspace (int isPrg=0, int isXA=1)
 
void xspaceBuild (char *grp, char *fn, int isxa)
 
int xxfr ()
 

Private Attributes

char * ConfigFN
 
char * ossLib
 
char * ossParms
 
char * LocalRoot
 
char * RemoteRoot
 
XrdOucStreamcFile
 
XrdVersionInfomyVersion
 
int plnDTS
 
const char * pfxDTS
 
const char * vOpts
 
const char * uInfo
 
char * N2N_Lib
 
char * N2N_Parms
 
XrdOucName2Namelcl_N2N
 
XrdOucName2Namermt_N2N
 
SubSys ssID
 

Member Enumeration Documentation

Enumerator
PP_atime 
PP_ctime 
PP_fname 
PP_fsize 
PP_fspace 
PP_mtime 
PP_pfn 
PP_sname 
PP_tspace 
PP_usage 
Enumerator
ssAdmin 
ssMigr 
ssPstg 
ssPurg 
ssXfr 

Constructor & Destructor Documentation

XrdFrmConfig::XrdFrmConfig ( SubSys  ss,
const char *  vopts,
const char *  uinfo 
)
XrdFrmConfig::~XrdFrmConfig ( )
inline

Member Function Documentation

int XrdFrmConfig::ConfigCks ( )
private

References CksAlg, CksCfg, CksMan, and XrdCksConfig::Configure().

Referenced by Configure().

XrdOucMsubs * XrdFrmConfig::ConfigCmd ( const char *  cname,
char *  cdata 
)
private

References access(), XrdOucMsubs::Parse(), and Say.

Referenced by ConfigXfr().

int XrdFrmConfig::ConfigMon ( int  isxfr)
private
int XrdFrmConfig::ConfigMP ( const char *  pType)
private
int XrdFrmConfig::ConfigMss ( )
private

References MSSCmd, MSSProg, Say, and XrdOucProg::Setup().

Referenced by Configure(), and ConfigXfr().

int XrdFrmConfig::ConfigMum ( XrdFrmConfigSE theSE)
private
int XrdFrmConfig::ConfigN2N ( void  )
private
int XrdFrmConfig::ConfigOTO ( char *  Parms)
private

References XrdOuca2x::a2i(), XrdOuca2x::a2sp(), cmdFree, cmdHold, and Say.

Referenced by Configure().

int XrdFrmConfig::ConfigPaths ( )
private
void XrdFrmConfig::ConfigPF ( const char *  pFN)
private

References close(), Mode, myInst, open(), PidPath, Say, and write().

Referenced by Configure().

int XrdFrmConfig::ConfigProc ( void  )
private
int XrdFrmConfig::Configure ( int  argc,
char **  argv,
int(*)()  ppf 
)
int XrdFrmConfig::ConfigXeq ( char *  var,
int  mbok 
)
private
int XrdFrmConfig::ConfigXfr ( )
private

References ConfigCmd(), ConfigMP(), ConfigMss(), Say, xfrCmd, xfrIN, and xfrOUT.

Referenced by Configure().

int XrdFrmConfig::getTime ( const char *  emsg,
const char *  item,
int *  val,
int  mnv = -1,
int  mxv = -1 
)
private

References XrdOuca2x::a2tm(), and Say.

Referenced by xpol().

int XrdFrmConfig::Grab ( const char *  var,
char **  Dest,
int  nosubs 
)
private
XrdOucTList * XrdFrmConfig::InsertPL ( XrdOucTList pP,
const char *  Path,
int  Plen,
int  isRW 
)
private

References XrdOucTList::next.

Referenced by ConfigMP().

void XrdFrmConfig::InsertXD ( const char *  Path)
private

References DEBUG, XrdFrmConfig::VPInfo::Dir, EPNAME, and pathList.

Referenced by ConfigMP().

int XrdFrmConfig::LocalPath ( const char *  oldp,
char *  newp,
int  newpsz 
)
int XrdFrmConfig::LogicalPath ( const char *  oldp,
char *  newp,
int  newpsz 
)
int XrdFrmConfig::NeedsCTA ( const char *  Lfn)
unsigned long long XrdFrmConfig::PathOpts ( const char *  Lfn)
int XrdFrmConfig::RemotePath ( const char *  oldp,
char *  newp,
int  newpsz 
)
XrdOucTList * XrdFrmConfig::Space ( const char *  Name,
const char *  Path = 0 
)
void XrdFrmConfig::Usage ( int  rc)
private

References myProg, and uInfo.

Referenced by Configure().

int XrdFrmConfig::xapath ( )
private

References AdminMode, AdminPath, cFile, XrdOucStream::GetWord(), and Say.

Referenced by ConfigXeq().

int XrdFrmConfig::xcks ( int  isOfs = 0)
private
int XrdFrmConfig::xcmax ( )
private
int XrdFrmConfig::xcnsd ( )
private
int XrdFrmConfig::xcopy ( )
private
int XrdFrmConfig::xcopy ( int &  TLim)
private
int XrdFrmConfig::xdpol ( )
private
int XrdFrmConfig::xitm ( const char *  What,
int &  tDest 
)
private

References XrdOuca2x::a2tm(), cFile, XrdOucStream::GetWord(), and Say.

Referenced by ConfigXeq().

int XrdFrmConfig::xmon ( )
private
int XrdFrmConfig::xnml ( )
private
int XrdFrmConfig::xoss ( )
private
int XrdFrmConfig::xpol ( )
private
int XrdFrmConfig::xpolprog ( )
private
int XrdFrmConfig::xqchk ( )
private
int XrdFrmConfig::xsit ( )
private
int XrdFrmConfig::xspace ( int  isPrg = 0,
int  isXA = 1 
)
private
void XrdFrmConfig::xspaceBuild ( char *  grp,
char *  fn,
int  isxa 
)
private
int XrdFrmConfig::xxfr ( )
private

Member Data Documentation

int XrdFrmConfig::AdminMode

Referenced by ConfigPaths(), xapath(), and XrdFrmConfig().

char* XrdFrmConfig::AdminPath

Referenced by ConfigPaths(), xapath(), and XrdFrmConfig().

XrdOucStream* XrdFrmConfig::cFile
private
char* XrdFrmConfig::CksAlg

Referenced by ConfigCks(), xcks(), and XrdFrmConfig().

XrdCksConfig* XrdFrmConfig::CksCfg
XrdCks* XrdFrmConfig::CksMan

Referenced by ConfigCks(), and XrdFrmConfig().

const int XrdFrmConfig::cmdAlloc = 0x0001
static

Referenced by xcopy().

long long XrdFrmConfig::cmdFree

Referenced by ConfigOTO(), and XrdFrmConfig().

int XrdFrmConfig::cmdHold

Referenced by ConfigOTO(), and XrdFrmConfig().

const int XrdFrmConfig::cmdMDP = 0x0002
static

Referenced by xcopy().

const int XrdFrmConfig::cmdStats = 0x0004
static

Referenced by xcopy().

const int XrdFrmConfig::cmdXPD = 0x0008
static

Referenced by ConfigMon(), and xcopy().

XrdNetCmsNotify* XrdFrmConfig::cmsPath

Referenced by ConfigPaths(), and XrdFrmConfig().

char* XrdFrmConfig::ConfigFN
private
Policy XrdFrmConfig::dfltPolicy

Referenced by xpol().

int XrdFrmConfig::dirHold

Referenced by xdpol(), and XrdFrmConfig().

int XrdFrmConfig::FailHold

Referenced by XrdFrmConfig(), and xxfr().

int XrdFrmConfig::Fix

Referenced by Configure(), and XrdFrmConfig().

int XrdFrmConfig::hasCache

Referenced by ConfigXeq().

int XrdFrmConfig::haveCMS
int XrdFrmConfig::IdleHold

Referenced by ConfigXeq(), and XrdFrmConfig().

int XrdFrmConfig::isAgent

Referenced by Configure(), ConfigXeq(), and XrdFrmConfig().

int XrdFrmConfig::isOTO

Referenced by Configure(), and XrdFrmConfig().

XrdOucName2Name* XrdFrmConfig::lcl_N2N
private
char* XrdFrmConfig::LocalRoot
private

Referenced by ConfigN2N(), ConfigXeq(), and XrdFrmConfig().

const char* XrdFrmConfig::lockFN
char* XrdFrmConfig::MSSCmd

Referenced by ConfigMss(), and XrdFrmConfig().

XrdOucProg* XrdFrmConfig::MSSProg

Referenced by ConfigMss().

const char* XrdFrmConfig::myFrmid
const char* XrdFrmConfig::myFrmID

Referenced by Configure(), and XrdFrmConfig().

gid_t XrdFrmConfig::myGid

Referenced by XrdFrmConfig().

const char* XrdFrmConfig::myInst
char* XrdFrmConfig::myInstance

Referenced by ConfigProc(), and Configure().

const char* XrdFrmConfig::myName

Referenced by ConfigMon(), and Configure().

const char* XrdFrmConfig::myProg

Referenced by ConfigMon(), Configure(), and Usage().

const char* XrdFrmConfig::mySite

Referenced by Configure(), XrdFrmConfig(), and xsit().

uid_t XrdFrmConfig::myUid

Referenced by XrdFrmConfig().

XrdVersionInfo* XrdFrmConfig::myVersion
private
char* XrdFrmConfig::N2N_Lib
private

Referenced by ConfigN2N(), xnml(), and XrdFrmConfig().

char* XrdFrmConfig::N2N_Parms
private

Referenced by ConfigN2N(), xnml(), and XrdFrmConfig().

int XrdFrmConfig::nextArg

Referenced by ConfigMP(), and Configure().

int XrdFrmConfig::nonXA

Referenced by XrdFrmConfig(), and xspaceBuild().

int XrdFrmConfig::numcArg

Referenced by ConfigMP(), and Configure().

XrdOss* XrdFrmConfig::ossFS

Referenced by Configure().

char* XrdFrmConfig::ossLib
private
char* XrdFrmConfig::ossParms
private

Referenced by Configure(), xoss(), and XrdFrmConfig().

VPInfo* XrdFrmConfig::pathList

Referenced by ConfigMP(), InsertXD(), and XrdFrmConfig().

const char* XrdFrmConfig::pfxDTS
private

Referenced by ConfigProc(), and XrdFrmConfig().

char* XrdFrmConfig::PidPath

Referenced by ConfigPF(), and ConfigXeq().

int XrdFrmConfig::plnDTS
private

Referenced by ConfigProc(), and XrdFrmConfig().

char* XrdFrmConfig::pProg

Referenced by xpol(), xpolprog(), and XrdFrmConfig().

char XrdFrmConfig::pVec[pVecMax]

Referenced by xpolprog().

const int XrdFrmConfig::pVecMax =8
static

Referenced by xpolprog().

int XrdFrmConfig::pVecNum

Referenced by xpolprog(), and XrdFrmConfig().

char* XrdFrmConfig::QPath

Referenced by ConfigPaths(), xqchk(), and XrdFrmConfig().

char* XrdFrmConfig::RemoteRoot
private

Referenced by ConfigN2N(), ConfigXeq(), and XrdFrmConfig().

XrdOucName2Name* XrdFrmConfig::rmt_N2N
private

Referenced by ConfigN2N(), RemotePath(), and XrdFrmConfig().

int XrdFrmConfig::runNew

Referenced by Configure(), and XrdFrmConfig().

int XrdFrmConfig::runOld

Referenced by Configure(), and XrdFrmConfig().

XrdOucTList* XrdFrmConfig::spacList

Referenced by ConfigMP(), and XrdFrmConfig().

SubSys XrdFrmConfig::ssID
private
char* XrdFrmConfig::StopPurge

Referenced by ConfigPaths().

int XrdFrmConfig::Test

Referenced by Configure(), and XrdFrmConfig().

XrdOucName2Name* XrdFrmConfig::the_N2N

Referenced by ConfigN2N(), and XrdFrmConfig().

int XrdFrmConfig::TrackDC
const char* XrdFrmConfig::uInfo
private

Referenced by Usage(), and XrdFrmConfig().

char** XrdFrmConfig::vectArg

Referenced by ConfigMP(), and Configure().

int XrdFrmConfig::Verbose

Referenced by Configure(), and XrdFrmConfig().

const char* XrdFrmConfig::vOpts
private

Referenced by Configure(), and XrdFrmConfig().

struct XrdFrmConfig::VPInfo * XrdFrmConfig::VPList

Referenced by ConfigMP(), Space(), and xspaceBuild().

int XrdFrmConfig::WaitMigr

Referenced by ConfigXeq(), and XrdFrmConfig().

int XrdFrmConfig::WaitPurge

Referenced by Configure(), ConfigXeq(), and XrdFrmConfig().

int XrdFrmConfig::WaitQChk

Referenced by xqchk(), and XrdFrmConfig().

struct XrdFrmConfig::Cmd XrdFrmConfig::xfrCmd[4]
char* XrdFrmConfig::xfrFdir

Referenced by XrdFrmConfig(), and xxfr().

int XrdFrmConfig::xfrFdln

Referenced by XrdFrmConfig(), and xxfr().

int XrdFrmConfig::xfrIN

Referenced by ConfigXfr(), and XrdFrmConfig().

int XrdFrmConfig::xfrMax

Referenced by xcmax(), and XrdFrmConfig().

int XrdFrmConfig::xfrOUT

Referenced by ConfigXfr(), and XrdFrmConfig().


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