Sha256: 7a9e887db6c37dd21c90eae38492d80ed52d1df71f94addf343b7627d67e8b45

Contents?: true

Size: 700 Bytes

Versions: 32

Compression:

Stored size: 700 Bytes

Contents

module Cuboid::OptionGroups

# Holds options for {RPC::Server::Scheduler} servers.
#
# @author Tasos "Zapotek" Laskos <tasos.laskos@gmail.com>
class Scheduler < Cuboid::OptionGroup

    # @return   [String]
    #   URL of a {RPC::Server::Scheduler}.
    attr_accessor :url

    # @return   [Array<Integer>]
    #   Range of ports to use when spawning instances, first entry should be
    #   the lowest port number, last the max port number.
    attr_accessor :instance_port_range

    # @return   [Float]
    #   How regularly to check for scan statuses.
    attr_accessor :ping_interval

    set_defaults(
        ping_interval:       5.0,
        instance_port_range: [1025, 65535]
    )

end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
cuboid-0.2.11 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.10 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.9 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.8 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.7 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.6 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.5 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.4.2 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.4.1 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.4 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.3 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.2 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2.1 lib/cuboid/option_groups/scheduler.rb
cuboid-0.2 lib/cuboid/option_groups/scheduler.rb
cuboid-0.1.9.1 lib/cuboid/option_groups/scheduler.rb
cuboid-0.1.9 lib/cuboid/option_groups/scheduler.rb
cuboid-0.1.8 lib/cuboid/option_groups/scheduler.rb
cuboid-0.1.7 lib/cuboid/option_groups/scheduler.rb
cuboid-0.1.6.1 lib/cuboid/option_groups/scheduler.rb
cuboid-0.1.6 lib/cuboid/option_groups/scheduler.rb