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()
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()
def get_listen_port(self): # To protect self.sessconfig self.sesslock.acquire() try: return SessionConfigInterface.get_listen_port(self) finally: self.sesslock.release()
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()
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()
def get_tracker_multitracker_reannounce_interval(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_multitracker_reannounce_interval(self) finally: self.sesslock.release()
def get_tracker_aggregate_forward(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_aggregate_forward(self) finally: self.sesslock.release()
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()
def get_superpeer_file(self): self.sesslock.acquire() try: return SessionConfigInterface.get_superpeer_file(self) finally: self.sesslock.release()
def get_puncturing_internal_port(self): self.sesslock.acquire() try: return SessionConfigInterface.get_puncturing_internal_port(self) finally: self.sesslock.release()
def get_tracker_banned_ips(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_banned_ips(self) finally: self.sesslock.release()
def get_overlay_max_message_length(self): self.sesslock.acquire() try: return SessionConfigInterface.get_overlay_max_message_length(self) finally: self.sesslock.release()
def get_tracker_only_local_override_ip(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_only_local_override_ip(self) finally: self.sesslock.release()
def get_tracker_keep_dead(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_keep_dead(self) finally: self.sesslock.release()
def get_tracker_infopage_redirect(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_infopage_redirect(self) finally: self.sesslock.release()
def get_tracker_parse_dir_interval(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_parse_dir_interval(self) finally: self.sesslock.release()
def get_tracker_multitracker_http_timeout(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_multitracker_http_timeout(self) finally: self.sesslock.release()
def get_tracker_hupmonitor(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_hupmonitor(self) finally: self.sesslock.release()
def get_tracker_scrape_allowed(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_scrape_allowed(self) finally: self.sesslock.release()
def get_bind_to_addresses(self): self.sesslock.acquire() try: return SessionConfigInterface.get_bind_to_addresses(self) finally: self.sesslock.release()
def get_bartercast(self): self.sesslock.acquire() try: return SessionConfigInterface.get_bartercast(self) finally: self.sesslock.release()
def get_download_help_dir(self): self.sesslock.acquire() try: return SessionConfigInterface.get_download_help_dir(self) finally: self.sesslock.release()
def get_peer_icon_path(self): self.sesslock.acquire() try: return SessionConfigInterface.get_peer_icon_path(self) finally: self.sesslock.release()
def get_multicast_local_peer_discovery(self): self.sesslock.acquire() try: return SessionConfigInterface.get_multicast_local_peer_discovery(self) finally: self.sesslock.release()
def get_buddycast_collecting_solution(self): self.sesslock.acquire() try: return SessionConfigInterface.get_buddycast_collecting_solution(self) finally: self.sesslock.release()
def get_tracker_log_nat_checks(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_log_nat_checks(self) finally: self.sesslock.release()
def get_nat_detect(self): self.sesslock.acquire() try: return SessionConfigInterface.get_nat_detect(self) finally: self.sesslock.release()
def get_pingback_servers(self): self.sesslock.acquire() try: return SessionConfigInterface.get_pingback_servers(self) finally: self.sesslock.release()
def get_crawler(self): self.sesslock.acquire() try: return SessionConfigInterface.get_crawler(self) finally: self.sesslock.release()
def get_autoclose_timeout(self): self.sesslock.acquire() try: return SessionConfigInterface.get_autoclose_timeout(self) finally: self.sesslock.release()
def get_tracker_dfile_format(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_dfile_format(self) finally: self.sesslock.release()
def get_tracker_timeout_check_interval(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_timeout_check_interval(self) finally: self.sesslock.release()
def get_tracker_response_size(self): self.sesslock.acquire() try: return SessionConfigInterface.get_tracker_response_size(self) finally: self.sesslock.release()
def get_upnp_mode(self): self.sesslock.acquire() try: return SessionConfigInterface.get_upnp_mode(self) finally: self.sesslock.release()