com.adventnet.management.transport
Class  TcpClientTransportImpl
java.lang.Object
  |
  +--com.adventnet.management.transport.TcpClientTransportImpl
- All Implemented Interfaces: 
 - TransportProvider
 
- public class TcpClientTransportImpl
- extends java.lang.Object
- implements TransportProvider
   
Client side implementation of the TransportProvider interface that creates
 a client session for communicating with the server. This implementation 
 provides TCP/IP as the lower layer transport.
 
| 
Method Summary | 
 void | 
close()
 
          Closes the transport interface after communication is over. | 
 void | 
init(java.lang.Object[] params)
 
          Initializes the TCP Socket over which the data is sent/received. | 
 SessionTransportProvider | 
open(java.lang.String[] params)
 
          Creates an instance of the client session object and returns a handle to 
 it. | 
 void | 
setLogInterface(LogInterface logInterface)
 
          Sets the logInterface to the specified one if any. | 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
TcpClientTransportImpl
public TcpClientTransportImpl()
- Default constructor that creates an instance of this class.
 
init
public void init(java.lang.Object[] params)
          throws TransportException
- Initializes the TCP Socket over which the data is sent/received.
- Specified by: 
 init in interface TransportProvider
 
- Parameters:
 params - parameters that are used for creating the client session.
 
 
open
public SessionTransportProvider open(java.lang.String[] params)
                              throws TransportException
- Creates an instance of the client session object and returns a handle to 
 it.
- Specified by: 
 open in interface TransportProvider
 
- Parameters:
 params - parameters that are used for creating the client session.- Returns:
 - reference to the SessionTransportProvider object that represents
 the client session.
 
 
 
close
public void close()
           throws TransportException
- Closes the transport interface after communication is over.
- Specified by: 
 close in interface TransportProvider
 
- Following copied from interface: 
com.adventnet.management.transport.TransportProvider 
- Throws:
 TransportException - in case of an error during closing.
 
 
setLogInterface
public void setLogInterface(LogInterface logInterface)
- Sets the logInterface to the specified one if any.
- Specified by: 
 setLogInterface in interface TransportProvider
 
 
Copyright (c)AdventNet Inc., 1996-2004