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 LogInterface
getLogger()
Returns the LogInterface we are logging tojava.lang.String
getVersion()
Return version informationvoid
initialize(java.lang.Object o)
Initializes the Connector.void
putEntry(Entry entry)
Log a single Entry to the logvoid
terminate()
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.Exception
Initializes the Connector.- Specified by:
initialize
in interfaceConnectorInterface
- Overrides:
initialize
in 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:
putEntry
in interfaceConnectorInterface
- Overrides:
putEntry
in 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:
terminate
in interfaceConnectorInterface
- Overrides:
terminate
in 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
-
-