public class IsInIPv4Subnet extends ExecutionPolicy
This policy has the following XML representation:
<IsInIPv4Subnet> <Subnet>subnet-1</Subnet> ... <Subnet>subnet-N</Subnet> </IsInIPv4Subnet>where each subnet-i is a subnet expressed either in CIDR notation or in the representation described in
IPv4AddressPattern
.ExecutionPolicy.AndRule, ExecutionPolicy.LogicalRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule
Constructor and Description |
---|
IsInIPv4Subnet(Collection<String> subnets)
Define a membership test using ipv6.addresses property to determine if a
node is in one of the specified subnets.
|
IsInIPv4Subnet(String... subnets)
Define a membership test using ipv4.addresses property to determine if a
node or driver is in one of the specified subnets.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accepts(PropertiesCollection info)
Determines whether this policy accepts the specified node.
|
String |
toString()
Print this object to a string.
|
and, and, andNot, andNot, getContext, getProperty, not, Not, or, or, orNot, orNot, xor, xor
public IsInIPv4Subnet(String... subnets)
subnets
- One or more strings representing either a valid IPv4 subnet in CIDR
notation or IP address range pattern as defined in
IPv4AddressPattern
public IsInIPv4Subnet(Collection<String> subnets)
subnets
- One or more strings representing either a valid IPv4 subnet in CIDR
notation or IP address range pattern as defined in
IPv4AddressPattern
public boolean accepts(PropertiesCollection info)
accepts
in class ExecutionPolicy
info
- system information for the node on which the tasks will run if
accepted.Copyright © 2005-2016 JPPF Team.