org.opennms.protocols.nsclient.detector.client
Class NsclientClient

java.lang.Object
  extended by org.opennms.protocols.nsclient.detector.client.NsclientClient
All Implemented Interfaces:
Client<NsclientRequest,NsclientPacket>

public class NsclientClient
extends Object
implements Client<NsclientRequest,NsclientPacket>

NsclientClient class.

Version:
$Id: $
Author:
Alejandro Galue

Constructor Summary
NsclientClient()
           
 
Method Summary
 void close()
          close
 void connect(InetAddress address, int port, int timeout)
          connect
 String getPassword()
           
 NsclientPacket receiveBanner()
          receiveBanner
 NsclientPacket sendRequest(NsclientRequest request)
          sendRequest
 void setPassword(String password)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NsclientClient

public NsclientClient()
Method Detail

connect

public void connect(InetAddress address,
                    int port,
                    int timeout)
             throws IOException,
                    Exception
Description copied from interface: Client

connect

Specified by:
connect in interface Client<NsclientRequest,NsclientPacket>
Parameters:
address - a InetAddress object.
port - a int.
timeout - a int.
Throws:
IOException - if any.
Exception - if any.

close

public void close()
Description copied from interface: Client

close

Specified by:
close in interface Client<NsclientRequest,NsclientPacket>

receiveBanner

public NsclientPacket receiveBanner()
                             throws IOException,
                                    Exception
Description copied from interface: Client

receiveBanner

Specified by:
receiveBanner in interface Client<NsclientRequest,NsclientPacket>
Returns:
a Response object.
Throws:
IOException - if any.
Exception - if any.

sendRequest

public NsclientPacket sendRequest(NsclientRequest request)
                           throws IOException,
                                  Exception
Description copied from interface: Client

sendRequest

Specified by:
sendRequest in interface Client<NsclientRequest,NsclientPacket>
Parameters:
request - a Request object.
Returns:
a Response object.
Throws:
IOException - if any.
Exception - if any.

getPassword

public String getPassword()

setPassword

public void setPassword(String password)


Copyright © 2011. All Rights Reserved.