From 77fd34bf5a32a5f7bc89193be31db6ff52be192d Mon Sep 17 00:00:00 2001 From: Javi Fontan Date: Fri, 3 Jun 2011 18:27:52 +0200 Subject: [PATCH] feature #595: changed tm to use new libraries --- src/tm_mad/one_tm.rb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/tm_mad/one_tm.rb b/src/tm_mad/one_tm.rb index a8eef7aceb..60b1115192 100755 --- a/src/tm_mad/one_tm.rb +++ b/src/tm_mad/one_tm.rb @@ -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