Class SimpleTransformerMonikaImpl
java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService
de.iip_ecosphere.platform.services.environment.DefaultServiceImpl
de.iip_ecosphere.platform.test.apps.serviceImpl.SimpleTransformerMonikaImpl
- 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.SimpleDataTransformer3Interface
public class SimpleTransformerMonikaImpl
extends de.iip_ecosphere.platform.services.environment.DefaultServiceImpl
implements iip.interfaces.SimpleDataTransformer3Interface
A simple transformer implementation just printing out the received data.
- Author:
- Monika Staciwa, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate de.iip_ecosphere.platform.services.environment.DataIngestor<iip.datatypes.Rec13> Fields inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
APPLICATION_SEPARATOR, DEFAULT_APPLICATION_INSTANCE_IDFields inherited from interface iip.interfaces.SimpleDataTransformer3Interface
SERVICE_ID -
Constructor Summary
ConstructorsConstructorDescriptionFallback constructor.SimpleTransformerMonikaImpl(String serviceId, InputStream ymlFile) Creates a service instance from a service id and a YAML artifact. -
Method Summary
Modifier and TypeMethodDescriptionvoidattachRec13Ingestor(de.iip_ecosphere.platform.services.environment.DataIngestor<iip.datatypes.Rec13> ingestor) Called by the platform to attach an asynchronous data ingestor for type "Rec13".voidprocessRec13(iip.datatypes.Rec13 data) Called when data arrived that shall be processed (asynchronously).iip.datatypes.Rec13Produces data.iip.datatypes.Rec13transformRec13(iip.datatypes.Rec13 data) Called when data arrived that shall be processed (synchronously).Methods 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, getParameterConfigurer, getParameterNames, 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
-
ingestor
private de.iip_ecosphere.platform.services.environment.DataIngestor<iip.datatypes.Rec13> ingestor
-
-
Constructor Details
-
SimpleTransformerMonikaImpl
public SimpleTransformerMonikaImpl()Fallback constructor. -
SimpleTransformerMonikaImpl
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
-
transformRec13
public iip.datatypes.Rec13 transformRec13(iip.datatypes.Rec13 data) Called when data arrived that shall be processed (synchronously).- Specified by:
transformRec13in interfaceiip.interfaces.SimpleDataTransformer3Interface- Parameters:
data- the arrived data- Returns:
- the transformation result, null for no data
-
processRec13
public void processRec13(iip.datatypes.Rec13 data) Called when data arrived that shall be processed (asynchronously).- Parameters:
data- the arrived data
-
attachRec13Ingestor
public void attachRec13Ingestor(de.iip_ecosphere.platform.services.environment.DataIngestor<iip.datatypes.Rec13> ingestor) Called by the platform to attach an asynchronous data ingestor for type "Rec13".- Parameters:
ingestor- the "Rec13" ingestor instance
-
produceRec13
public iip.datatypes.Rec13 produceRec13()Produces data.- Returns:
- null not needed here
-