mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
feature #595: changed hook manager to use the new driver library
This commit is contained in:
parent
3b1cdb77f4
commit
8a4f5211cd
@ -31,8 +31,14 @@ $: << RUBY_LIB_LOCATION
|
||||
require 'OpenNebulaDriver'
|
||||
|
||||
class HookManagerDriver < OpenNebulaDriver
|
||||
def initialize(num)
|
||||
super(num, true, 0)
|
||||
def initialize(options)
|
||||
@options={
|
||||
:concurrency => 15,
|
||||
:threaded => true,
|
||||
:retries => 0
|
||||
}.merge!(options)
|
||||
|
||||
super('', @options)
|
||||
|
||||
register_action(:EXECUTE, method("action_execute"))
|
||||
end
|
||||
@ -57,5 +63,5 @@ class HookManagerDriver < OpenNebulaDriver
|
||||
end
|
||||
end
|
||||
|
||||
hm=HookManagerDriver.new(15)
|
||||
hm=HookManagerDriver.new(:concurrency => 15)
|
||||
hm.start_driver
|
||||
|
Loading…
x
Reference in New Issue
Block a user