com.adventnet.management.transport
Class TcpClientTransportImpl
java.lang.Object
|
+--com.adventnet.management.transport.TcpClientTransportImpl
- 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.
|
Field Summary |
(package private) java.lang.String |
filename
|
(package private) java.net.Socket |
sock
|
|
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 |
sock
java.net.Socket sock
filename
java.lang.String filename
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
- Tags copied from interface: 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