|
||||||||||
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 java.lang.String |
ATTR_COMMAND_LINE
The name of the attribute in which the command line has to be put in CallReply mode |
static java.lang.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. |
java.lang.String |
getVersion()
Version information. |
void |
initialize(java.lang.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 java.lang.String ATTR_COMMAND_LINE
public static final java.lang.String ATTR_COMMAND_OUTPUT
Constructor Detail |
---|
public CommandLineConnector()
Method Detail |
---|
public void initialize(java.lang.Object o) throws java.lang.Exception
initialize
in interface ConnectorInterface
initialize
in class Connector
o
- Expects the ConnectorMode
java.lang.Exception
- if the initialization of this connector fails.public void terminate() throws java.lang.Exception
terminate
in interface ConnectorInterface
terminate
in class Connector
java.lang.Exception
- if an error occurs.public void selectEntries() throws java.lang.Exception
selectEntries
in interface ConnectorInterface
selectEntries
in class Connector
java.lang.Exception
- if an error occurs.public Entry getNextEntry() throws java.lang.Exception
getNextEntry
in interface ConnectorInterface
getNextEntry
in class Connector
java.lang.Exception
- if an error occurs.ConnectorInterface.selectEntries()
public void putEntry(Entry entry) throws java.lang.Exception
putEntry
in interface ConnectorInterface
putEntry
in class Connector
entry
- The entry data to add
java.lang.Exception
- if an error occurs.public Entry queryReply(Entry aEntry) throws java.lang.Exception
queryReply
in interface ConnectorInterface
queryReply
in class Connector
aEntry
- The Entry with the command line to be executed.
java.lang.Exception
- if an error occurs.public java.lang.String getVersion()
getVersion
in interface VersionInfoInterface
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |