|
|||||||||||
| 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.CommandLineConnector
public class CommandLineConnector
The command line Connector enables you to read the output from a command line or pipe data to a command line's standard input. Every command argument is separated by a space character, and quotes are ignored. The command is executed on the local machine. The Connector supports Iterator and AddOnly mode, as well as CallReply mode.
| Field Summary | |
|---|---|
static String |
ATTR_COMMAND_LINE
The name of the attribute in which the command line has to be put in CallReply mode |
static String |
ATTR_COMMAND_OUTPUT
The name of the attribute in which the result of the executed command in CallReply mode is stored |
| Fields inherited from class com.ibm.di.connector.Connector |
|---|
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER |
| Constructor Summary | |
|---|---|
CommandLineConnector()
Constructor. |
|
| Method Summary | |
|---|---|
Entry |
getNextEntry()
Return the next Entry from the connector. |
String |
getVersion()
Version information. |
void |
initialize(Object o)
Initialize the connector. |
void |
putEntry(Entry entry)
Add a new entry to the data source |
Entry |
queryReply(Entry aEntry)
In a CallReply mode executes the command stored in the attribute of the given Entry with name CommandLineConnector.ATTR_COMMAND_LINE and stores the result in the returned Entry in an attribute with name CommandLineConnector.ATTR_COMMAND_OUTPUT. |
void |
selectEntries()
Empty. |
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, querySchema, reconnect, registerScriptBeans, replyEntry, setConfiguration, setContext, setCurrent, setLog, setMaxDuplicateEntries, setName, setParam, setRSInterface, terminateServer |
| Field Detail |
|---|
public static final String ATTR_COMMAND_LINE
public static final String ATTR_COMMAND_OUTPUT
| Constructor Detail |
|---|
public CommandLineConnector()
| Method Detail |
|---|
public void initialize(Object o)
throws Exception
initialize in interface ConnectorInterfaceinitialize in class Connectoro - Expects the ConnectorMode
Exception - if the initialization of this connector fails.
public void terminate()
throws Exception
terminate in interface ConnectorInterfaceterminate in class ConnectorException - if an error occurs.
public void selectEntries()
throws Exception
selectEntries in interface ConnectorInterfaceselectEntries in class ConnectorException - if an error occurs.
public Entry getNextEntry()
throws Exception
getNextEntry in interface ConnectorInterfacegetNextEntry in class ConnectorException - if an error occurs.ConnectorInterface.selectEntries()
public void putEntry(Entry entry)
throws Exception
putEntry in interface ConnectorInterfaceputEntry in class Connectorentry - The entry data to add
Exception - if an error occurs.
public Entry queryReply(Entry aEntry)
throws Exception
queryReply in interface ConnectorInterfacequeryReply in class ConnectoraEntry - The Entry with the command line to be executed.
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 | ||||||||||