~ubuntu-branches/debian/sid/nordugrid-arc/sid

« back to all changes in this revision

Viewing changes to src/hed/dmc/gfal/DataPointGFAL.h

  • Committer: Package Import Robot
  • Author(s): Mattias Ellert
  • Date: 2012-12-13 16:41:31 UTC
  • mfrom: (1.1.5)
  • Revision ID: package-import@ubuntu.com-20121213164131-0fumka0jar8mxm07
Tags: 2.0.1-1
* 2.0.1 Release
* Drop patches accepted upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
namespace Arc {
12
12
 
13
13
  /**
 
14
   * Provides access to the gLite Grid File Access Library through ARC's API.
 
15
   * Only rfio:// protocol is supported at the moment.
 
16
   *
 
17
   * Notes on env variables:
 
18
   *  - If LFC plugin is installed LFC_HOST must be set (lcgutils bug 322)
 
19
   *  - If SRM is used LCG_GFAL_INFOSYS must be set to BDII host:port
14
20
   *
15
21
   * This class is a loadable module and cannot be used directly. The DataHandle
16
22
   * class loads modules at runtime and should be used instead of this.
31
37
    virtual DataStatus Remove();
32
38
    virtual DataStatus CreateDirectory(bool with_parents=false);
33
39
  private:
 
40
    DataStatus do_stat(const URL& stat_url, FileInfo& file);
 
41
    void log_gfal_err();
34
42
    static void read_file_start(void *object);
35
43
    void read_file();
36
44
    static void write_file_start(void *object);
39
47
    int fd;
40
48
    bool reading;
41
49
    bool writing;
42
 
    SimpleCondition transfer_condition;
 
50
    SimpleCounter transfer_condition;
 
51
    std::string lfc_host;
43
52
  };
44
53
 
45
54
} // namespace Arc