1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

feature #595: changed tm to use new libraries

This commit is contained in:
Javi Fontan 2011-06-03 18:27:52 +02:00
parent 99b22d8e1e
commit 77fd34bf5a

View File

@ -36,8 +36,12 @@ require 'TMScript'
class TransferManager < OpenNebulaDriver
def initialize(plugin, num)
super(num, true)
def initialize(plugin, options={})
@options={
:threaded => true
}.merge!(options)
super(num, @options)
@plugin=plugin
@ -80,7 +84,9 @@ tm_conf=ETC_LOCATION+tm_conf if tm_conf[0] != ?/
plugin=TMPlugin.new(tm_conf)
tm=TransferManager.new(plugin, 15)
tm=TransferManager.new(plugin,
:concurrency => 15)
tm.start_driver