public final class DhcpServerParameters
extends java.lang.Object
Constructor and Description |
---|
DhcpServerParameters(int defaultLeaseTime,
int maximumLeaseTime,
java.lang.String subnetMask,
java.lang.String rangeFrom,
java.lang.String rangeTo,
boolean passDnsServers) |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultLeaseTime()
gets the default lease time
|
int |
getMaximumLeaseTime()
gets the max lease time
|
java.lang.String |
getRangeFrom()
gets the starting IP of the DHCP range being served
|
java.lang.String |
getRangeTo()
gets the ending IP of the DHCP range being served
|
java.lang.String |
getSubnetMask()
gets the subnet mask of the DHCP range
|
boolean |
isPassDnsServers()
gets the configuration state of whether to pass DNS servers to DHCP clients
|
void |
setDefaultLeaseTime(int defaultLeaseTime)
sets the default lease time
|
void |
setMaximumLeaseTime(int maximumLeaseTime)
sets the max lease time
|
void |
setPassDnsServers(boolean passDnsServers)
sets whether to pass DNS servers to DHCP clients
|
void |
setRangeFrom(java.lang.String rangeFrom)
sets the starting IP of the DHCP range being served
|
void |
setRangeTo(java.lang.String rangeTo)
sets the ending IP of the DHCP range being served
|
void |
setSubnetMask(java.lang.String subnetMask)
sets the subnet mask of the DHCP range
|
public DhcpServerParameters(int defaultLeaseTime, int maximumLeaseTime, java.lang.String subnetMask, java.lang.String rangeFrom, java.lang.String rangeTo, boolean passDnsServers)
defaultLeaseTime
- Default lease time as int, in secondsmaximumLeaseTime
- Max lease time as int, in secondssubnetMask
- Subnet mask of DHCP server range as String (such as "255.255.255.0")rangeFrom
- Starting IP address of range of DHCP addresses to be servedrangeTo
- Ending IP address of range of DHCP addresses to be servedpassDnsServers
- true
to pass DNS server addresses to DHCP client, false
otherwisepublic int getDefaultLeaseTime()
public void setDefaultLeaseTime(int defaultLeaseTime)
defaultLeaseTime
- in secondspublic int getMaximumLeaseTime()
public void setMaximumLeaseTime(int maximumLeaseTime)
maximumLeaseTime
- in secondspublic boolean isPassDnsServers()
public void setPassDnsServers(boolean passDnsServers)
passDnsServers
- true
to pass DNS, false
otherwisepublic java.lang.String getRangeFrom()
public void setRangeFrom(java.lang.String rangeFrom)
rangeFrom
- IP as Stringpublic java.lang.String getRangeTo()
public void setRangeTo(java.lang.String rangeTo)
rangeTo
- IP address as Stringpublic java.lang.String getSubnetMask()
public void setSubnetMask(java.lang.String subnetMask)
subnetMask
- as StringCopyright © 2009 Eurotech Inc. All rights reserved.