Class TDIOutputter

  • All Implemented Interfaces:
    org.eclipse.hyades.logging.adapter.IComponent, org.eclipse.hyades.logging.adapter.IOutputter, org.eclipse.hyades.logging.adapter.IProcessUnit

    public class TDIOutputter
    extends org.eclipse.hyades.logging.adapter.impl.Outputter
    implements org.eclipse.hyades.logging.adapter.IOutputter
    This is an outputter class made to deliver generated CBE objects to a specified connector in IBM Tivoli Directory Integrator.
    • Field Summary

      • Fields inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit

        flushingMode, properties
      • Fields inherited from class org.eclipse.hyades.logging.adapter.impl.Component

        components, configuration, contextConfiguration, description, disabled, eventFactory, executableClassName, implCreationDate, implVersion, implVersionDescription, logger, loggingLevel, name, parent, role, roleCreationDate, roleVersion, roleVersionDescription, SEVERITY_TRACE, status, stopping, uniqueID
    • Constructor Summary

      Constructors 
      Constructor Description
      TDIOutputter()
      Constructs custom outputter which will be used to send the CBE objects to the TDI GLAConnector.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object[] processEventItems​(java.lang.Object[] msgs)
      This outputter processes messages represented by an array of CommonBaseEvent objects where each CommonBaseEvent represents a message.
      void update()
      Updates the configuration.
      • Methods inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit

        flushEventItems, getProperties, setProperties, testProcessEventItems, updateConfigurationPropertyChild
      • Methods inherited from class org.eclipse.hyades.logging.adapter.impl.Component

        clean, getComponents, getComponentStatus, getConfiguration, getContextConfiguration, getDescription, getEventFactory, getExecutableClassName, getImplementationCreationDate, getImplementationVersion, getImplementationVersionDescription, getItemsProcessedCount, getLogger, getLoggingLevel, getName, getParent, getRole, getRoleCreationDate, getRoleVersion, getRoleVersionDescription, getUniqueID, incrementItemsProcessedCount, incrementItemsProcessedCount, init, isDisabled, isStopping, log, log, setComponents, setConfiguration, setContextConfiguration, setDescription, setDisabled, setExecutableClassName, setImplemenationCreationDate, setImplementationVersion, setImplementationVersionDescription, setLogger, setLoggingLevel, setName, setParent, setRole, setRoleCreationDate, setRoleVersion, setRoleVersionDescription, setStopping, setUniqueID, start, stop, stop, trace, trace, trace, trace, update, updateConfigurationAttribute, updateContextConfigurationAttribute
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.eclipse.hyades.logging.adapter.IComponent

        getComponents, getConfiguration, getContextConfiguration, getDescription, getExecutableClassName, getImplementationCreationDate, getImplementationVersion, getImplementationVersionDescription, getLogger, getLoggingLevel, getName, getParent, getRole, getRoleCreationDate, getRoleVersion, getRoleVersionDescription, getUniqueID, init, log, log, setComponents, setConfiguration, setContextConfiguration, setDescription, setExecutableClassName, setImplemenationCreationDate, setImplementationVersion, setImplementationVersionDescription, setLogger, setLoggingLevel, setName, setParent, setRole, setRoleCreationDate, setRoleVersion, setRoleVersionDescription, setUniqueID, start, stop, update
      • Methods inherited from interface org.eclipse.hyades.logging.adapter.IProcessUnit

        flushEventItems, testProcessEventItems
    • Constructor Detail

      • TDIOutputter

        public TDIOutputter()
        Constructs custom outputter which will be used to send the CBE objects to the TDI GLAConnector.
    • Method Detail

      • update

        public void update()
                    throws org.eclipse.hyades.logging.adapter.AdapterInvalidConfig
        Updates the configuration. This method gets the outputter configuration and searches through it to find the 'tdi_correlation_id' parameter. If no such parameter is found than a default value will be set.
        Specified by:
        update in interface org.eclipse.hyades.logging.adapter.IComponent
        Overrides:
        update in class org.eclipse.hyades.logging.adapter.impl.Outputter
        Throws:
        org.eclipse.hyades.logging.adapter.AdapterInvalidConfig - : never
      • processEventItems

        public java.lang.Object[] processEventItems​(java.lang.Object[] msgs)
        This outputter processes messages represented by an array of CommonBaseEvent objects where each CommonBaseEvent represents a message. All CommonBaseEvent objects are sent to the GLAConnector which is registered to use this instance of the TDIOutputter.
        Specified by:
        processEventItems in interface org.eclipse.hyades.logging.adapter.IProcessUnit
        Overrides:
        processEventItems in class org.eclipse.hyades.logging.adapter.impl.ProcessUnit
        Parameters:
        msgs - an array of CommonBaseEvent objects representing messages.
        Returns:
        The same array of CommonBaseEvent objects that was passed in or null if the array is not an instance of CommonBaseEvent class or is null.