Class NicMatchInterfaceCriteria
java.lang.Object
org.jboss.as.controller.interfaces.AbstractInterfaceCriteria
org.jboss.as.controller.interfaces.NicMatchInterfaceCriteria
- All Implemented Interfaces:
Serializable,Comparable<InterfaceCriteria>,InterfaceCriteria
- Author:
- Brian Stansberry
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNicMatchInterfaceCriteria(Pattern pattern) Creates a new AnyInterfaceCriteria -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected InetAddressisAcceptable(NetworkInterface networkInterface, InetAddress address) Gets whether the given network interface and address are acceptable for use.Methods inherited from class org.jboss.as.controller.interfaces.AbstractInterfaceCriteria
cloneCandidates, compareTo, getAcceptableAddresses
-
Constructor Details
-
NicMatchInterfaceCriteria
Creates a new AnyInterfaceCriteria- Parameters:
pattern- the criteria to check to see if any are satisfied. Cannot benull- Throws:
IllegalArgumentException- ifcriteriaisnull
-
-
Method Details
-
getAcceptablePattern
-
isAcceptable
protected InetAddress isAcceptable(NetworkInterface networkInterface, InetAddress address) throws SocketException Gets whether the given network interface and address are acceptable for use. Acceptance is indicated by returning the address which should be used for binding against the network interface; typically this is the givenaddressparameter. For those criteria which override the configured address, the override address should be returned.- Specified by:
isAcceptablein classAbstractInterfaceCriteria- Parameters:
networkInterface- the network interface. Cannot benulladdress- an address that is associated withnetworkInterface. Cannot benull- Returns:
addressif theacceptable patternmatchesnetworkInterface'sname.- Throws:
SocketException- if evaluating the state ofnetworkInterfaceresults in one
-
hashCode
public int hashCode() -
equals
-