StorageManagerClient
Class that contains client access to the StorageManagerDB handler.
- class DIRAC.StorageManagementSystem.Client.StorageManagerClient.StorageManagerClient(**kwargs)
Bases:
DIRAC.Core.Base.Client.Client
This is the client to the StorageManager service, so even if it is not seen, it exposes all its RPC calls
- __init__(**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
- getClientKWArgs()
Returns a copy of the connection arguments
- 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
- DIRAC.StorageManagementSystem.Client.StorageManagerClient.getFilesToStage(lfnList, jobState=None, checkOnlyTapeSEs=None, jobLog=None)
Utility that returns out of a list of LFNs those files that are offline, and those for which at least one copy is online