|
|||||||||||
| 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.TCPConnector
public class TCPConnector
The TCP Connector is a transport Connector using TCP sockets for transport. You can use the TCP Connector in Iterator and AddOnly mode only.
| Field Summary | |
|---|---|
static String |
PARAM_SYSTEM_TCP_BACKLOG
name of the backlog in the global properties file |
static String |
PARAM_TCP_BACKLOG
name of backlog parameter |
| Fields inherited from class com.ibm.di.connector.Connector |
|---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
| Constructor Summary | |
|---|---|
TCPConnector()
Class constructor |
|
| Method Summary | |
|---|---|
Certificate[] |
getCertificates()
Returns the Certificates of the peer. |
Entry |
getNextEntry()
Returns the next Entry from the connector. |
Reader |
getReader()
Returns a reader object for the socket |
Socket |
getSocket()
Returns the Socket we are reading from or writing to |
String |
getVersion()
Return version information |
Writer |
getWriter()
Returns a writer object for the socket |
void |
initialize(Object o)
Initialize the connector. |
void |
putEntry(Entry entry)
Adds a new entry to the data source |
void |
selectEntries()
default implementation |
void |
terminate()
Terminate the connector. |
| 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, getNextClient, getNextFindEntry, getParam, getPushbackEntry, getRawConnectorConfiguration, isDeltaSupported, isExceptionFatal, isIOException, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
| Field Detail |
|---|
public static final String PARAM_TCP_BACKLOG
public static final String PARAM_SYSTEM_TCP_BACKLOG
| Constructor Detail |
|---|
public TCPConnector()
| Method Detail |
|---|
public void selectEntries()
throws Exception
selectEntries in interface ConnectorInterfaceselectEntries in class ConnectorException - neverpublic void terminate()
terminate in interface ConnectorInterfaceterminate in class Connector
public void initialize(Object o)
throws Exception
initialize in interface ConnectorInterfaceinitialize in class Connectoro - User provided parameter
Exception - if the initialization of this connector fails.
public Entry getNextEntry()
throws Exception
getNextEntry in interface ConnectorInterfacegetNextEntry in class ConnectorException - if an error occursselectEntries()
public void putEntry(Entry entry)
throws Exception
Example:
var ctor = write.getConnector();
for (i = 0; i < 10; i++) {
var entry = system.newEntry();
entry.setAttribute("linenumber", i);
entry.setAttribute("line", i + " line of text...");
main.logmsg("Writes entry to output...");
main.dumpEntry(entry);
ctor.putEntry(entry);
}
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - The entry data to add
Exception - if an error occurs.
public Reader getReader()
throws Exception
Exception - if an error occurs
public Writer getWriter()
throws Exception
Exception - if an error occurspublic Socket getSocket()
public Certificate[] getCertificates()
throws SSLPeerUnverifiedException
getSocket().getSession().getPeerCertificates();
SSLPeerUnverifiedException - if the peer's identity has not been verifiedpublic String getVersion()
getVersion in interface VersionInfoInterface
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||