TPTP 4.4.0 Monitoring Tools Project
Internal API Specification

org.eclipse.hyades.logging.parsers.internal.adapter.outputters
Class CBEProducerToConsumerNavigator

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.internal.adapter.outputters.CBEProducerToConsumerNavigator
All Implemented Interfaces:
org.eclipse.hyades.logging.adapter.IComponent, org.eclipse.hyades.logging.adapter.IOutputter, org.eclipse.hyades.logging.adapter.IProcessUnit
Direct Known Subclasses:
CBEtoCSVOutputter, CBEtoMemoryOutputter

public class CBEProducerToConsumerNavigator
extends org.eclipse.hyades.logging.adapter.impl.Outputter
implements org.eclipse.hyades.logging.adapter.IOutputter

Since:
4.2 This is the base navigator class. It provides mapping from producer CommonBaseEvent to consumer CBECommonBaseEvent.

Field Summary
protected static int AvailableSituation_TYPE_HashCode
           
protected  int calls
           
protected  int cbeCount
           
protected static int ConfigureSituation_TYPE_HashCode
           
protected static int ConnectSituation_TYPE_HashCode
           
protected static int CreateSituation_TYPE_HashCode
           
protected static int DependencySituation_TYPE_HashCode
           
protected static int DestroySituation_TYPE_HashCode
           
protected  int eventsProcessed
           
protected static int FeatureSituation_TYPE_HashCode
           
protected static int OtherSituation_TYPE_HashCode
           
protected  org.eclipse.hyades.models.hierarchy.util.PerfUtil p
           
protected static int ReportSituation_TYPE_HashCode
           
protected static int RequestSituation_TYPE_HashCode
           
protected static int Situation_TYPE_HashCode
           
protected static int StartSituation_TYPE_HashCode
           
protected static int StopSituation_TYPE_HashCode
           
 
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
CBEProducerToConsumerNavigator()
           
 
Method Summary
protected  void mapAssociatedEvents(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent object, int common_base_event__associated_events)
           
protected  void mapAttribute(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.AvailableSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ComponentIdentification eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ConfigureSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ConnectSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ContextDataElement eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.CreateSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.DependencySituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.DestroySituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.FeatureSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.MsgCatalogToken eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.MsgDataElement eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.OtherSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ReportSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.RequestSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.Situation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.SituationType eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.StartSituation eObject, int sourceFeatureID, int targetFeatureID)
           
protected  void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.StopSituation eObject, int sourceFeatureID, int targetFeatureID)
           
static java.lang.Object normalizeObject(java.lang.Object o)
           
protected  void postProcessEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)
           
protected  void preProcessEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)
           
protected  org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] processCBEs(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] events)
          Process the CommonBaseEvent events passed in.
protected  void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)
           
 java.lang.Object[] processEventItems(java.lang.Object[] msgs)
          This implementation processes messages represented by an array of CommonBaseEvent objects where each CommonBaseEvent represents a message.
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.AvailableSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.ComponentIdentification eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.ConfigureSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.ConnectSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.ContextDataElement eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.CreateSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.DependencySituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.DestroySituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.FeatureSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.MsgCatalogToken eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.MsgDataElement eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.OtherSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.ReportSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.RequestSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.Situation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.SituationType eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.StartSituation eObject)
           
protected  void processFeatures(org.eclipse.hyades.logging.events.cbe.StopSituation eObject)
           
 void start()
           
 void stop()
           
 java.lang.Object[] testProcessEventItems(java.lang.Object[] msgs)
          Simulate processing the CommonBaseEvents.
 void 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, 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, update
 

Field Detail

p

protected org.eclipse.hyades.models.hierarchy.util.PerfUtil p

calls

protected int calls

eventsProcessed

protected int eventsProcessed

AvailableSituation_TYPE_HashCode

protected static final int AvailableSituation_TYPE_HashCode
See Also:
Constant Field Values

ConfigureSituation_TYPE_HashCode

protected static final int ConfigureSituation_TYPE_HashCode
See Also:
Constant Field Values

ConnectSituation_TYPE_HashCode

protected static final int ConnectSituation_TYPE_HashCode
See Also:
Constant Field Values

CreateSituation_TYPE_HashCode

protected static final int CreateSituation_TYPE_HashCode
See Also:
Constant Field Values

DependencySituation_TYPE_HashCode

protected static final int DependencySituation_TYPE_HashCode
See Also:
Constant Field Values

