Class: Arachni::OptionGroups::Dispatcher

Inherits:
Arachni::OptionGroup show all
Defined in:
lib/arachni/option_groups/dispatcher.rb

Overview

Holds options for RPC::Server::Dispatcher servers.

Author:

Constant Summary collapse

GRID_MODES =
[:balance, :aggregate]

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Arachni::OptionGroup

#==, attr_accessor, attributes, #attributes, #defaults, defaults, #hash, inherited, #initialize, #merge, set_defaults, #to_h, #to_hash, #to_rpc_data, #update, #validate

Constructor Details

This class inherits a constructor from Arachni::OptionGroup

Instance Attribute Details

#external_addressString



27
28
29
# File 'lib/arachni/option_groups/dispatcher.rb', line 27

def external_address
  @external_address
end

#grid_modenil, Symbol



48
49
50
# File 'lib/arachni/option_groups/dispatcher.rb', line 48

def grid_mode
  @grid_mode
end

#instance_port_rangeArray<Integer>



37
38
39
# File 'lib/arachni/option_groups/dispatcher.rb', line 37

def instance_port_range
  @instance_port_range
end

#neighbourString

Returns The URL of a neighbouring RPC::Server::Dispatcher, applicable when RPC::Server::Dispatcher are connected to each other to form a Grid.



55
56
57
# File 'lib/arachni/option_groups/dispatcher.rb', line 55

def neighbour
  @neighbour
end

#node_costFloat



63
64
65
# File 'lib/arachni/option_groups/dispatcher.rb', line 63

def node_cost
  @node_cost
end

#node_nicknameString



75
76
77
# File 'lib/arachni/option_groups/dispatcher.rb', line 75

def node_nickname
  @node_nickname
end

#node_ping_intervalFloat



59
60
61
# File 'lib/arachni/option_groups/dispatcher.rb', line 59

def node_ping_interval
  @node_ping_interval
end

#node_pipe_idString



67
68
69
# File 'lib/arachni/option_groups/dispatcher.rb', line 67

def node_pipe_id
  @node_pipe_id
end

#node_weightFloat



71
72
73
# File 'lib/arachni/option_groups/dispatcher.rb', line 71

def node_weight
  @node_weight
end

#pool_sizeInteger



32
33
34
# File 'lib/arachni/option_groups/dispatcher.rb', line 32

def pool_size
  @pool_size
end

#urlString



22
23
24
# File 'lib/arachni/option_groups/dispatcher.rb', line 22

def url
  @url
end

Instance Method Details

#grid=(bool) ⇒ Object



92
93
94
# File 'lib/arachni/option_groups/dispatcher.rb', line 92

def grid=( bool )
    @grid_mode = bool ? :balance : nil
end

#grid?Bool



85
86
87
# File 'lib/arachni/option_groups/dispatcher.rb', line 85

def grid?
    !!@grid_mode
end

#grid_aggregate?Bool



121
122
123
# File 'lib/arachni/option_groups/dispatcher.rb', line 121

def grid_aggregate?
    @grid_mode == :aggregate
end

#grid_balance?Bool



127
128
129
# File 'lib/arachni/option_groups/dispatcher.rb', line 127

def grid_balance?
    @grid_mode == :balance
end