Package Tribler :: Package Core :: Module DownloadConfig :: Class DownloadStartupConfig

Class DownloadStartupConfig

DownloadConfigInterface --+
                          |
      Base.Serializable --+
                          |
          Base.Copyable --+
                          |
                         DownloadStartupConfig

(key,value) pair config of per-torrent runtime parameters, e.g. destdir, file-allocation policy, etc. Also options to advocate torrent, e.g. register in DHT, advertise via Buddycast. cf. libtorrent torrent_handle
Instance Methods
 
__init__(self, dlconfig=None)
Normal constructor for DownloadStartupConfig (copy constructor ...
 
save(self, filename)
Save the DownloadStartupConfig to disk.
 
copy(self)
Copies the instance.

Inherited from DownloadConfigInterface: get_alloc_rate, get_alloc_type, get_auto_flush, get_auto_kick, get_breakup_seed_bitfield, get_buffer_reads, get_check_hashes, get_coopdl_coordinator_permid, get_coopdl_role, get_dest_dir, get_double_check_writes, get_download_slice_size, get_exclude_ips, get_http_timeout, get_keepalive_interval, get_live_aux_seeders, get_lock_files, get_lock_while_reading, get_max_conns, get_max_conns_to_initiate, get_max_files_open, get_max_message_length, get_max_rate_period, get_max_slice_length, get_max_speed, get_max_uploads, get_min_peers, get_min_uploads, get_mode, get_rarest_first_cutoff, get_rarest_first_priority_cutoff, get_request_backlog, get_rerequest_interval, get_round_robin_period, get_security, get_selected_files, get_snub_time, get_super_seeder, get_tcp_ack_fudge, get_triple_check_writes, get_upload_rate_fudge, get_upload_unit_size, get_ut_pex_max_addrs_from_peer, get_video_event_callback, get_video_events, get_video_ratelimit, get_video_source, get_write_buffer_size, set_alloc_rate, set_alloc_type, set_auto_flush, set_auto_kick, set_breakup_seed_bitfield, set_buffer_reads, set_check_hashes, set_coopdl_coordinator_permid, set_dest_dir, set_double_check_writes, set_download_slice_size, set_exclude_ips, set_http_timeout, set_keepalive_interval, set_live_aux_seeders, set_lock_files, set_lock_while_reading, set_max_conns, set_max_conns_to_initiate, set_max_files_open, set_max_message_length, set_max_rate_period, set_max_slice_length, set_max_speed, set_max_uploads, set_min_peers, set_min_uploads, set_mode, set_rarest_first_cutoff, set_rarest_first_priority_cutoff, set_request_backlog, set_rerequest_interval, set_round_robin_period, set_security, set_selected_files, set_snub_time, set_super_seeder, set_tcp_ack_fudge, set_triple_check_writes, set_upload_rate_fudge, set_upload_unit_size, set_ut_pex_max_addrs_from_peer, set_video_event_callback, set_video_events, set_video_ratelimit, set_video_source, set_write_buffer_size

Static Methods
 
load(filename)
Load a saved DownloadStartupConfig from disk.
Method Details

__init__(self, dlconfig=None)
(Constructor)

 
Normal constructor for DownloadStartupConfig (copy constructor used internally)
Overrides: Base.Serializable.__init__

load(filename)
Static Method

 
Load a saved DownloadStartupConfig from disk.
Parameters:
  • filename - An absolute Unicode filename
Returns:
DownloadStartupConfig object

save(self, filename)

 
Save the DownloadStartupConfig to disk.
Parameters:
  • filename - An absolute Unicode filename

copy(self)

 
Copies the instance.
Parameters:
  • self - an unbound instance of the class
Returns:
Returns a copy of "self"
Overrides: Base.Copyable.copy
(inherited documentation)