xrootd
Classes | Public Types | Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | Private Attributes
XrdFrmConfig Class Reference

#include <XrdFrmConfig.hh>

Collaboration diagram for XrdFrmConfig:
Collaboration graph
[legend]

List of all members.

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)
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 * 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 monStage
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

Static Public Attributes

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

Private Member Functions

int ConfigCks ()
XrdOucMsubsConfigCmd (const char *cname, char *cdata)
int ConfigMum (XrdFrmConfigSE &theSE)
int ConfigN2N ()
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 xpol ()
int xpolprog ()
int xqchk ()
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 * LocalRoot
char * RemoteRoot
XrdOucStreamcFile
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, CksMan, CksCfg, and XrdCksConfig::Configure().

Referenced by Configure().

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

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

Referenced by ConfigXfr().

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]
int XrdFrmConfig::ConfigPaths ( ) [private]
void XrdFrmConfig::ConfigPF ( const char *  pFN) [private]

References Mode, S_IRUSR, S_IWUSR, S_IRGRP, S_IROTH, PidPath, myInst, open(), Say, write(), and close.

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]
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 EPNAME, pathList, XrdFrmConfig::VPInfo::Dir, and DEBUG.

Referenced by ConfigMP().

int XrdFrmConfig::LocalPath ( const char *  oldp,
char *  newp,
int  newpsz 
)
int XrdFrmConfig::LogicalPath ( const char *  oldp,
char *  newp,
int  newpsz 
)
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]
int XrdFrmConfig::xcks ( int  isOfs = 0) [private]
int XrdFrmConfig::xcmax ( ) [private]
int XrdFrmConfig::xcnsd ( ) [private]

References cFile, XrdOucStream::GetWord(), Say, and XrdFrmCns::Init().

Referenced by ConfigXeq().

int XrdFrmConfig::xcopy ( ) [private]
int XrdFrmConfig::xcopy ( int &  TLim) [private]
int XrdFrmConfig::xdpol ( ) [private]
int XrdFrmConfig::xitm ( const char *  What,
int &  tDest 
) [private]

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

Referenced by ConfigXeq().

int XrdFrmConfig::xmon ( ) [private]
int XrdFrmConfig::xnml ( ) [private]
int XrdFrmConfig::xpol ( ) [private]
int XrdFrmConfig::xpolprog ( ) [private]
int XrdFrmConfig::xqchk ( ) [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

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

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

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

Referenced by XrdFrmConfig(), and ConfigCks().

const int XrdFrmConfig::cmdAlloc = 0x0001 [static]

Referenced by xcopy().

Referenced by XrdFrmConfig(), and ConfigOTO().

Referenced by XrdFrmConfig(), and ConfigOTO().

const int XrdFrmConfig::cmdMDP = 0x0002 [static]

Referenced by xcopy().

const int XrdFrmConfig::cmdStats = 0x0004 [static]

Referenced by xcopy().

Referenced by XrdFrmConfig(), and ConfigPaths().

char* XrdFrmConfig::ConfigFN [private]

Referenced by xpol().

Referenced by XrdFrmConfig(), and xdpol().

Referenced by XrdFrmConfig(), and xxfr().

Referenced by XrdFrmConfig(), and Configure().

Referenced by ConfigXeq().

Referenced by XrdFrmConfig(), and ConfigXeq().

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

Referenced by XrdFrmConfig(), and Configure().

char* XrdFrmConfig::LocalRoot [private]

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

const char* XrdFrmConfig::lockFN

Referenced by XrdFrmConfig(), ConfigXfr(), and xmon().

Referenced by XrdFrmConfig(), and ConfigMss().

Referenced by ConfigMss().

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

Referenced by XrdFrmConfig(), and Configure().

Referenced by XrdFrmConfig().

const char* XrdFrmConfig::myInst

Referenced by Configure(), and ConfigProc().

const char* XrdFrmConfig::myName

Referenced by Configure().

const char* XrdFrmConfig::myProg

Referenced by Configure(), and Usage().

Referenced by XrdFrmConfig().

char* XrdFrmConfig::N2N_Lib [private]

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

char* XrdFrmConfig::N2N_Parms [private]

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

Referenced by Configure(), and ConfigMP().

Referenced by XrdFrmConfig(), and xspaceBuild().

Referenced by Configure(), and ConfigMP().

Referenced by Configure().

char* XrdFrmConfig::ossLib [private]

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

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

const char* XrdFrmConfig::pfxDTS [private]

Referenced by XrdFrmConfig(), and ConfigProc().

Referenced by ConfigPF(), and ConfigXeq().

int XrdFrmConfig::plnDTS [private]

Referenced by XrdFrmConfig(), and ConfigProc().

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

Referenced by xpolprog().

const int XrdFrmConfig::pVecMax = 8 [static]

Referenced by xpolprog().

Referenced by XrdFrmConfig(), and xpolprog().

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

char* XrdFrmConfig::RemoteRoot [private]

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

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

Referenced by XrdFrmConfig(), and Configure().

Referenced by XrdFrmConfig(), and Configure().

Referenced by XrdFrmConfig(), and ConfigMP().

Referenced by ConfigPaths().

Referenced by XrdFrmConfig(), and Configure().

Referenced by XrdFrmConfig(), and ConfigN2N().

const char* XrdFrmConfig::uInfo [private]

Referenced by XrdFrmConfig(), and Usage().

Referenced by Configure(), and ConfigMP().

Referenced by XrdFrmConfig(), and Configure().

const char* XrdFrmConfig::vOpts [private]

Referenced by XrdFrmConfig(), and Configure().

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

Referenced by XrdFrmConfig(), and ConfigXeq().

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

Referenced by XrdFrmConfig(), and xqchk().

Referenced by XrdFrmConfig(), ConfigXfr(), and xcopy().

Referenced by XrdFrmConfig(), and ConfigXfr().

Referenced by XrdFrmConfig(), and xcmax().

Referenced by XrdFrmConfig(), and ConfigXfr().


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