public final class ReverseZoneUtils
extends java.lang.Object
| Modifier and Type | Method | Description |
|---|---|---|
protected static java.lang.String |
getReverseZoneNetworkAddress(java.lang.String baseIp,
int range,
int index) |
Given a baseIp, range and index, return the network address for the
reverse zone.
|
protected static long |
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(java.lang.String baseIp) |
protected static java.lang.String getReverseZoneNetworkAddress(java.lang.String baseIp,
int range,
int index)
throws java.net.UnknownHostException
baseIp - base ip address to perform calculations against.range - number of ip addresses per subnet.index - the index of the subnet to calculate.java.net.UnknownHostException - if an invalid ip is provided.protected static long getSubnetCountForReverseZones(org.apache.hadoop.conf.Configuration conf)
conf - the Hadoop configuration.@VisibleForTesting
protected static long[] splitIp(java.lang.String baseIp)
throws java.net.UnknownHostException
java.net.UnknownHostExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.