FTS3File

class DIRAC.DataManagementSystem.Client.FTS3File.FTS3File

Bases: DIRAC.DataManagementSystem.private.FTS3Utilities.FTS3Serializable

This class represents an a File on which a given Operation (Transfer, Staging) should be executed

ALL_STATES = ['New', 'Submitted', 'Ready', 'Active', 'Finished', 'Canceled', 'Staging', 'Failed', 'Defunct', 'Started']
FINAL_STATES = ['Finished', 'Defunct']
FTS_FAILED_STATES = ['Canceled', 'Failed']
FTS_FINAL_STATES = ['Finished', 'Canceled', 'Failed']
FTS_SUCCESS_STATES = ['Finished']
INIT_STATE = 'New'
__init__()

x.__init__(…) initializes x; see help(type(x)) for signature

static fromRMSFile(rmsFile, targetSE)

Returns an FTS3File constructed from an RMS File. It takes the value of LFN, rmsFileID, checksum and Size

Parameters:
  • rmsFile – the RMS File to use as source
  • targetSE – the SE target
Returns:

an FTS3File instance

toJSON(forPrint=False)

Returns the JSON formated string

Parameters:forPrint – if set to True, we don’t include the ‘magic’ arguments used for rebuilding the object