|
|||||||||||
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. |
String |
getVersion()
Version information. |
void |
initialize(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(Object aObj) throws Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
aObj
- Null, Socket or ConnectorMode class
Exception
- if the initialization of this connector fails.public ConnectorInterface getNextClient() throws Exception
getNextClient
in interface ConnectorInterface
getNextClient
in class Connector
Exception
- if an error occurs.public Entry getNextEntry() throws Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
Exception
- if an error occurs.ConnectorInterface.selectEntries()
public void putEntry(Entry aEntry) throws Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
aEntry
- This parameter is ignored
Exception
- if an error occurs.public void replyEntry(Entry aEntry) throws Exception
replyEntry
in interface ConnectorInterface
replyEntry
in class Connector
aEntry
- This parameter is ignored
Exception
- if an error occurs.public void terminateServer() throws Exception
terminateServer
in interface ConnectorInterface
terminateServer
in class Connector
Exception
- if an error occurspublic void terminate() throws Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
Exception
- if an error occurs.public String getVersion()
getVersion
in interface VersionInfoInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |