|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.management.transport.TcpClientTransportImpl
public class TcpClientTransportImpl
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
|
| Constructor Summary | |
|---|---|
TcpClientTransportImpl()
Default constructor that creates an instance of this class. |
|
| 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 |
| Field Detail |
|---|
java.net.Socket sock
java.lang.String filename
| Constructor Detail |
|---|
public TcpClientTransportImpl()
| Method Detail |
|---|
public void init(java.lang.Object[] params)
throws TransportException
init in interface TransportProviderparams - parameters that are used for creating the client session.
TransportException - in case of an error during initializing the
transport interface.
public SessionTransportProvider open(java.lang.String[] params)
throws TransportException
open in interface TransportProviderparams - parameters that are used for creating the client session.
TransportException - in case of an error during opening the
transport interface.
public void close()
throws TransportException
close in interface TransportProviderTransportException - in case of an error during closing.public void setLogInterface(LogInterface logInterface)
setLogInterface in interface TransportProvider
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||