Class: Cuboid::OptionGroups::Scheduler

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

Overview

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

Author:

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>

Returns Range of ports to use when spawning instances, first entry should be the lowest port number, last the max port number.

Returns:

  • (Array<Integer>)

    Range of ports to use when spawning instances, first entry should be the lowest port number, last the max port number.



15
16
17
# File 'lib/cuboid/option_groups/scheduler.rb', line 15

def instance_port_range
  @instance_port_range
end

#ping_intervalFloat

Returns How regularly to check for scan statuses.

Returns:

  • (Float)

    How regularly to check for scan statuses.



19
20
21
# File 'lib/cuboid/option_groups/scheduler.rb', line 19

def ping_interval
  @ping_interval
end

#urlString

Returns URL of a RPC::Server::Scheduler.

Returns:



10
11
12
# File 'lib/cuboid/option_groups/scheduler.rb', line 10

def url
  @url
end