org.opennms.netmgt.provision.detector.dhcp.client
Class DhcpClient

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.dhcp.client.DhcpClient
All Implemented Interfaces:
Client<DhcpRequest,DhcpResponse>

public class DhcpClient
extends Object
implements Client<DhcpRequest,DhcpResponse>


Constructor Summary
DhcpClient()
           
 
Method Summary
 void close()
           
 void connect(InetAddress address, int port, int timeout)
           
 int getRetries()
           
 DhcpResponse receiveBanner()
           
 DhcpResponse sendRequest(DhcpRequest request)
           
 void setRetries(int retries)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DhcpClient

public DhcpClient()
Method Detail

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.