com.ibm.di.connector
Class StreamConnector
java.lang.Object
com.ibm.di.connector.Connector
com.ibm.di.connector.StreamConnector
All Implemented Interfaces: ConnectorInterface , VersionInfoInterface
public class StreamConnector extends Connector implements ConnectorInterface
Methods inherited from class com.ibm.di.connector.Connector
addFindEntry , allModes , clearFindEntries , debug , debugMode , deleteEntry , findEntry , findEntry , getBoolean , getClassInstance , getConfiguration , getContext , getFindEntryCount , getFirstFindEntry , getLog , getMaxDuplicateEntries , getModes , getModes , getName , getNextClient , getNextFindEntry , getParam , getParser , getProperty , getPushbackEntry , getRawConnectorConfiguration , getRSInterface , hasConfigValue , hasParser , initParser , isDeltaSupported , isExceptionFatal , isIOException , logmsg , modEntry , modEntry , pushback , queryOperations , queryReply , querySchema , queryTables , reconnect , reconnect , registerScriptBeans , replyEntry , setConfiguration , setContext , setCurrent , setLog , setMaxDuplicateEntries , setModes , setModes , setName , setParam , setParser , setProperty , setRSInterface , terminate , terminateServer
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 , terminate , terminateServer
StreamConnector
public StreamConnector ()
selectEntries
public void selectEntries ()
throws Exception
Description copied from class: Connector
Prepare the Connector for sequential read.
If necessary, create a result set to be used for getNextEntry().
When the Connector is used as an Iterator in an AssemblyLine,
this method will be called.
Default is an empty method.
Specified by: selectEntries
in interface ConnectorInterface
Overrides: selectEntries
in class Connector
Throws:
Exception
initialize
public void initialize (Object o)
throws Exception
Description copied from class: Connector
Initialize the connector. The connector may be passed a parameter of any kind by the user. It is up
to the connector to determine whether this object can be used or not. The parameter is typically
provided by a user script. When an AssemblyLine initializes it's Connectors, they are passed
a ConnectorMode object.
Specified by: initialize
in interface ConnectorInterface
Overrides: initialize
in class Connector
Parameters: o
- User provided parameter
Throws:
Exception
getNextEntry
public Entry getNextEntry ()
throws Exception
Description copied from class: Connector
Returns the next Entry from the connector.
The entry is populated with attributes and values from the next entry in the input set.
Specified by: getNextEntry
in interface ConnectorInterface
Overrides: getNextEntry
in class Connector
Returns: - the next Entry, or null if no more data
Throws:
Exception
See Also: Connector.selectEntries()
putEntry
public void putEntry (Entry entry)
throws Exception
Description copied from class: Connector
Adds a new entry to the data source
Specified by: putEntry
in interface ConnectorInterface
Overrides: putEntry
in class Connector
Parameters: entry
- The entry data to add
Throws:
Exception
- Any exceptions thrown by the connector's underlying classes
getDataBuffer
public String getDataBuffer ()
throws Exception
Throws:
Exception
getVersion
public String getVersion ()
Return version information
Specified by: getVersion
in interface VersionInfoInterface