TPTP 4.4.0 Monitoring Tools Project
Public API Specification

org.eclipse.hyades.logging.parsers.adapter.outputters
Class CBEXMLLogImportOutputter

java.lang.Object
  extended byorg.eclipse.hyades.logging.adapter.impl.Component
      extended byorg.eclipse.hyades.logging.adapter.impl.ProcessUnit
          extended byorg.eclipse.hyades.logging.adapter.impl.Outputter
              extended byorg.eclipse.hyades.logging.parsers.adapter.outputters.LogImportOutputter
                  extended byorg.eclipse.hyades.logging.parsers.adapter.outputters.CBEXMLLogImportOutputter
All Implemented Interfaces:
IComponent, IOutputter, IProcessUnit

public class CBEXMLLogImportOutputter
extends LogImportOutputter

This outputter emits the CommonBaseEvents to a logger associated with the Log Import Wizard of Log and Trace Analyzer. The logger is stored by the ParserWrapper class. Note, this outputter is intended only to be used for importing CommonBaseEvent XML files. That is, it should only be used in adapters used to import log files that contain CommonBaseEvents in XML format. It only accepts arrays of String objects from a sensor or arrays of MessageString objects from an extractor and writes to a logger that excepts String objects.


Field Summary
 
Fields inherited from class org.eclipse.hyades.logging.parsers.adapter.outputters.LogImportOutputter
outLogger
 
Fields inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit
flushingMode
 
Fields inherited from class org.eclipse.hyades.logging.adapter.impl.Component
logger, status, stopping
 
Constructor Summary
CBEXMLLogImportOutputter()
           
 
Method Summary
 java.lang.Object[] processEventItems(java.lang.Object[] msgs)
          This implementation processes messages represented by an array of String objects where each String represents a CommonBaseEvent in XML format.
 java.lang.Object[] testProcessEventItems(java.lang.Object[] msgs)
          Simulate processing the CommonBaseEvents.
 
Methods inherited from class org.eclipse.hyades.logging.parsers.adapter.outputters.LogImportOutputter
update
 
Methods inherited from class org.eclipse.hyades.logging.adapter.impl.ProcessUnit
flushEventItems, getProperties, setProperties, 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, 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.IProcessUnit
flushEventItems
 
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
 

Constructor Detail

CBEXMLLogImportOutputter

public CBEXMLLogImportOutputter()
Method Detail

processEventItems

public java.lang.Object[] processEventItems(java.lang.Object[] msgs)
This implementation processes messages represented by an array of String objects where each String represents a CommonBaseEvent in XML format. Each CommonBaseEvent XML String is written to the logger associated with the Log Import Wizard.

Specified by:
processEventItems in interface IProcessUnit
Overrides:
processEventItems in class LogImportOutputter
Parameters:
msgs - - an array of objects representing messages
Returns:
the same array of objects that was passed in.
See Also:
IProcessUnit.processEventItems(java.lang.Object[])

testProcessEventItems

public java.lang.Object[] testProcessEventItems(java.lang.Object[] msgs)
                                         throws AdapterInvalidConfig
Description copied from class: LogImportOutputter
Simulate processing the CommonBaseEvents.

Specified by:
testProcessEventItems in interface IProcessUnit
Overrides:
testProcessEventItems in class LogImportOutputter
Throws:
AdapterInvalidConfig
See Also:
IProcessUnit.testProcessEventItems(java.lang.Object[])

TPTP 4.4.0 Monitoring Tools Project
Public API Specification