MatcherClient

Module that contains simple client access to Matcher service

class DIRAC.WorkloadManagementSystem.Client.MatcherClient.MatcherClient(**kwargs)

Bases: DIRAC.Core.Base.Client.Client

Exposes the functionality available in the WorkloadManagement/MatcherHandler

This inherits the DIRAC base Client for direct execution of server functionality. The following methods are available (although not visible here).

__init__(**kwargs)

Simple constructor

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
getActiveTaskQueues(**kwargs)

Return all task queues

Automatically created for the service function export_getActiveTaskQueues()

getMatchingTaskQueues(self, resourceDict, **kwargs)

Return all task queues that match the resourceDict

Automatically created for the service function export_getMatchingTaskQueues()

Parameters:resourceDict – resourceDict
getServer()

Getter for the server url. Useful ?

matchAndGetTaskQueue(resourceDict, **kwargs)

Return matching task queues

Automatically created for the service function export_matchAndGetTaskQueue()

Parameters:resourceDict – resourceDict
requestJob(self, resourceDescription, **kwargs)

Serve a job to the request of an agent which is the highest priority one matching the agent’s site capacity

Automatically created for the service function export_requestJob()

Parameters:resourceDescription – resourceDescription
setServer(url)

Set the server URL used by default

Parameters:url – url of the service
setTimeout(**kwargs)

Specify the timeout of the call. Forwarded to RPCClient

param int timeout:
 timeout for the RPC calls

Deprecated: Please use self._getRPC(timeout) or self.timeout=<value>