feature #595: changed tm to use new libraries

This commit is contained in:
Javi Fontan committed 2011-06-03 18:27:52 +02:00
1 parent 99b22d8e1e
commit 77fd34bf5a
1 file changed
+9 -3
+9 -3
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