DestroySituation_TYPE_HashCode

protected static final int DestroySituation_TYPE_HashCode
See Also:
Constant Field Values

FeatureSituation_TYPE_HashCode

protected static final int FeatureSituation_TYPE_HashCode
See Also:
Constant Field Values

OtherSituation_TYPE_HashCode

protected static final int OtherSituation_TYPE_HashCode
See Also:
Constant Field Values

ReportSituation_TYPE_HashCode

protected static final int ReportSituation_TYPE_HashCode
See Also:
Constant Field Values

RequestSituation_TYPE_HashCode

protected static final int RequestSituation_TYPE_HashCode
See Also:
Constant Field Values

Situation_TYPE_HashCode

protected static final int Situation_TYPE_HashCode
See Also:
Constant Field Values

StartSituation_TYPE_HashCode

protected static final int StartSituation_TYPE_HashCode
See Also:
Constant Field Values

StopSituation_TYPE_HashCode

protected static final int StopSituation_TYPE_HashCode
See Also:
Constant Field Values

cbeCount

protected int cbeCount
Constructor Detail

CBEProducerToConsumerNavigator

public CBEProducerToConsumerNavigator()
Method Detail

processEventItems

public java.lang.Object[] processEventItems(java.lang.Object[] msgs)
This implementation processes messages represented by an array of CommonBaseEvent objects where each CommonBaseEvent represents a message.

Specified by:
processEventItems in interface org.eclipse.hyades.logging.adapter.IProcessUnit
Parameters:
msgs - - an array of CommonBaseEvent objects representing messages
Returns:
the same array of CommonBaseEvent objects that was passed in.
See Also:
IProcessUnit.processEventItems(java.lang.Object[])

processCBEs

protected org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] processCBEs(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent[] events)
Process the CommonBaseEvent events passed in.

Parameters:
events - - array of CommonBaseEvent objects to process
Returns:
the same array of CommonBaseEvent objects that was passed in.

update

public void update()
            throws org.eclipse.hyades.logging.adapter.AdapterInvalidConfig
Specified by:
update in interface org.eclipse.hyades.logging.adapter.IComponent
Throws:
org.eclipse.hyades.logging.adapter.AdapterInvalidConfig

start

public void start()
Specified by:
start in interface org.eclipse.hyades.logging.adapter.IComponent

stop

public void stop()
Specified by:
stop in interface org.eclipse.hyades.logging.adapter.IComponent

processEvent

protected void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)

postProcessEvent

protected void postProcessEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)

preProcessEvent

protected void preProcessEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent event)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.AvailableSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.AvailableSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

mapAttribute

protected void mapAttribute(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent eObject,
                            int sourceFeatureID,
                            int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent eObject)

mapAssociatedEvents

protected void mapAssociatedEvents(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent object,
                                   int common_base_event__associated_events)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.ComponentIdentification eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ComponentIdentification eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.ConfigureSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ConfigureSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.ConnectSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ConnectSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.ContextDataElement eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ContextDataElement eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.CreateSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.CreateSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.DependencySituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.DependencySituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.DestroySituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.DestroySituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ExtendedDataElement eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.FeatureSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.FeatureSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.MsgCatalogToken eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.MsgCatalogToken eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.MsgDataElement eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.MsgDataElement eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.OtherSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.OtherSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.ReportSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.ReportSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.RequestSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.RequestSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.Situation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.Situation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.SituationType eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.SituationType eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.StartSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.StartSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

processFeatures

protected void processFeatures(org.eclipse.hyades.logging.events.cbe.StopSituation eObject)

mapContainmentReference

protected void mapContainmentReference(org.eclipse.hyades.logging.events.cbe.StopSituation eObject,
                                       int sourceFeatureID,
                                       int targetFeatureID)

testProcessEventItems

public java.lang.Object[] testProcessEventItems(java.lang.Object[] msgs)
                                         throws org.eclipse.hyades.logging.adapter.AdapterInvalidConfig
Simulate processing the CommonBaseEvents.

Specified by:
testProcessEventItems in interface org.eclipse.hyades.logging.adapter.IProcessUnit
Throws:
org.eclipse.hyades.logging.adapter.AdapterInvalidConfig
See Also:
IProcessUnit.testProcessEventItems(java.lang.Object[])

normalizeObject

public static java.lang.Object normalizeObject(java.lang.Object o)

TPTP 4.4.0 Monitoring Tools Project
Internal API Specification