|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.adventnet.management.transport.TcpServerTransportImpl
Server side implementation of the TransportProvider interface that provides TCP as the lower layer transport. This class creates the ServerSocket that listens for incoming client requests and creates a session for each client request.
Constructor Summary | |
TcpServerTransportImpl()
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 ServerSocket over which the data is sent/received. |
SessionTransportProvider |
open(java.lang.String[] params)
Creates a session for communicating with each of the clients and returns a handle (session instance) to the connection request received from the client. |
void |
setLogInterface(LogInterface logInterface)
Sets the LogInterface object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TcpServerTransportImpl()
Method Detail |
public void init(java.lang.Object[] params) throws TransportException
init
in interface TransportProvider
params
- parameters that are used for creating the session.
TransportException
- is thrown in case of an error during initializing
the transport interface.public SessionTransportProvider open(java.lang.String[] params) throws TransportException
open
in interface TransportProvider
params
- Parameters that are required to create the session.
TransportException
- is thrown in case of an error during opening the
transport interface.public void close() throws TransportException
close
in interface TransportProvider
TransportException
- is thrown 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 |