21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# File 'lib/iudex-brutefuzzy-service/destinations.rb', line 21
def self.apply( ctx )
ctx.destinations[ 'brutefuzzy-response-ex' ] = {
:assert => :sender,
:create => :sender,
:node => {
:type => :topic,
'x-declare' => {
:type => :fanout,
}
}
}
ctx.destinations[ 'brutefuzzy-request' ] = {
:assert => :always,
:create => :always,
:node => {
:type => :queue,
'x-declare' => {
:arguments => {
'qpid.max_size' => 500_000,
'qpid.policy_type' => :reject,
}
}
}
}
ctx.destinations[ 'brutefuzzy-client' ] = {
:address => ctx.address_per_process( 'brutefuzzy-client' ),
:assert => :receiver,
:create => :receiver,
:delete => :receiver,
:node => {
:type => :queue,
'x-bindings' => [ { :exchange => 'brutefuzzy-response-ex' } ],
'x-declare' => {
'auto-delete' => true,
:arguments => {
'qpid.max_size' => 500_000,
'qpid.policy_type' => :ring,
}
}
}
}
end
|