org.opennms.netmgt.provision.detector.loop.client
Class LoopClient

java.lang.Object
  extended by org.opennms.netmgt.provision.detector.loop.client.LoopClient
All Implemented Interfaces:
Client<LineOrientedRequest,LoopResponse>

public class LoopClient
extends Object
implements Client<LineOrientedRequest,LoopResponse>

LoopClient class.

Version:
$Id: $
Author:
ranger

Constructor Summary
LoopClient()
           
 
Method Summary
 void close()
          close
 void connect(InetAddress address, int port, int timeout)
          connect
 boolean isSupported()
          isSupported
 LoopResponse receiveBanner()
          receiveBanner
 LoopResponse sendRequest(LineOrientedRequest request)
          sendRequest
 void setSupported(boolean isSupported)
          setSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoopClient

public LoopClient()
Method Detail

close

public void close()

close

Specified by:
close in interface Client<LineOrientedRequest,LoopResponse>

connect

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

connect

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

receiveBanner

public LoopResponse receiveBanner()
                           throws IOException,
                                  Exception

receiveBanner

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

sendRequest

public LoopResponse sendRequest(LineOrientedRequest request)
                         throws IOException,
                                Exception

sendRequest

Specified by:
sendRequest in interface Client<LineOrientedRequest,LoopResponse>
Parameters:
request - a LineOrientedRequest object.
Returns:
a LoopResponse object.
Throws:
IOException - if any.
Exception - if any.

setSupported

public void setSupported(boolean isSupported)

setSupported

Parameters:
isSupported - a boolean.

isSupported

public boolean isSupported()

isSupported

Returns:
a boolean.


Copyright © 2011. All Rights Reserved.