public class NicMatchInterfaceCriteria extends AbstractInterfaceCriteria
| Constructor and Description |
|---|
NicMatchInterfaceCriteria(Pattern pattern)
Creates a new AnyInterfaceCriteria
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Pattern |
getAcceptablePattern() |
int |
hashCode() |
protected InetAddress |
isAcceptable(NetworkInterface networkInterface,
InetAddress address)
Gets whether the given network interface and address are acceptable for
use.
|
cloneCandidates, getAcceptableAddressespublic NicMatchInterfaceCriteria(Pattern pattern)
pattern - the criteria to check to see if any are satisfied.
Cannot be nullIllegalArgumentException - if criteria is nullpublic Pattern getAcceptablePattern()
protected InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException
address
parameter. For those criteria which override the configured address, the override address should
be returned.isAcceptable in class AbstractInterfaceCriterianetworkInterface - the network interface. Cannot be nulladdress - an address that is associated with networkInterface.
Cannot be nulladdress if the acceptable pattern
matches networkInterface's name.SocketException - if evaluating the state of networkInterface results in oneCopyright © 2017 JBoss by Red Hat. All rights reserved.