public final class ReverseZoneUtils extends Object
Modifier and Type | Method and Description |
---|---|
protected static String |
getReverseZoneNetworkAddress(String baseIp,
int range,
int index)
Given a baseIp, range and index, return the network address for the
reverse zone.
|
protected static int |
getSubnetCountForReverseZones(org.apache.hadoop.conf.Configuration conf)
When splitting the reverse zone, return the number of subnets needed,
given the range and netmask.
|
protected static long[] |
splitIp(String baseIp) |
protected static String getReverseZoneNetworkAddress(String baseIp, int range, int index) throws UnknownHostException
baseIp
- base ip address to perform calculations against.range
- number of ip addresses per subnet.index
- the index of the subnet to calculate.UnknownHostException
- if an invalid ip is provided.protected static int getSubnetCountForReverseZones(org.apache.hadoop.conf.Configuration conf)
conf
- the Hadoop configuration.protected static long[] splitIp(String baseIp) throws UnknownHostException
UnknownHostException
Copyright © 2008–2019 Apache Software Foundation. All rights reserved.