本文整理汇总了Python中WMCore.WMBS.WMBSBase.WMBSBase类的典型用法代码示例。如果您正苦于以下问题:Python WMBSBase类的具体用法?Python WMBSBase怎么用?Python WMBSBase使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WMBSBase类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(
self,
spec=None,
owner="unknown",
dn="unknown",
group="unknown",
owner_vogroup="DEFAULT",
owner_vorole="DEFAULT",
name=None,
task=None,
wfType=None,
id=-1,
):
WMBSBase.__init__(self)
WMWorkflow.__init__(
self,
spec=spec,
owner=owner,
dn=dn,
group=group,
owner_vogroup=owner_vogroup,
owner_vorole=owner_vorole,
name=name,
task=task,
wfType=wfType,
)
if self.dn == "unknown":
self.dn = owner
self.id = id
return
示例2: __init__
def __init__(self, lfn = None, id = -1, size = None,
events = None, checksums = {}, parents = None, locations = None,
status = "NOTUPLOADED"):
WMBSBase.__init__(self)
WMFile.__init__(self, lfn = lfn, size = size, events = events,
checksums = checksums, parents = parents, merged = True)
self.setdefault("status", status)
self.setdefault("id", id)
# Parameters for the algorithm
self.setdefault("appName", None)
self.setdefault("appVer", None)
self.setdefault("appFam", None)
self.setdefault("psetHash", None)
self.setdefault("configContent", None)
self.setdefault("datasetPath", None)
self.setdefault("valid_status", None)
if locations == None:
self.setdefault("newlocations", set())
else:
self.setdefault("newlocations", self.makeset(locations))
# The WMBS base class creates a DAO factory for WMBS, we'll need to
# overwrite that so we can use the factory for DBSBuffer objects.
self.daoFactory = DAOFactory(package = "WMComponent.DBSBuffer.Database",
logger = self.logger,
dbinterface = self.dbi)
#Remove reference to WMBS daofactory to prevent confusion
self.daofactory = self.daoFactory
return
示例3: __init__
def __init__(self, spec = None, owner = None, dn = None, group = None,
owner_vogroup = '', owner_vorole = '',
name = None, task = None, wfType = None, id = -1):
WMBSBase.__init__(self)
WMWorkflow.__init__(self, spec = spec, owner = owner, dn = dn,
group = group, owner_vogroup = owner_vogroup,
owner_vorole = owner_vorole, name = name,
task = task, wfType = wfType)
if not self.dn: self.dn = owner
self.id = id
return
示例4: __init__
def __init__(self, subscription = None, jobs = None, id = -1, uid = None, location = None):
WMBSBase.__init__(self)
WMJobGroup.__init__(self, subscription=subscription, jobs = jobs)
self.id = id
self.lastUpdate = None
self.uid = uid
if location != None:
self.setSite(location)
return
示例5: __init__
def __init__(self, spec = None, owner = "unknown", dn = "unknown",
group = "unknown", owner_vogroup = "DEFAULT",
owner_vorole = "DEFAULT", name = None, task = None,
wfType = None, id = -1, alternativeFilesetClose = False):
WMBSBase.__init__(self)
WMWorkflow.__init__(self, spec = spec, owner = owner, dn = dn,
group = group, owner_vogroup = owner_vogroup,
owner_vorole = owner_vorole, name = name,
task = task, wfType = wfType)
if self.dn == "unknown":
self.dn = owner
self.id = id
self.alternativeFilesetClose = alternativeFilesetClose
return
示例6: __init__
def __init__(self, fileset = None, workflow = None, id = -1,
split_algo = "FileBased", type = "Processing"):
WMBSBase.__init__(self)
# If a fileset or workflow isn't passed in the base class will create
# empty non-WMBS filesets and workflows. We want WMBS filesets and
# workflows so we'll create those here.
if fileset == None:
fileset = Fileset()
if workflow == None:
workflow = Workflow()
WMSubscription.__init__(self, fileset = fileset, workflow = workflow,
split_algo = split_algo, type = type)
self.setdefault("id", id)
self.bulkDeleteLimit = 500
return
示例7: __init__
def __init__(self, lfn = "", id = -1, size = 0, events = 0, checksums = {},
parents = None, locations = None, first_event = 0,
last_event = 0, merged = True):
WMBSBase.__init__(self)
WMFile.__init__(self, lfn = lfn, size = size, events = events,
checksums = checksums, parents = parents, merged = merged)
if locations == None:
self.setdefault("newlocations", set())
else:
if type(locations) == str:
self.setdefault("newlocations", set())
self['newlocations'].add(locations)
else:
self.setdefault("newlocations", locations)
# overwrite the default value set from the WMFile
self["first_event"] = first_event
self["last_event"] = last_event
self.setdefault("id", id)
self['locations'] = set()
示例8: __init__
def __init__(self, name = None, files = None, id = None):
"""
___init___
jobgroup object is used to determine the workflow.
inputFiles is a list of files that the job will process.
"""
WMBSBase.__init__(self)
WMJob.__init__(self, name = name, files = files)
self["id"] = id
self["jobgroup"] = None
self["couch_record"] = None
self["attachments"] = {}
self["cache_dir"] = None
self["sandbox"] = None
self['fwjr'] = None
self["mask"] = Mask()
self['custom'] = {} # For local add-ons that we want to send to JSON
return
示例9: __init__
def __init__(self, lfn=None, id=-1, size=None,
events=None, checksums=None, parents=None, locations=None,
status="NOTUPLOADED", inPhedex=0, workflowId=None, prep_id=None):
checksums = checksums or {}
WMBSBase.__init__(self)
WMFile.__init__(self, lfn=lfn, size=size, events=events,
checksums=checksums, parents=parents, merged=True)
self.setdefault("status", status)
self.setdefault("in_phedex", inPhedex)
self.setdefault("id", id)
self.setdefault("workflowId", workflowId)
# Parameters for the algorithm
self.setdefault("appName", None)
self.setdefault("appVer", None)
self.setdefault("appFam", None)
self.setdefault("psetHash", None)
self.setdefault("configContent", None)
self.setdefault("datasetPath", None)
self.setdefault("processingVer", None)
self.setdefault("acquisitionEra", None)
self.setdefault("validStatus", None)
self.setdefault("globalTag", None)
self.setdefault("datasetParent", None)
self.setdefault("prep_id", None)
if locations is None:
self.setdefault("newlocations", set())
else:
self.setdefault("newlocations", self.makeset(locations))
# The WMBS base class creates a DAO factory for WMBS, we'll need to
# overwrite that so we can use the factory for DBSBuffer objects.
self.daofactory = DAOFactory(package="WMComponent.DBS3Buffer",
logger=self.logger,
dbinterface=self.dbi)
return
示例10: __init__
def __init__(self):
WMMask.__init__(self)
WMBSBase.__init__(self)
return