RegisterFile

mod:RegisterFile

synopsis:register operation handler

RegisterFile operation handler

class DIRAC.DataManagementSystem.Agent.RequestOperations.RegisterFile.RegisterFile(operation=None, csPath=None)

Bases: DIRAC.RequestManagementSystem.private.OperationHandlerBase.OperationHandlerBase

class RegisterOperation

RegisterFile operation handler

Parameters:
  • self – self reference
  • operation (Operation) – Operation instance
  • csPath (str) – CS path for this handler
__init__(operation=None, csPath=None)

c’tor

getProxyForLFN(lfn)

get proxy for lfn

Parameters:lfn (str) – LFN
Returns:S_ERROR or S_OK( “/path/to/proxy/file” )
getWaitingFilesList()

prepare waiting files list, update Attempt, filter out MaxAttempt

makeProperty(name, value, readOnly=False)

Add property :name: to class

This also creates a private :_name: attribute If you want to make read only property, set :readOnly: flag to True :warn: could raise AttributeError if :name: of :_name: is already defined as an attribute

classmethod rssClient()

ResourceStatusClient getter

rssSEStatus(se, status, retries=2)

check SE :se: for status :status:

Parameters:
  • se (str) – SE name
  • status (str) – RSS status
setOperation(operation)

operation and request setter

Parameters:operation (Operation) – operation instance
Raises:TypeError – if operation in not an instance of Operation
shifter