COSMOS ${releaseVersion} data-collection Project
Public API Specification

org.eclipse.cosmos.dc.tptp.gla.components.source
Class CBESource

java.lang.Object
  extended by org.eclipse.cosmos.dc.common.api.impl.AbstractSource
      extended by org.eclipse.cosmos.dc.tptp.gla.components.source.CBESource
All Implemented Interfaces:
IDataSourceService, ComponentEventSource, IWireSource, org.eclipse.hyades.logging.adapter.IContextListener

public class CBESource
extends AbstractSource
implements org.eclipse.hyades.logging.adapter.IContextListener, ComponentEventSource


Field Summary
 
Fields inherited from class org.eclipse.cosmos.dc.common.api.impl.AbstractSource
_proxy, targetList
 
Fields inherited from interface org.eclipse.cosmos.dc.common.api.IDataSourceService
DATA_SOURCE_QNAME, FACTORY_QNAME, SOURCE_QNAME
 
Constructor Summary
CBESource(ContributionManager manager, org.w3c.dom.Element binding)
           
 
Method Summary
 boolean acceptWireTarget(IWireTarget target)
           
 void addListener(ComponentListener listener)
           
 boolean cancel()
           
 boolean connect()
           
 boolean disconnect()
           
 DataSource getDataSource()
           
 java.lang.Class[] getOutputTypes()
           
 java.lang.String[] getTargetContextUniqueIds()
           
 boolean pause()
           
 void postProcessEventItems(org.eclipse.hyades.logging.adapter.IComponent component, java.lang.Object[] results)
           
 void preProcessEventItems(org.eclipse.hyades.logging.adapter.IComponent component, java.lang.Object[] msgs)
           
 boolean resume()
           
 boolean run()
           
 void setDataSource(DataSource datasource)
           
 
Methods inherited from class org.eclipse.cosmos.dc.common.api.impl.AbstractSource
addWireTarget, dispatch, getWireMethod, getWireTargets, setWireMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CBESource

public CBESource(ContributionManager manager,
                 org.w3c.dom.Element binding)
Method Detail

acceptWireTarget

public boolean acceptWireTarget(IWireTarget target)
                         throws java.lang.Exception
Specified by:
acceptWireTarget in class AbstractSource
Throws:
java.lang.Exception

cancel

public boolean cancel()
               throws java.lang.Exception
Specified by:
cancel in interface IDataSourceService
Specified by:
cancel in class AbstractSource
Throws:
java.lang.Exception

connect

public boolean connect()
                throws java.lang.Exception
Specified by:
connect in interface IDataSourceService
Specified by:
connect in class AbstractSource
Throws:
java.lang.Exception

disconnect

public boolean disconnect()
                   throws java.lang.Exception
Specified by:
disconnect in interface IDataSourceService
Specified by:
disconnect in class AbstractSource
Throws:
java.lang.Exception

pause

public boolean pause()
              throws java.lang.Exception
Specified by:
pause in interface IDataSourceService
Specified by:
pause in class AbstractSource
Throws:
java.lang.Exception

resume

public boolean resume()
               throws java.lang.Exception
Specified by:
resume in interface IDataSourceService
Specified by:
resume in class AbstractSource
Throws:
java.lang.Exception

run

public boolean run()
            throws java.lang.Exception
Specified by:
run in interface IDataSourceService
Specified by:
run in class AbstractSource
Throws:
java.lang.Exception

getOutputTypes

public java.lang.Class[] getOutputTypes()
Specified by:
getOutputTypes in interface IDataSourceService
Specified by:
getOutputTypes in interface IWireSource

getTargetContextUniqueIds

public java.lang.String[] getTargetContextUniqueIds()
Specified by:
getTargetContextUniqueIds in interface org.eclipse.hyades.logging.adapter.IContextListener

postProcessEventItems

public void postProcessEventItems(org.eclipse.hyades.logging.adapter.IComponent component,
                                  java.lang.Object[] results)
Specified by:
postProcessEventItems in interface org.eclipse.hyades.logging.adapter.IContextListener

preProcessEventItems

public void preProcessEventItems(org.eclipse.hyades.logging.adapter.IComponent component,
                                 java.lang.Object[] msgs)
Specified by:
preProcessEventItems in interface org.eclipse.hyades.logging.adapter.IContextListener

getDataSource

public DataSource getDataSource()
Specified by:
getDataSource in interface IDataSourceService

setDataSource

public void setDataSource(DataSource datasource)

addListener

public void addListener(ComponentListener listener)
Specified by:
addListener in interface ComponentEventSource

COSMOS ${releaseVersion} data-collection Project
Public API Specification