|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esf.net.dhcp.server.service.DhcpServerParameters
Constructor to hold the parameters of a DHCP server configuration.
Constructor Summary | |
DhcpServerParameters(int defaultLeaseTime,
int maximumLeaseTime,
java.lang.String subnetMask,
java.lang.String rangeFrom,
java.lang.String rangeTo,
boolean passDnsServers)
|
Method Summary | |
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 |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
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
otherwiseMethod Detail |
public 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 String
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |