FTSJob

FTSJob class representing single FTS request

class DIRAC.DataManagementSystem.Client.FTSJob.FTSJob(fromDict=None)

Bases: object

Class describing one FTS job

Completeness

completeness getter

CreationTime

creation time getter

Error

error getter

FAILEDSTATES = ('Canceled', 'Failed')
FINALSTATES = ('Finished', 'Finisheddirty', 'FinishedDirty', 'Failed', 'Canceled')
FTSGUID

FTSGUID prop

FTSJobID

FTSJobID getter

FTSServer

FTSServer getter

FailedFiles

nb failed files getter

FailedSize

size getter

Files

nb files getter

INITSTATES = ('Submitted', 'Ready', 'Staging')
LastUpdate

last update getter

OperationID

OperationID getter

RequestID

RequestID getter

Size

size getter

SourceSE

source SE getter

SourceToken

source token getter

Status

status prop

SubmitTime

request’s submission time getter

TRANSSTATES = ('Active', 'Hold')
TargetSE

target SE getter

TargetToken

target token getter

__init__(fromDict=None)

c’tor

Parameters:
  • self – self reference
  • fromDict (dict) – data dict
addFile(ftsFile)

add :ftsFile: to FTS job

fileStatusList()

get list of files statuses

finalize()

register successfully transferred files

missingSourceErrors = [<_sre.SRE_Pattern object>, <_sre.SRE_Pattern object>, <_sre.SRE_Pattern object at 0x3253880>, <_sre.SRE_Pattern object at 0x32e7ee0>, <_sre.SRE_Pattern object at 0x4360880>]
monitorFTS(ftsVersion, command='glite-transfer-status', full=False)

Wrapper calling the proper method for a given version of FTS

monitorFTS2(command='glite-transfer-status', full=False)

monitor fts job

monitorFTS3(full=False)
subFile(ftsFile)

remove ftsFile from this job

submitFTS(ftsVersion, command='glite-transfer-submit', pinTime=False)

Wrapper calling the proper method for a given version of FTS

submitFTS2(command='glite-transfer-submit', pinTime=False)

submit fts job using FTS2 client

submitFTS3(pinTime=False)

submit fts job using FTS3 rest API

static tableDesc()

get table desc

toJSON()

dump to JSON format

toSQL()

prepare SQL INSERT or UPDATE statement

Returns:str with SQL fragment
DIRAC.DataManagementSystem.Client.FTSJob.overlap(s1, s2)

Method returning the common end of 2 strings