Bases: rucio.client.baseclient.BaseClient
RSE client class for working with rucio RSEs
Sends the request to create a new protocol for the given RSE.
Parameters: |
|
---|---|
Returns: | True if protocol was created successfully else False. |
Raises: |
|
Sends the request to create a new RSE.
Parameters: |
|
---|---|
Returns: | True if location was created successfully else False. |
Raises Duplicate: | |
if rse already exists. |
Sends the request to add a RSE attribute.
Parameters: |
|
---|---|
Returns: | True if RSE attribute was created successfully else False. |
Raises Duplicate: | |
if RSE attribute already exists. |
Deletes matching protocols from RSE. Protocols using the same identifier can be distinguished by hostname and port.
Parameters: |
|
---|---|
Returns: | True if success. |
Raises: |
|
Sends the request to delete a rse.
Parameters: | rse – the name of the rse. |
---|---|
Returns: | True if location was created successfully else False. |
Sends the request to delete a RSE attribute.
Parameters: |
|
---|---|
Returns: | True if RSE attribute was deleted successfully else False. |
Returns protocol information. Parameter comibantions are: (operation OR default) XOR protocol.
Parameters: |
|
---|---|
Returns: | A list with details about each matching protocol. |
Raises: |
|
Returns details about the referred RSE.
Parameters: | rse – Name of the referred RSE |
---|---|
Returns: | A dict containing all attributes of the referred RSE |
Raises RSENotFound: | |
if the referred RSE was not found in the database |
Get RSE limits.
Parameters: | rse – The RSE name. |
---|---|
Returns: | True if successful, otherwise false. |
Get RSE usage information.
Parameters: |
|
---|---|
Returns: | True if successful, otherwise false. |
Sends the request to get RSE attributes.
Parameters: | rse – The RSE name. |
---|---|
Returns: | True if RSE attribute was created successfully else False. |
List RSE usage history information.
Parameters: |
|
---|---|
Returns: | list of dictionnaries. |
Sends the request to list all rucio locations(RSEs).
Rse_expression: | RSE Expression to use as filter. |
---|---|
Returns: | a list containing the names of all rucio locations. |
Set RSE limit information.
Parameters: |
|
---|---|
Returns: | True if successful, otherwise false. |
Set RSE usage information.
Parameters: |
|
---|---|
Returns: | True if successful, otherwise false. |
Swaps the priorities of the provided operation.
Parameters: |
|
---|---|
Returns: | True if success. |
Raises: |
|
Updates matching protocols from RSE. Protocol using the same identifier can be distinguished by hostname and port.
Parameters: |
|
---|---|
Returns: | True if success. |
Raises: |
|
Bases: object
This class is virtual and acts as a base to inherit new protocols from. It further provides some common functionality which applies for the amjority of the protocols.
Establishes the actual connection to the referred RSE.
Raises RSEAccessDenied: | |
---|---|
if no connection could be established. |
Deletes a file from the connected RSE.
Parameters: | path – path to the to be deleted file |
---|---|
Raises: |
|
Checks if the requested file is known by the referred RSE.
Parameters: | path – Physical file name |
---|---|
Returns: | True if the file exists, False if it doesn’t |
Raises SourceNotFound: | |
if the source file was not found on the referred storage. |
Provides access to files stored inside connected the RSE.
Parameters: |
|
---|---|
Raises: |
|
Get RSE space usage information.
Returns: | a list with dict containing ‘totalsize’ and ‘unusedsize’ |
---|---|
Raises ServiceUnavailable: | |
if some generic error occured in the library. |
Retruns a fully qualified PFN for the file referred by path.
Parameters: | path – The path to the file. |
---|---|
Returns: | Fully qualified PFN. |
Splits the given PFN into the parts known by the protocol. It is also checked if the provided protocol supportes the given PFNs.
Parameters: | pfns – a list of a fully qualified PFNs |
---|---|
Returns: | dic with PFN as key and a dict with path and name as value |
Raises RSEFileNameNotSupported: | |
if the provided PFN doesn’t match with the protocol settings |
Allows to store files inside the referred RSE.
Parameters: |
|
---|---|
Raises: |
|
Allows to rename a file stored inside the connected RSE.
Parameters: |
|
---|---|
Raises: |
|
Returns the stats of a file.
Parameters: | path – path to file |
---|---|
Raises: |
|
Returns: | a dict with two keys, filesize and adler32 of the file provided in path. |