com.ibm.di.connector
Class LogConnector

java.lang.Object
  extended by com.ibm.di.connector.Connector
      extended by 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
LogConnector()
          The constructor for this class
 
Method Summary
 LogInterface getLogger()
          Returns the LogInterface we are logging to
 String getVersion()
          Return version information
 void initialize(Object o)
          Initializes the Connector.
 void putEntry(Entry entry)
          Log a single Entry to the log
 void 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, 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogConnector

public LogConnector()
The constructor for this class

Method Detail

initialize

public void initialize(Object o)
                throws Exception
Initializes the Connector.

Specified by:
initialize in interface ConnectorInterface
Overrides:
initialize in class Connector
Parameters:
o - - Ignored
Throws:
Exception - if an error occurs.

putEntry

public void putEntry(Entry entry)
              throws Exception
Log a single Entry to the log

Specified by:
putEntry in interface ConnectorInterface
Overrides:
putEntry in class Connector
Parameters:
entry - The entry with the information to log
Throws:
Exception - if an error occurs

terminate

public void terminate()
Terminates the Connector and tries to free up resources

Specified by:
terminate in interface ConnectorInterface
Overrides:
terminate in class Connector

getLogger

public LogInterface getLogger()
Returns the LogInterface we are logging to

Returns:
the logging object

getVersion

public String getVersion()
Return version information

Returns:
version info