CSHelpers

Module containing functions interacting with the CS and useful for the RSS modules.

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getFTS()

Gets all FTS endpoints

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getFileCatalogs()

Gets all storage elements from /Resources/FileCatalogs

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getQueuesRSS()

Gets all queues from /Resources/Sites/<>/<>/CEs/<>/Queues

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getResources()

Gets all resources

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSiteElements(siteName)

Gets all the computing and storage elements for a given site

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getSpaceTokenEndpoints()

Get Space Token Endpoints

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.getStorageElementEndpoint(seName)

Get endpoints of a StorageElement

Parameters:

seName (str) – name of the storage element

Returns:

S_OK() or S_ERROR for historical reasons, if the protocol is SRM, you get ‘httpg://host:port/WSUrl’ For other protocols, you get getEndpoint()

DIRAC.ResourceStatusSystem.Utilities.CSHelpers.warmUp()

gConfig has its own dark side, it needs some warm up phase.