org.opennms.netmgt.provision.detector.jdbc.client
Class JDBCClient

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.jdbc.client.JDBCClient
All Implemented Interfaces:
Client<JDBCRequest,JDBCResponse>

public class JDBCClient
extends Object
implements Client<JDBCRequest,JDBCResponse>

Author:
thedesloge

Constructor Summary
JDBCClient()
           
 
Method Summary
 void close()
           
 void connect(InetAddress address, int port, int timeout)
           
 String getDbDriver()
           
 String getPassword()
           
 String getUrl()
           
 String getUser()
           
 JDBCResponse receiveBanner()
           
 JDBCResponse sendRequest(JDBCRequest request)
           
 void setDbDriver(String dbDriver)
           
 void setPassword(String password)
           
 void setUrl(String url)
           
 void setUser(String user)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCClient

public JDBCClient()
Method Detail

close

public void close()
Specified by:
close in interface Client<JDBCRequest,JDBCResponse>

connect

public void connect(InetAddress address,
                    int port,
                    int timeout)
             throws IOException,
                    Exception
Specified by:
connect in interface Client<JDBCRequest,JDBCResponse>
Throws:
IOException
Exception

receiveBanner

public JDBCResponse receiveBanner()
                           throws IOException,
                                  Exception
Specified by:
receiveBanner in interface Client<JDBCRequest,JDBCResponse>
Throws:
IOException
Exception

sendRequest

public JDBCResponse sendRequest(JDBCRequest request)
                         throws IOException,
                                Exception
Specified by:
sendRequest in interface Client<JDBCRequest,JDBCResponse>
Throws:
IOException
Exception

setDbDriver

public void setDbDriver(String dbDriver)

getDbDriver

public String getDbDriver()

setUser

public void setUser(String user)

getUser

public String getUser()

setPassword

public void setPassword(String password)

getPassword

public String getPassword()

setUrl

public void setUrl(String url)

getUrl

public String getUrl()


Copyright © 2009. All Rights Reserved.