Inherits
Extends
Methods
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
|
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)
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)
Delegates to wrapped policy if host’s ip is whitelisted
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
- See Also:
-
Delegates to wrapped policy if host’s ip is whitelisted
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
- See Also:
-
Delegates to wrapped policy if host’s ip is whitelisted
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
- See Also:
-
Delegates to wrapped policy if host’s ip is whitelisted
-
Parameters:
-
| Name |
Type |
Details |
| host |
Host |
a host instance
|
- See Also:
-