xrootd
XrdFrmMigrate.hh
Go to the documentation of this file.
1 #ifndef __FRMMIGRATE__
2 #define __FRMMIGRATE__
3 /******************************************************************************/
4 /* */
5 /* X r d F r m M i g r a t e . 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 <time.h>
14 #include <sys/types.h>
15 
16 class XrdFrmFileset;
17 class XrdFrmXfrQueue;
18 class XrdOucTList;
19 
21 {
22 public:
23 
24 static void Display();
25 
26 static void Queue(XrdFrmFileset *sP);
27 
28 static void Migrate(int doinit=1);
29 
32 
33 private:
34 
35 // Methods
36 //
37 static void Add(XrdFrmFileset *fsp);
38 static int Advance();
39 static void Defer(XrdFrmFileset *sP);
40 static const char *Eligible(XrdFrmFileset *sP, time_t &xTime);
41 static void Scan();
42 
43 // Static Variables
44 
46 static int numMig;
47 };
48 #endif