SEManagerDB

DIRAC FileCatalog Storage Element Manager mix-in class for SE definitions within the FC database

class DIRAC.DataManagementSystem.DB.FileCatalogComponents.SEManager.SEManagerDB.SEManagerDB(database=None)

Bases: SEManagerBase

__init__(database=None)
addSE(seName)
deleteSE(seName, force=True)
findSE(seName)
getSEID(seName)

Get ID for a SE specified by its name

getSEName(seID)

Return the name of the SE.

Refresh list of SEs if not found, an SE might have been added by a different FileCatalog instance.

Parameters:

seID (int) – ID of a storage element

Returns:

S_OK/S_ERROR

setDatabase(database)
setUpdatePeriod(period)