当前位置: 首页>>代码示例>>Python>>正文


Python AgentModule.AgentModule类代码示例

本文整理汇总了Python中DIRAC.Core.Base.AgentModule.AgentModule的典型用法代码示例。如果您正苦于以下问题:Python AgentModule类的具体用法?Python AgentModule怎么用?Python AgentModule使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了AgentModule类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

  def __init__( self, *args, **kwargs ):
    ''' c'tor
    '''

    AgentModule.__init__( self, *args, **kwargs )

    self.rsClient = None
开发者ID:quang-ifi,项目名称:DIRAC,代码行数:7,代码来源:SummarizeLogsAgent.py

示例2: __init__

  def __init__(self, *args, **kwargs):
    """ c'tor

        Always call this in the extension agent
    """
    AgentModule.__init__(self, *args, **kwargs)
    TransformationAgentsUtilities.__init__(self)

    self.transClient = None
    self.jobManagerClient = None
    self.transType = []

    self.tasksPerLoop = 50
    self.maxParametricJobs = 20  # will be updated in execute()

    # credentials
    self.shifterProxy = None
    self.credentials = None
    self.credTuple = (None, None, None)

    self.pluginLocation = ''
    self.bulkSubmissionFlag = False

    # for the threading
    self.transQueue = Queue()
    self.transInQueue = []
    self.transInThread = {}
开发者ID:DIRACGrid,项目名称:DIRAC,代码行数:27,代码来源:TaskManagerAgentBase.py

示例3: __init__

  def __init__(self, *args, **kwargs):
    """Initialize the agent, clients, default values."""
    AgentModule.__init__(self, *args, **kwargs)
    self.name = 'MonitorAgents'
    self.setup = "Production"
    self.enabled = False
    self.restartAgents = False
    self.restartExecutors = False
    self.restartServices = False
    self.controlComponents = False
    self.commitURLs = False
    self.diracLocation = "/opt/dirac/pro"

    self.sysAdminClient = SystemAdministratorClient(socket.gethostname())
    self.jobMonClient = JobMonitoringClient()
    self.nClient = NotificationClient()
    self.csAPI = None
    self.agents = dict()
    self.executors = dict()
    self.services = dict()
    self.errors = list()
    self.accounting = defaultdict(dict)

    self.addressTo = ["[email protected]"]
    self.addressFrom = "[email protected]"
    self.emailSubject = "MonitorAgents on %s" % socket.gethostname()
开发者ID:LCDsoft,项目名称:ILCDIRAC,代码行数:26,代码来源:MonitorAgents.py

示例4: __init__

  def __init__( self, *args, **kwargs ):
    """ c'tor
    """
    AgentModule.__init__( self, *args, **kwargs )

    # # data manager
    self.dm = None
    # # transformation client
    self.transClient = None
    # # wms client
    self.wmsClient = None
    # # request client
    self.reqClient = None
    # # file catalog client
    self.metadataClient = None

    # # transformations types
    self.transformationTypes = None
    # # directory locations
    self.directoryLocations = None
    # # transformation metadata
    self.transfidmeta = None
    # # archive periof in days
    self.archiveAfter = None
    # # active SEs
    self.activeStorages = None
    # # transformation log SEs
    self.logSE = None
    # # enable/disable execution
    self.enableFlag = None
开发者ID:DIRACGrid-test,项目名称:DIRAC,代码行数:30,代码来源:TransformationCleaningAgent.py

示例5: __init__

  def __init__(self, *args, **kwargs):
    """ c'tor
    """
    AgentModule.__init__(self, *args, **kwargs)

    self.shifterProxy = None

    # # transformation client
    self.transClient = None
    # # wms client
    self.wmsClient = None
    # # request client
    self.reqClient = None
    # # file catalog client
    self.metadataClient = None

    # # transformations types
    self.transformationTypes = None
    # # directory locations
    self.directoryLocations = ['TransformationDB', 'MetadataCatalog']
    # # transformation metadata
    self.transfidmeta = 'TransformationID'
    # # archive periof in days
    self.archiveAfter = 7
    # # transformation log SEs
    self.logSE = 'LogSE'
    # # enable/disable execution
    self.enableFlag = 'True'

    self.dataProcTTypes = ['MCSimulation', 'Merge']
    self.dataManipTTypes = ['Replication', 'Removal']
开发者ID:DIRACGrid,项目名称:DIRAC,代码行数:31,代码来源:TransformationCleaningAgent.py

