Class: Cuboid::OptionGroups::Agent

Inherits:
Cuboid::OptionGroup show all
Defined in:
lib/cuboid/option_groups/agent.rb

Overview

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

Author:

Constant Summary collapse

STRATEGIES =
Set.new([:horizontal, :vertical, :direct])

Instance Attribute Summary collapse

Method Summary

Methods inherited from Cuboid::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 Cuboid::OptionGroup

Instance Attribute Details

#instance_port_rangeArray<Integer>



17
18
19
# File 'lib/cuboid/option_groups/agent.rb', line 17

def instance_port_range
  @instance_port_range
end

#nameString



32
33
34
# File 'lib/cuboid/option_groups/agent.rb', line 32

def name
  @name
end

#peerString

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



24
25
26
# File 'lib/cuboid/option_groups/agent.rb', line 24

def peer
  @peer
end

#ping_intervalFloat



28
29
30
# File 'lib/cuboid/option_groups/agent.rb', line 28

def ping_interval
  @ping_interval
end

#strategyObject

Returns the value of attribute strategy.



34
35
36
# File 'lib/cuboid/option_groups/agent.rb', line 34

def strategy
  @strategy
end

#urlString



12
13
14
# File 'lib/cuboid/option_groups/agent.rb', line 12

def url
  @url
end