Class SimpleSourceImpl
java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService
de.iip_ecosphere.platform.services.environment.DefaultServiceImpl
iip.impl.SimpleDataSourceImpl
de.iip_ecosphere.platform.test.apps.serviceImpl.SimpleSourceImpl
- All Implemented Interfaces:
de.iip_ecosphere.platform.services.environment.ParameterConfigurerProvider,de.iip_ecosphere.platform.services.environment.Service,de.iip_ecosphere.platform.services.environment.switching.ServiceBase,iip.interfaces.SimpleDataSourceInterface
public class SimpleSourceImpl
extends iip.impl.SimpleDataSourceImpl
A simple test source ingesting data according to a timer schema. Analogously, a connector can be linked to a
data ingestor.
- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsFields inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
APPLICATION_SEPARATOR, DEFAULT_APPLICATION_INSTANCE_IDFields inherited from interface iip.interfaces.SimpleDataSourceInterface
SERVICE_ID -
Constructor Summary
ConstructorsConstructorDescriptionFallback constructor.SimpleSourceImpl(String serviceId, InputStream ymlFile) Creates a service instance from a service id and a YAML artifact. -
Method Summary
Modifier and TypeMethodDescriptionvoidattachRec1Ingestor(de.iip_ecosphere.platform.services.environment.DataIngestor<iip.datatypes.Rec1> ingestor) Called by the platform to attach an asynchronous data ingestor for type "Rec1".voidprocessFeedback(iip.datatypes.Feedback data) iip.datatypes.Rec1Creates data to be ingested.Methods inherited from class iip.impl.SimpleDataSourceImpl
createRec1, getParameterCamIP, getParameterCamPort, getParameterConfigurer, getParameterNames, hasRec1Ingestor, hasRec1IngestorCount, ingestRec1, registerParameterConfigurers, setParameterCamIP, setParameterCamPortMethods inherited from class de.iip_ecosphere.platform.services.environment.DefaultServiceImpl
migrate, switchTo, updateMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractService
activate, addConfigurer, addConfigurer, addConfigurer, addTypeSubstitution, createGenericInstance, createGenericInstance, createGenericInstanceByPlugin, createGenericMultiInstance, createGenericMultiInstance, createGenericMultiInstanceByPlugin, createInstance, createInstance, createInstance, createInstanceByPlugin, getArg, getDescription, getId, getKind, getName, getNetMgtKeyAddress, getResourceAsStream, getState, getStringArg, getSubstitutedType, getTypeCreator, getTypeSubstitutions, getVersion, initializeFrom, isDeployable, isTopLevel, notifyReconfigured, passivate, reconf, reconfigure, reconfigure, rollbackReconfigurationOnFailure, setLibJars, setState, start, stop, transferDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.services.environment.Service
activate, addTypeSubstitution, createType, createType, getDescription, getKind, getName, getNetMgtKeyAddress, getSubstitutedType, getTypeCreator, getTypeSubstitutions, getVersion, isDeployable, isTopLevel, migrate, passivate, reconfigure, switchTo, updateMethods inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
getId, getState, setState
-
Field Details
-
timer
-
random
-
-
Constructor Details
-
SimpleSourceImpl
public SimpleSourceImpl()Fallback constructor. -
SimpleSourceImpl
Creates a service instance from a service id and a YAML artifact.- Parameters:
serviceId- the service idymlFile- the YML file containing the YAML artifact with the service descriptor
-
-
Method Details
-
produceRec1
public iip.datatypes.Rec1 produceRec1()Creates data to be ingested.- Returns:
- the created data, null for no data
-
attachRec1Ingestor
public void attachRec1Ingestor(de.iip_ecosphere.platform.services.environment.DataIngestor<iip.datatypes.Rec1> ingestor) Called by the platform to attach an asynchronous data ingestor for type "Rec1".- Specified by:
attachRec1Ingestorin interfaceiip.interfaces.SimpleDataSourceInterface- Overrides:
attachRec1Ingestorin classiip.impl.SimpleDataSourceImpl- Parameters:
ingestor- the "Rec1" ingestor instance
-
processFeedback
public void processFeedback(iip.datatypes.Feedback data)
-