ARC SDK
DataDeliveryLocalComm.h
1 #ifndef DATADELIVERYLOCALCOMM_H_
2 #define DATADELIVERYLOCALCOMM_H_
3 
4 #include <arc/Run.h>
5 
6 #include "DataDeliveryComm.h"
7 
8 namespace DataStaging {
9 
11 
16  public:
17 
21  virtual ~DataDeliveryLocalComm();
22 
24  virtual void PullStatus();
25 
27  static bool CheckComm(DTR_ptr dtr, std::vector<std::string>& allowed_dirs);
28 
30  virtual operator bool() const { return (child_ != NULL); };
32  virtual bool operator!() const { return (child_ == NULL); };
33 
34  private:
36  Arc::Run* child_;
38  std::string stdin_;
40  std::string tmp_proxy_;
42  Arc::Time last_comm;
43  };
44 
45 } // namespace DataStaging
46 
47 #endif /* DATADELIVERYLOCALCOMM_H_ */