Package com.ibm.di.connector
Class LogConnector
- java.lang.Object
-
- com.ibm.di.connector.Connector
-
- com.ibm.di.connector.LogConnector
-
- All Implemented Interfaces:
ConnectorInterface,VersionInfoInterface
public class LogConnector extends Connector
This class implements a Connector that interfaces with the LogInterface. The class only supports AddOnly Mode.
-
-
Field Summary
-
Fields inherited from class com.ibm.di.connector.Connector
ALL_MODES, myLog, PROPERTY_MESSAGE, PROPERTY_READER, PROPERTY_WRITER
-
-
Constructor Summary
Constructors Constructor Description LogConnector()The constructor for this class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LogInterfacegetLogger()Returns the LogInterface we are logging tojava.lang.StringgetVersion()Return version informationvoidinitialize(java.lang.Object o)Initializes the Connector.voidputEntry(Entry entry)Log a single Entry to the logvoidterminate()Terminates the Connector and tries to free up resources-
Methods inherited from class com.ibm.di.connector.Connector
addFindEntry, allModes, clearFindEntries, debug, debugMode, deleteEntry, extractExceptionInformation, findEntry, findEntry, getBoolean, getClassInstance, getConfiguration, getContext, getFindEntryCount, getFirstFindEntry, getLog, getMaxDuplicateEntries, getModes, getModes, getName, getNextClient, getNextEntry, getNextFindEntry, getParam, getParser, getProperty, getPushbackEntry, getRawConnectorConfiguration, getRSInterface, getUI, hasConfigValue, hasParser, initParser, isDeltaSupported, isExceptionFatal, isIOException, logError, logmsg, modEntry, modEntry, pushback, queryOperations, queryReply, querySchema, queryTables, reconnect, reconnect, registerScriptBeans, replyEntry, selectEntries, setConfiguration, setContext, setCurrent, setDebugMode, setLog, setMaxDuplicateEntries, setModes, setModes, setName, setParam, setParser, setProperty, setRSInterface, terminateServer
-
-
-
-
Method Detail
-
initialize
public void initialize(java.lang.Object o) throws java.lang.ExceptionInitializes the Connector.- Specified by:
initializein interfaceConnectorInterface- Overrides:
initializein classConnector- Parameters:
o- - Ignored- Throws:
java.lang.Exception- if an error occurs.
-
putEntry
public void putEntry(Entry entry) throws java.lang.Exception
Log a single Entry to the log- Specified by:
putEntryin interfaceConnectorInterface- Overrides:
putEntryin classConnector- Parameters:
entry- The entry with the information to log- Throws:
java.lang.Exception- if an error occurs
-
terminate
public void terminate()
Terminates the Connector and tries to free up resources- Specified by:
terminatein interfaceConnectorInterface- Overrides:
terminatein classConnector
-
getLogger
public LogInterface getLogger()
Returns the LogInterface we are logging to- Returns:
- the logging object
-
getVersion
public java.lang.String getVersion()
Return version information- Returns:
- version info
-
-