org.opennms.netmgt.provision.support
Interface Client<Request,Response>

All Known Implementing Classes:
DatagramClient, DhcpClient, DominoIIOPClient, GpClient, JBossClient, JDBCClient, JMXClient, Jsr160Client, LdapDetectorClient, LineOrientedClient, LoopClient, MSExchangeDetectorClient, MultilineOrientedClient, NrpeClient, NtpClient, RadiusDetectorClient, SmbClient, SmsClient, SshClient, SSLClient

public interface Client<Request,Response>

Client interface.

Version:
$Id: $
Author:
brozow

Method Summary
 void close()
          close
 void connect(InetAddress address, int port, int timeout)
          connect
 Response receiveBanner()
          receiveBanner
 Response sendRequest(Request request)
          sendRequest
 

Method Detail

connect

void connect(InetAddress address,
             int port,
             int timeout)
             throws IOException,
                    Exception

connect

Type Parameters:
Request - a Request object.
Response - a Response object.
Parameters:
address - a InetAddress object.
port - a int.
timeout - a int.
Throws:
IOException - if any.
Exception - if any.

receiveBanner

Response receiveBanner()
                       throws IOException,
                              Exception

receiveBanner

Returns:
a Response object.
Throws:
IOException - if any.
Exception - if any.

sendRequest

Response sendRequest(Request request)
                     throws IOException,
                            Exception

sendRequest

Parameters:
request - a Request object.
Returns:
a Response object.
Throws:
IOException - if any.
Exception - if any.

close

void close()

close



Copyright © 2011. All Rights Reserved.