示例6: __init__

  def __init__( self, *args, **kwargs ):
    ''' c'tor
    '''
    AgentModule.__init__( self, *args, **kwargs )
    # # replica manager
    self.replicaManager = ReplicaManager()
    # # transformation client
    self.transClient = TransformationClient()
    # # wms client
    self.wmsClient = WMSClient()
    # # request client
    self.requestClient = RequestClient()
    # # file catalog clinet
    self.metadataClient = FileCatalogClient()

    # # placeholders for CS options

    # # transformations types
    self.transformationTypes = None
    # # directory locations
    self.directoryLocations = None
    # # transformation metadata
    self.transfidmeta = None
    # # archive periof in days
    self.archiveAfter = None
    # # active SEs
    self.activeStorages = None
    # # transformation log SEs
    self.logSE = None
    # # enable/disable execution
    self.enableFlag = None
开发者ID:cgrefe,项目名称:DIRAC,代码行数:31,代码来源:TransformationCleaningAgent.py

示例7: __init__

  def __init__( self, *args, **kwargs ):
    """ Constructor.
    
    """

    AgentModule.__init__( self, *args, **kwargs )
    
    self.rsClient = None
开发者ID:IgorPelevanyuk,项目名称:DIRAC,代码行数:8,代码来源:SummarizeLogsAgent.py

示例8: __init__

 def __init__( self, agentName, baseAgentName, properties ):
   AgentModule.__init__( self, agentName, baseAgentName, properties )
   self.addressTo = ''
   self.addressFrom = ''
   self.voName = ''
   self.csAPI = CSAPI()
   self.subject = "CE2CSAgent"
   self.alternativeBDIIs = []
开发者ID:closier,项目名称:DIRAC,代码行数:8,代码来源:CE2CSAgent.py

示例9: __init__

  def __init__(self, *args, **kwargs):
    """ c'tor
    """
    AgentModule.__init__(self, *args, **kwargs)

    self.jobDB = None
    self.pilotDB = None
    self.diracadmin = None
开发者ID:DIRACGrid,项目名称:DIRAC,代码行数:8,代码来源:PilotStatusAgent.py

示例10: __init__

  def __init__( self, *args, **kwargs ):

    AgentModule.__init__( self, *args, **kwargs )

    self.commands = {}
    self.clients = {}

    self.cCaller = None
    self.rmClient = None
开发者ID:JanEbbing,项目名称:DIRAC,代码行数:9,代码来源:CacheFeederAgent.py

示例11: __init__

  def __init__( self, *args, **kwargs ):

    AgentModule.__init__( self, *args, **kwargs )

    # ElementType, to be defined among Site, Resource or Node
    self.sitesToBeChecked    = None
    self.threadPool          = None
    self.siteClient          = None
    self.clients             = {}
开发者ID:marianne013,项目名称:DIRAC,代码行数:9,代码来源:SiteInspectorAgent.py

示例12: __init__

  def __init__( self, agentName, loadName, baseAgentName=False, properties=dict() ):
    """ c'tor

    :param self: self reference
    :param str agentName: name of agent
    :param bool baseAgentName: whatever  
    :param dict properties: whatever else
    """
    AgentModule.__init__( self, agentName, loadName, baseAgentName, properties )
开发者ID:cgrefe,项目名称:DIRAC,代码行数:9,代码来源:FTSCleaningAgent.py

示例13: __init__

  def __init__( self, *args, **kwargs ):
    ''' c'tor
    '''
    AgentModule.__init__( self, *args, **kwargs )

    self.taskManager = None
    self.shifterProxy = ''
    self.transClient = TransformationClient()
    self.transType = []
开发者ID:IgorPelevanyuk,项目名称:DIRAC,代码行数:9,代码来源:TaskManagerAgentBase.py

示例14: __init__

 def __init__( self, *args, **kwargs ):
   """ Constructor
   
   """
       
   AgentModule.__init__( self, *args, **kwargs )  
 
   self.opHelper      = None
   self.stopAgentPath = ''
   self.cfgToUpdate   = '' 
开发者ID:myco,项目名称:VMDIRAC,代码行数:10,代码来源:VirtualMachineConfigUpdater.py

示例15: __init__

 def __init__( self, *args ):
   """
   Initialize the base class and define some extra data members
   """
   AgentModule.__init__( self, *args )
   self.requestDBClient = None
   self.replicaManager = None
   self.maxNumberOfThreads = 4
   self.maxRequestsInQueue = 100
   self.threadPool = None
开发者ID:KrzysztofCiba,项目名称:DIRAC,代码行数:10,代码来源:RemovalAgent.py


注:本文中的DIRAC.Core.Base.AgentModule.AgentModule类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。