Package org.jppf.node.policy
Class IsInIPv4Subnet
- All Implemented Interfaces:
Serializable
An execution policy rule that encapsulates a test of type IPv4 is in
Subnet string.
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.- Since:
- 4.2
- Author:
- Daniel Widdis
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.jppf.node.policy.ExecutionPolicy
ExecutionPolicy.AndRule, ExecutionPolicy.NotRule, ExecutionPolicy.OrRule, ExecutionPolicy.XorRule -
Field Summary
Fields inherited from class org.jppf.node.policy.ExecutionPolicy
children -
Constructor Summary
ConstructorsConstructorDescriptionIsInIPv4Subnet(String... subnets) Define a membership test using ipv4.addresses property to determine if a node or driver is in one of the specified subnets.IsInIPv4Subnet(Collection<String> subnets) Define a membership test using ipv6.addresses property to determine if a node is in one of the specified subnets. -
Method Summary
Methods inherited from class org.jppf.node.policy.AbstractIsInIPSubnet
accepts, toStringMethods inherited from class org.jppf.node.policy.ExecutionPolicy
and, and, andNot, andNot, checkRules, evaluate, getChildren, getContext, getProperty, indent, negate, not, Not, or, or, orNot, orNot, setContext, setContext, tagEnd, tagStart, toString, toXML, xmlElement, xmlElement, xor, xor
-
Constructor Details
-
IsInIPv4Subnet
Define a membership test using ipv4.addresses property to determine if a node or driver is in one of the specified subnets.- Parameters:
subnets- One or more strings representing either a valid IPv4 subnet in CIDR notation or IP address range pattern as defined inIPv4AddressPattern
-
IsInIPv4Subnet
Define a membership test using ipv6.addresses property to determine if a node is in one of the specified subnets.- Parameters:
subnets- One or more strings representing either a valid IPv4 subnet in CIDR notation or IP address range pattern as defined inIPv4AddressPattern
-