Skip to content

Http cache

Default(protocol_attr, rse_settings, logger=None)

Implementing access to RSEs using the ngarc protocol.

Initializes the object with information about the referred RSE.

Parameters:

Name Type Description Default
props

Properties derived from the RSE Repository

required

_get_path(scope, name)

Transforms the physical file name into the local URI in the referred RSE. Suitable for sites implementoing the RUCIO naming convention.

Parameters:

Name Type Description Default
name

filename

required
scope

scope

required

Returns:

Type Description

RSE specific URI of the physical file

path2pfn(path)

Returns a fully qualified PFN for the file referred by path.

Parameters:

Name Type Description Default
path

The path to the file.

required

Returns:

Type Description

Fully qualified PFN.

put(source, target, source_dir=None, transfer_timeout=None)

Allows to store files inside the referred RSE.

Parameters:

Name Type Description Default
source

Physical file name

required
target

Name of the file on the storage system e.g. with prefixed scope

required

delete(pfn)

Deletes a file from the connected RSE.

Parameters:

Name Type Description Default
pfn

Physical file name

required

rename(pfn, new_pfn)

Allows to rename a file stored inside the connected RSE.

Parameters:

Name Type Description Default
pfn

Current physical file name

required