|
xrootd
|
00001 #ifndef __FRCREQAGENT_H__ 00002 #define __FRCREQAGENT_H__ 00003 /******************************************************************************/ 00004 /* */ 00005 /* X r d F r c R e q A g e n t . h h */ 00006 /* */ 00007 /* (c) 2010 by the Board of Trustees of the Leland Stanford, Jr., University */ 00008 /* All Rights Reserved */ 00009 /* Produced by Andrew Hanushevsky for Stanford University under contract */ 00010 /* DE-AC02-76-SFO0515 with the Department of Energy */ 00011 /******************************************************************************/ 00012 00013 #include "XrdFrc/XrdFrcReqFile.hh" 00014 #include "XrdFrc/XrdFrcRequest.hh" 00015 00016 class XrdFrcReqAgent 00017 { 00018 public: 00019 00020 void Add(XrdFrcRequest &Request); 00021 00022 void Del(XrdFrcRequest &Request); 00023 00024 int List(XrdFrcRequest::Item *Items, int Num); 00025 int List(XrdFrcRequest::Item *Items, int Num, int Prty); 00026 00027 int NextLFN(char *Buff, int Bsz, int Prty, int &Offs); 00028 00029 void Ping(const char *Msg=0); 00030 00031 int Start(char *aPath, int aMode); 00032 00033 XrdFrcReqAgent(const char *Me, int qVal); 00034 ~XrdFrcReqAgent() {} 00035 00036 private: 00037 00038 static char *c2sFN; 00039 00040 XrdFrcReqFile *rQueue[XrdFrcRequest::maxPQE]; 00041 const char *Persona; 00042 const char *pingMsg; 00043 const char *myName; 00044 int theQ; 00045 }; 00046 #endif
1.7.5