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

org.eclipse.cosmos.dc.common.api.impl
Class AbstractPersistor

java.lang.Object
  extended by org.eclipse.cosmos.dc.common.api.impl.AbstractPersistor
All Implemented Interfaces:
IDataSinkService, IWireTarget
Direct Known Subclasses:
ByteStreamPersistor, CBERDBSink, NullPersistor, StatisticalPersistor

public abstract class AbstractPersistor
extends java.lang.Object
implements IDataSinkService


Field Summary
protected  IDataSinkService _proxy
           
 
Fields inherited from interface org.eclipse.cosmos.dc.common.api.IDataSinkService
DATA_FLOW_QNAME, DATA_KEY_QNAME, DATA_KEY_SET_QNAME, DATA_SOURCE_TYPE_QNAME, SINK_QNAME
 
Constructor Summary
AbstractPersistor(ContributionManager manager)
           
 
Method Summary
 boolean acceptType(java.lang.Class type)
           
abstract  boolean acceptWireSource(IWireSource target)
           
 java.lang.Class[] getAcceptableTypes()
           
 java.lang.reflect.Method getStoreMethod(java.lang.Class type)
           
protected abstract  java.lang.Class[] getSupportedTypes()
           
 java.lang.reflect.Method getWireMethod()
           
 IWireSource getWireSource()
           
 void setWireMethod(java.lang.reflect.Method wireMethod)
           
 void setWireSource(IWireSource source)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.cosmos.dc.common.api.IDataSinkService
getDimensionSet, setDataSet
 

Field Detail

_proxy

protected IDataSinkService _proxy
Constructor Detail

AbstractPersistor

public AbstractPersistor(ContributionManager manager)
Method Detail

getSupportedTypes

protected abstract java.lang.Class[] getSupportedTypes()

acceptType

public boolean acceptType(java.lang.Class type)
Specified by:
acceptType in interface IDataSinkService
Specified by:
acceptType in interface IWireTarget

getStoreMethod

public java.lang.reflect.Method getStoreMethod(java.lang.Class type)
Specified by:
getStoreMethod in interface IDataSinkService

acceptWireSource

public abstract boolean acceptWireSource(IWireSource target)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

setWireSource

public void setWireSource(IWireSource source)
                   throws java.lang.Exception
Specified by:
setWireSource in interface IWireTarget
Throws:
java.lang.Exception

getWireSource

public IWireSource getWireSource()
Specified by:
getWireSource in interface IWireTarget

setWireMethod

public void setWireMethod(java.lang.reflect.Method wireMethod)
Specified by:
setWireMethod in interface IWireTarget

getWireMethod

public java.lang.reflect.Method getWireMethod()
Specified by:
getWireMethod in interface IWireTarget

getAcceptableTypes

public java.lang.Class[] getAcceptableTypes()
Specified by:
getAcceptableTypes in interface IWireTarget

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