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


Python ServiceNode.__init__方法代码示例

本文整理汇总了Python中mpx.service.ServiceNode.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python ServiceNode.__init__方法的具体用法?Python ServiceNode.__init__怎么用?Python ServiceNode.__init__使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mpx.service.ServiceNode的用法示例。


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

示例1: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     UTC().configure({'name':'UTC','parent':self})
     Local().configure({'name':'local','parent':self})
     self._tz_mtime = None
     self._in_err = False
     self._scheduled = None
开发者ID:mcruse,项目名称:monotone,代码行数:9,代码来源:__init__.py

示例2: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
    def __init__(self):
        ServiceNode.__init__(self)
        self.debug = 0
        self._registered = ()
        self._did_save = 0
        self._post_configuration=0

        if self.debug: print 'Initialized _registered to [] for %s.' % self
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:garbage_collector.py

示例3: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     self._added_thread_count = 0
     self._file_request_handler = None
     self.psp_handler = None
     self.authenticator = None
     self.request_responder = None
     self.request_manager = _request.RequestSingleton().request_manager
开发者ID:mcruse,项目名称:monotone,代码行数:10,代码来源:__init__.py

示例4: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     self._lock = Lock()
     self._started = 0
     self._alarm = [] # can have a whole MESS o' alarms at startup...
     self._scheduled = None
     self.trigger_node_url_posn = None # allow source stamping
     self.trigger_node_msg_posn = None # allow source stamping
     self._waiting_alarm_sid = None
     ServiceNode.__init__(self)
开发者ID:mcruse,项目名称:monotone,代码行数:11,代码来源:exporter.py

示例5: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     self.transportClass = None # can't be set until we configure security
     self.was_enabled = 0
     self.enabled = 0
     self.start_count = 0
     self.stop_count = 0
     self.state = self.STOPPED
     self.debug = 0
     self.__rna_thread = None
     return
开发者ID:mcruse,项目名称:monotone,代码行数:13,代码来源:rna.py

示例6: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     self._tzklass = tzinfo.TZInfo
     year = {'name':'year','index':0}
     month = {'name':'month','index':1}
     day = {'name':'day','index':2}
     hour = {'name':'hour','index':3}
     minute  = {'name':'minute','index':4}
     second  = {'name':'second','index':5}
     weekday = {'name':'weekday','index':6}
     ta = [year,month,day,hour,minute,weekday,second]
     for x in ta:
         y = TimeAttribute(x['index'])
         y.configure({'name':x['name'],'parent':self})
     milliseconds = MilliSeconds()
     milliseconds.configure({'name':'milliseconds','parent':self})   
     return
开发者ID:mcruse,项目名称:monotone,代码行数:19,代码来源:time_zone.py

示例7: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     self.critical_data = self._CriticalData()
开发者ID:mcruse,项目名称:monotone,代码行数:5,代码来源:network.py

示例8: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     self.running = 0
     ServiceNode.__init__(self)
开发者ID:mcruse,项目名称:monotone,代码行数:5,代码来源:service.py

示例9: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     EventProducerMixin.__init__(self)
     self.forwarder = self.LogEventFowarder(self)
     return
开发者ID:mcruse,项目名称:monotone,代码行数:7,代码来源:log.py

示例10: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
开发者ID:mcruse,项目名称:monotone,代码行数:4,代码来源:_mediator.py

示例11: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     self.column_names = ()  # Must be lazily initialized.
     return
开发者ID:mcruse,项目名称:monotone,代码行数:6,代码来源:log_helper.py

示例12: __init__

# 需要导入模块: from mpx.service import ServiceNode [as 别名]
# 或者: from mpx.service.ServiceNode import __init__ [as 别名]
 def __init__(self):
     ServiceNode.__init__(self)
     self.running = 0
     self.formatter = None
     self.transporter = None
开发者ID:mcruse,项目名称:monotone,代码行数:7,代码来源:_exporter.py


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