Inherits

Extends

  • Forwardable

Methods

self.

new

(ips, wrapped_policy)

Returns a new instance of WhiteList

Parameters:
Name Type Details
ips Enumerable<String, IPAddr> a list of ips to whitelist
wrapped_policy LoadBalancing::Policy actual policy to filter
Raises:
Type Details
ArgumentError if arguments are of unexpected types

plan

(keyspace, statement, options)

Delegates to wrapped policy

See Also:
Specifications:
WhiteList#plan forwards to wrapped policy
expect(wrapped_policy).to receive(:plan).once.with(keyspace, statement, options)
policy.plan(keyspace, statement, options)

distance

(host)

Delegates to wrapped policy

See Also:
Specifications:
WhiteList#distance forwards to wrapped policy
expect(wrapped_policy).to receive(:distance).once.with(host)
policy.distance(host)

host_found

(host)

Delegates to wrapped policy if host’s ip is whitelisted

Parameters:
Name Type Details
host Host a host instance
See Also:

host_lost

(host)

Delegates to wrapped policy if host’s ip is whitelisted

Parameters:
Name Type Details
host Host a host instance
See Also:

host_up

(host)

Delegates to wrapped policy if host’s ip is whitelisted

Parameters:
Name Type Details
host Host a host instance
See Also:

host_down

(host)

Delegates to wrapped policy if host’s ip is whitelisted

Parameters:
Name Type Details
host Host a host instance
See Also: