|
||||||||||
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()
Returns the server Connector if this Connector is handling a TCP client session. |
String |
getVersion()
Return version information |
void |
initialize(Object aObj)
Initialize the Connector. |
boolean |
isAccepting()
Returns true if this Connector is currently waiting for a client connection. |
boolean |
isTerminating()
Returns true if this Connector has the termination flag set. |
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(Object aObj) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObj
- Null, Socket or ConnectorMode class
Exception
public ConnectorInterface getNextClient() throws Exception
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
Exception
public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
Connector.selectEntries()
public void putEntry(Entry aEntry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
aEntry
- This parameter is ignored
Exception
- Any exceptions thrown by the connector's underlying classespublic void replyEntry(Entry aEntry) throws Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
aEntry
- This parameter is ignored
Exception
public void terminateServer() throws Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
Exception
public void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
public String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |