Revision 24b3b9d6 src/im_mad/im_exec/one_im_exec.rb
src/im_mad/im_exec/one_im_exec.rb | ||
---|---|---|
109 | 109 |
[ '--retries', '-r', GetoptLong::OPTIONAL_ARGUMENT ], |
110 | 110 |
[ '--threads', '-t', GetoptLong::OPTIONAL_ARGUMENT ], |
111 | 111 |
[ '--local', '-l', GetoptLong::NO_ARGUMENT ], |
112 |
[ '--force-copy', '-c', GetoptLong::NO_ARGUMENT ] |
|
112 |
[ '--force-copy', '-c', GetoptLong::NO_ARGUMENT ], |
|
113 |
[ '--timeout', '-w', GetoptLong::OPTIONAL_ARGUMENT ] |
|
113 | 114 |
) |
114 | 115 |
|
115 | 116 |
hypervisor = '' |
... | ... | |
117 | 118 |
threads = 15 |
118 | 119 |
local_actions = {} |
119 | 120 |
force_copy = false |
121 |
timeout = nil |
|
120 | 122 |
|
121 | 123 |
begin |
122 | 124 |
opts.each do |opt, arg| |
... | ... | |
129 | 131 |
local_actions={ 'MONITOR' => nil } |
130 | 132 |
when '--force-copy' |
131 | 133 |
force_copy=true |
134 |
when '--timeout' |
|
135 |
timeout = arg |
|
132 | 136 |
end |
133 | 137 |
end |
134 | 138 |
rescue Exception => e |
... | ... | |
140 | 144 |
end |
141 | 145 |
|
142 | 146 |
im = InformationManagerDriver.new(hypervisor, |
143 |
:concurrency => threads, |
|
144 |
:retries => retries, |
|
145 |
:local_actions => local_actions, |
|
146 |
:force_copy => force_copy) |
|
147 |
:concurrency => threads, |
|
148 |
:retries => retries, |
|
149 |
:local_actions => local_actions, |
|
150 |
:force_copy => force_copy, |
|
151 |
:timeout => timeout) |
|
147 | 152 |
|
148 | 153 |
im.start_driver |
Also available in: Unified diff