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


Python SessionConfig.SessionConfigInterface类代码示例

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


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

示例1: set_stop_collecting_threshold

 def set_stop_collecting_threshold(self,value):
     self.sesslock.acquire()
     try:
         from BaseLib.Core.Overlay.OverlayThreadingBridge import OverlayThreadingBridge
         
         SessionConfigInterface.set_stop_collecting_threshold(self,value)
         olbridge = OverlayThreadingBridge.getInstance()
         task = lambda:self.olthread_set_stop_collecting_threshold(value)
         olbridge.add_task(task,0)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:11,代码来源:SessionRuntimeConfig.py

示例2: set_proxyservice_status

 def set_proxyservice_status(self,value):
     """ Set the status of the proxyservice (on or off).
     
     ProxyService off means the current node could not be used as a proxy. ProxyService on means other nodes will be able to use it as a proxy.
     
     @param value: one of the possible two values: PROXYSERVICE_OFF, PROXYSERVICE_ON
     """
     self.sesslock.acquire()
     try:
         SessionConfigInterface.set_proxyservice_status(self, value)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:12,代码来源:SessionRuntimeConfig.py

示例3: get_video_analyser_path

 def get_video_analyser_path(self):
     # To protect self.sessconfig
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_video_analyser_path(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:7,代码来源:SessionRuntimeConfig.py

示例4: get_listen_port

 def get_listen_port(self):
     # To protect self.sessconfig
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_listen_port(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:7,代码来源:SessionRuntimeConfig.py

示例5: get_proxyservice_status

 def get_proxyservice_status(self):
     """ Returns the status of the proxyservice (on or off).
     @return: one of the possible two values: PROXYSERVICE_OFF, PROXYSERVICE_ON
     """
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_proxyservice_status(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:9,代码来源:SessionRuntimeConfig.py

示例6: get_multicast_local_peer_discovery

 def get_multicast_local_peer_discovery(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_multicast_local_peer_discovery(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例7: get_puncturing_internal_port

 def get_puncturing_internal_port(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_puncturing_internal_port(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例8: get_peer_icon_path

 def get_peer_icon_path(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_peer_icon_path(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例9: get_superpeer_file

 def get_superpeer_file(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_superpeer_file(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例10: get_bartercast

 def get_bartercast(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_bartercast(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例11: get_overlay_max_message_length

 def get_overlay_max_message_length(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_overlay_max_message_length(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例12: get_tracker_multitracker_reannounce_interval

 def get_tracker_multitracker_reannounce_interval(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_tracker_multitracker_reannounce_interval(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例13: get_tracker_min_time_between_cache_refreshes

 def get_tracker_min_time_between_cache_refreshes(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_tracker_min_time_between_cache_refreshes(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例14: get_tracker_log_nat_checks

 def get_tracker_log_nat_checks(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_tracker_log_nat_checks(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py

示例15: get_tracker_timeout_check_interval

 def get_tracker_timeout_check_interval(self):
     self.sesslock.acquire()
     try:
         return SessionConfigInterface.get_tracker_timeout_check_interval(self)
     finally:
         self.sesslock.release()
开发者ID:Anaconda84,项目名称:Anaconda,代码行数:6,代码来源:SessionRuntimeConfig.py


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