xrootd
XrdFrcReqAgent.hh
Go to the documentation of this file.
1 #ifndef __FRCREQAGENT_H__
2 #define __FRCREQAGENT_H__
3 /******************************************************************************/
4 /* */
5 /* X r d F r c R e q A g e n t . h h */
6 /* */
7 /* (c) 2010 by the Board of Trustees of the Leland Stanford, Jr., University */
8 /* All Rights Reserved */
9 /* Produced by Andrew Hanushevsky for Stanford University under contract */
10 /* DE-AC02-76-SFO0515 with the Department of Energy */
11 /******************************************************************************/
12 
13 #include "XrdFrc/XrdFrcReqFile.hh"
14 #include "XrdFrc/XrdFrcRequest.hh"
15 
17 {
18 public:
19 
20 void Add(XrdFrcRequest &Request);
21 
22 void Del(XrdFrcRequest &Request);
23 
24 int List(XrdFrcRequest::Item *Items, int Num);
25 int List(XrdFrcRequest::Item *Items, int Num, int Prty);
26 
27 int NextLFN(char *Buff, int Bsz, int Prty, int &Offs);
28 
29 void Ping(const char *Msg=0);
30 
31 int Start(char *aPath, int aMode);
32 
33  XrdFrcReqAgent(const char *Me, int qVal);
35 
36 private:
37 
38 static char *c2sFN;
39 
41 const char *Persona;
42 const char *pingMsg;
43 const char *myName;
44 int theQ;
45 };
46 #endif