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=nullptr) 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

◆ open()

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 8 of file GsiFTPStorageMaker.cc.

11  {
14  int localfd = RemoteFile::local(f->tempDir(), temp);
15  std::string lurl = "file://" + temp;
16  std::string newurl((proto == "sfn" ? "gsiftp" : proto) + ":" + path);
17  const char *ftpopts[] = {"globus-url-copy", newurl.c_str(), lurl.c_str(), nullptr};
18  return RemoteFile::get(localfd, temp, (char **)ftpopts, mode);
19  }

References f, RemoteFile::get(), StorageFactory::get(), RemoteFile::local(), ALCARECOPromptCalibProdSiPixelAli0T_cff::mode, castor_dqm_sourceclient_file_cfg::path, AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.

f
double f[11][100]
Definition: MuScleFitUtils.cc:78
ALCARECOPromptCalibProdSiPixelAli0T_cff.mode
mode
Definition: ALCARECOPromptCalibProdSiPixelAli0T_cff.py:96
groupFilesInBlocks.temp
list temp
Definition: groupFilesInBlocks.py:142
StorageFactory::get
static const StorageFactory * get(void)
Definition: StorageFactory.cc:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RemoteFile::get
static std::unique_ptr< Storage > get(int localfd, const std::string &name, char **cmd, int mode)
Definition: RemoteFile.cc:78
StorageFactory
Definition: StorageFactory.h:13
RemoteFile::local
static int local(const std::string &tmpdir, std::string &temp)
Definition: RemoteFile.cc:48
castor_dqm_sourceclient_file_cfg.path
path
Definition: castor_dqm_sourceclient_file_cfg.py:37