CMS 3D CMS Logo

List of all members | Public Member Functions
GsiFTPStorageMaker Class Reference
Inheritance diagram for GsiFTPStorageMaker:
StorageMaker

Public Member Functions

std::unique_ptr< Storageopen (const std::string &proto, const std::string &path, int mode, const AuxSettings &) const override
 
- Public Member Functions inherited from StorageMaker
virtual bool check (const std::string &proto, const std::string &path, const AuxSettings &aux, IOOffset *size=0) const
 
virtual void stagein (const std::string &proto, const std::string &path, const AuxSettings &aux) const
 
 StorageMaker ()=default
 
virtual ~StorageMaker ()=default
 

Detailed Description

Definition at line 6 of file GsiFTPStorageMaker.cc.

Member Function Documentation

std::unique_ptr<Storage> GsiFTPStorageMaker::open ( const std::string &  proto,
const std::string &  path,
int  mode,
const AuxSettings  
) const
inlineoverridevirtual

Implements StorageMaker.

Definition at line 9 of file GsiFTPStorageMaker.cc.

References DEFINE_EDM_PLUGIN, f, RemoteFile::get(), StorageFactory::get(), RemoteFile::local(), AlCaHLTBitMon_QueryRunRegistry::string, groupFilesInBlocks::temp, and StorageFactory::tempDir().

13  {
16  int localfd = RemoteFile::local (f->tempDir(), temp);
17  std::string lurl = "file://" + temp;
18  std::string newurl ((proto == "sfn" ? "gsiftp" : proto) + ":" + path);
19  const char *ftpopts [] = { "globus-url-copy", newurl.c_str (), lurl.c_str (), nullptr };
20  return RemoteFile::get (localfd, temp, (char **) ftpopts, mode);
21  }
static std::unique_ptr< Storage > get(int localfd, const std::string &name, char **cmd, int mode)
Definition: RemoteFile.cc:90
static int local(const std::string &tmpdir, std::string &temp)
Definition: RemoteFile.cc:55
static const StorageFactory * get(void)
std::string tempDir(void) const
double f[11][100]