public class StaticIpLookupStrategy extends java.lang.Object implements IpLookupStrategy
IpLookupStrategy that returns a pre-configured static IP.| Constructor and Description |
|---|
StaticIpLookupStrategy(java.lang.String ip) |
| Modifier and Type | Method and Description |
|---|---|
static StaticIpLookupStrategy |
create(java.lang.String prefix) |
java.lang.String |
lookup(java.lang.String mac)
attempt to lookup an IP for a MAC.
|
public static StaticIpLookupStrategy create(java.lang.String prefix)
public java.lang.String lookup(java.lang.String mac)
IpLookupStrategyIpLookupException when the lookup fails abnormally. May
throw IpNotFoundException when the IP was not found. mac may be null if it is not required
for the lookup.lookup in interface IpLookupStrategy