org.opennms.netmgt.provision.detector.dhcp.client
Class DhcpClient
java.lang.Object
org.opennms.netmgt.provision.detector.dhcp.client.DhcpClient
- All Implemented Interfaces:
- Client<DhcpRequest,DhcpResponse>
public class DhcpClient
- extends Object
- implements Client<DhcpRequest,DhcpResponse>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DhcpClient
public DhcpClient()
close
public void close()
- Specified by:
close in interface Client<DhcpRequest,DhcpResponse>
connect
public void connect(InetAddress address,
int port,
int timeout)
throws IOException,
Exception
- Specified by:
connect in interface Client<DhcpRequest,DhcpResponse>
- Throws:
IOException
Exception
receiveBanner
public DhcpResponse receiveBanner()
throws IOException,
Exception
- Specified by:
receiveBanner in interface Client<DhcpRequest,DhcpResponse>
- Throws:
IOException
Exception
sendRequest
public DhcpResponse sendRequest(DhcpRequest request)
throws IOException,
Exception
- Specified by:
sendRequest in interface Client<DhcpRequest,DhcpResponse>
- Throws:
IOException
Exception
setRetries
public void setRetries(int retries)
getRetries
public int getRetries()
Copyright © 2009. All Rights Reserved.