BundleDeliveryClient

Client for interacting with Framework/BundleDelivery service

class DIRAC.FrameworkSystem.Client.BundleDeliveryClient.BundleDeliveryClient(transferClient=False, **kwargs)

Bases: DIRAC.Core.Base.Client.Client

__init__(transferClient=False, **kwargs)

C’tor.

Parameters

kwargs – just stored as an attribute and passed when creating the RPCClient

property call

To be removed once we’re sure self.call has been removed

Type

Deprecated

executeRPC(*parms, **kws)

This method extracts some parameters from kwargs that are used as parameter of the constructor or RPCClient. Unfortunately, only a few of all the available parameters of BaseClient are exposed.

Parameters
  • rpc – if an RPC client is passed, use that one

  • timeout – we can change the timeout on a per call bases. Default is self.timeout

  • url – We can specify which url to use

getCAs()

This method can be used to create the CAs. If the file can not be created, it will be downloaded from the server.

Returns

S_OK(str)/S_ERROR()

getCLRs()

This method can be used to create the CRLs. If the file can not be created, it will be downloaded from the server.

Returns

S_OK(str)/S_ERROR()

getListOfBundles(cls, **kwargs)

Automatically created for the service function export_getListOfBundles()

getServer()

Getter for the server url. Useful ?

httpsClient

alias of DIRAC.Core.Tornado.Client.TornadoClient.TornadoClient

setServer(url)

Set the server URL used by default

Parameters

url – url of the service

syncCAs()

Synchronize CAs

Returns

S_OK(bool)/S_ERROR()

syncCRLs()

Synchronize CRLs

Returns

S_OK(bool)/S_ERROR()

syncDir(bundleID, dirToSyncTo)

Synchronize directory

Parameters
  • bundleID (str) – bundle ID

  • dirToSyncTo (str) – path to sync directory

Returns

S_OK(bool)/S_ERROR()