ServerUtils

Provide uniform interface to backend for local and remote clients (ie Director Agents)

DIRAC.WorkloadManagementSystem.Client.ServerUtils.getDBOrClient(DB, serverName)

Tries to instantiate the DB object and returns it if we manage to connect to the DB, otherwise returns a Client of the server

DIRAC.WorkloadManagementSystem.Client.ServerUtils.getJobDB()
DIRAC.WorkloadManagementSystem.Client.ServerUtils.getPilotAgentsDB()
DIRAC.WorkloadManagementSystem.Client.ServerUtils.getTaskQueueDB()