|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.di.connector.Connector
com.ibm.di.connector.TCPServerConnector
public class TCPServerConnector
Simple TCP Server that accepts TCP connections. Supports SSL and client certificates.
| Field Summary |
|---|
| Fields inherited from class com.ibm.di.connector.Connector |
|---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
| Constructor Summary | |
|---|---|
TCPServerConnector()
Default constructor. |
|
| Method Summary | |
|---|---|
ConnectorInterface |
getNextClient()
Server mode - returns a new instance of the Connector for each client connection. |
Entry |
getNextEntry()
Returns the next Entry from the TCP client. |
TCPServerConnector |
getServerConnector()
Retrieves server connector. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.Object aObj)
Initialize the Connector. |
boolean |
isAccepting()
Checks whether this Connector is currently waiting for a client connection. |
boolean |
isTerminating()
Checks if a termination is requested. |
void |
putEntry(Entry aEntry)
Flushes the output stream to the client. |
void |
replyEntry(Entry aEntry)
Flushes the output stream to the client and closes the connection. |
void |
setServerConnector(TCPServerConnector aServerConnector)
Sets the server Connector for this Connector. |
void |
terminate()
Terminate the connector. |
void |
terminateServer()
This method tries to terminate the server by setting the termination flag for the Connector returned by getServerConnector and immediately connecting to its port. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.di.connector.ConnectorInterface |
|---|
deleteEntry, findEntry, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getMaxDuplicateEntries, getName, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, selectEntries, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface |
| Constructor Detail |
|---|
public TCPServerConnector()
| Method Detail |
|---|
public TCPServerConnector getServerConnector()
public void setServerConnector(TCPServerConnector aServerConnector)
aServerConnector - The serverConnector.public boolean isAccepting()
public boolean isTerminating()
public void initialize(java.lang.Object aObj)
throws java.lang.Exception
initialize in interface ConnectorInterfaceinitialize in class ConnectoraObj - Null, Socket or ConnectorMode class
java.lang.Exception - if the initialization of this connector fails.
public ConnectorInterface getNextClient()
throws java.lang.Exception
getNextClient in interface ConnectorInterfacegetNextClient in class Connectorjava.lang.Exception - if an error occurs.
public Entry getNextEntry()
throws java.lang.Exception
getNextEntry in interface ConnectorInterfacegetNextEntry in class Connectorjava.lang.Exception - if an error occurs.ConnectorInterface.selectEntries()
public void putEntry(Entry aEntry)
throws java.lang.Exception
putEntry in interface ConnectorInterfaceputEntry in class ConnectoraEntry - This parameter is ignored
java.lang.Exception - if an error occurs.
public void replyEntry(Entry aEntry)
throws java.lang.Exception
replyEntry in interface ConnectorInterfacereplyEntry in class ConnectoraEntry - This parameter is ignored
java.lang.Exception - if an error occurs.
public void terminateServer()
throws java.lang.Exception
terminateServer in interface ConnectorInterfaceterminateServer in class Connectorjava.lang.Exception - if an error occurs
public void terminate()
throws java.lang.Exception
terminate in interface ConnectorInterfaceterminate in class Connectorjava.lang.Exception - if an error occurs.public java.lang.String getVersion()
getVersion in interface VersionInfoInterface
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||