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

org.eclipse.cosmos.dc.sample.components.sink
Class TimePersistor

java.lang.Object
  extended by org.eclipse.cosmos.dc.common.api.impl.AbstractPersistor
      extended by org.eclipse.cosmos.dc.sample.components.sink.ByteStreamPersistor
          extended by org.eclipse.cosmos.dc.sample.components.sink.TimePersistor
All Implemented Interfaces:
IDataSinkService, IWireTarget

public class TimePersistor
extends ByteStreamPersistor
implements IDataSinkService


Field Summary
 
Fields inherited from class org.eclipse.cosmos.dc.common.api.impl.AbstractPersistor
_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
TimePersistor(ContributionManager manager)
           
 
Method Summary
 boolean acceptWireSource(IWireSource target)
           
protected  java.lang.Class[] getSupportedTypes()
           
 void store(byte[] bytes)
           
 void store(TimeObject obj)
           
 
Methods inherited from class org.eclipse.cosmos.dc.sample.components.sink.ByteStreamPersistor
getDimensionSet, setDataSet
 
Methods inherited from class org.eclipse.cosmos.dc.common.api.impl.AbstractPersistor
acceptType, getAcceptableTypes, getStoreMethod, getWireMethod, getWireSource, setWireMethod, setWireSource
 
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
acceptType, getDimensionSet, getStoreMethod, setDataSet
 
Methods inherited from interface org.eclipse.cosmos.dc.common.spi.IWireTarget
getAcceptableTypes, getWireMethod, getWireSource, setWireMethod, setWireSource
 

Constructor Detail

TimePersistor

public TimePersistor(ContributionManager manager)
Method Detail

store

public void store(byte[] bytes)
           throws java.lang.Exception
Overrides:
store in class ByteStreamPersistor
Throws:
java.lang.Exception

store

public void store(TimeObject obj)
           throws java.lang.Exception
Throws:
java.lang.Exception

getSupportedTypes

protected java.lang.Class[] getSupportedTypes()
Overrides:
getSupportedTypes in class ByteStreamPersistor

acceptWireSource

public boolean acceptWireSource(IWireSource target)
                         throws java.lang.Exception
Overrides:
acceptWireSource in class ByteStreamPersistor
Throws:
java.lang.Exception

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