Package iip.impl
Class SimpleDataSourceImpl
java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService
de.iip_ecosphere.platform.services.environment.DefaultServiceImpl
iip.impl.SimpleDataSourceImpl
- 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,SimpleDataSourceInterface
public abstract class SimpleDataSourceImpl
extends de.iip_ecosphere.platform.services.environment.DefaultServiceImpl
implements SimpleDataSourceInterface
IIP-Ecosphere supporting service implementation for 'Simple Data Source'.
Generated by: EASy-Producer.
-
Field Summary
FieldsModifier and TypeFieldDescriptionFields 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
ConstructorsModifierConstructorDescriptionprotectedSimpleDataSourceImpl(de.iip_ecosphere.platform.services.environment.ServiceKind kind) Fallback constructor setting most fields to "empty" default values.protectedSimpleDataSourceImpl(de.iip_ecosphere.platform.services.environment.YamlService yaml) Creates a service instance from YAML information.protectedSimpleDataSourceImpl(String serviceId, de.iip_ecosphere.platform.services.environment.ServiceKind kind) Fallback constructor setting most fields to "empty" default values.protectedSimpleDataSourceImpl(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<Rec1> ingestor) Attaches a return value ingestor for asynchronous processing.Creates an actual instance of the output type Rec1.de.iip_ecosphere.platform.services.environment.ParameterConfigurer<?> getParameterConfigurer(String paramName) protected booleanReturns whether there are registered Rec1 ingestors.protected intReturns the number of registered Rec1 ingestors.protected voidingestRec1(Rec1 data) Sendsdatato all registered Rec1 ingestors.protected voidRegisters the configurers.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, createInstance, createInstance, createInstance, getDescription, getId, getKind, getName, getNetMgtKeyAddress, getResourceAsStream, getState, 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
-
rec1Ingestors
-
paramConfigurers
-
-
Constructor Details
-
SimpleDataSourceImpl
protected SimpleDataSourceImpl(de.iip_ecosphere.platform.services.environment.ServiceKind kind) Fallback constructor setting most fields to "empty" default values.- Parameters:
kind- the service kind
-
SimpleDataSourceImpl
protected SimpleDataSourceImpl(String serviceId, de.iip_ecosphere.platform.services.environment.ServiceKind kind) Fallback constructor setting most fields to "empty" default values.- Parameters:
serviceId- the id of the servicekind- the service kind
-
SimpleDataSourceImpl
protected SimpleDataSourceImpl(de.iip_ecosphere.platform.services.environment.YamlService yaml) Creates a service instance from YAML information.- Parameters:
yaml- the service information as read from YAML
-
SimpleDataSourceImpl
Creates a service instance from a service id and a YAML artifact.- Parameters:
serviceId- the id of the serviceymlFile- the YML file containing the YAML artifact with the service descriptor
-
-
Method Details
-
getParameterConfigurer
public de.iip_ecosphere.platform.services.environment.ParameterConfigurer<?> getParameterConfigurer(String paramName) - Specified by:
getParameterConfigurerin interfacede.iip_ecosphere.platform.services.environment.ParameterConfigurerProvider- Specified by:
getParameterConfigurerin interfacede.iip_ecosphere.platform.services.environment.Service
-
getParameterNames
- Specified by:
getParameterNamesin interfacede.iip_ecosphere.platform.services.environment.ParameterConfigurerProvider- Specified by:
getParameterNamesin interfacede.iip_ecosphere.platform.services.environment.Service
-
registerParameterConfigurers
protected void registerParameterConfigurers()Registers the configurers. -
attachRec1Ingestor
public void attachRec1Ingestor(de.iip_ecosphere.platform.services.environment.DataIngestor<Rec1> ingestor) Description copied from interface:SimpleDataSourceInterfaceAttaches a return value ingestor for asynchronous processing.- Specified by:
attachRec1Ingestorin interfaceSimpleDataSourceInterface- Parameters:
ingestor- the ingestor instance
-
hasRec1Ingestor
protected boolean hasRec1Ingestor()Returns whether there are registered Rec1 ingestors.- Returns:
trueif there are Rec1 ingestors,falseelse
-
hasRec1IngestorCount
protected int hasRec1IngestorCount()Returns the number of registered Rec1 ingestors.- Returns:
- the number of Rec1 ingestors
-
ingestRec1
Sendsdatato all registered Rec1 ingestors.- Parameters:
data- the data to be sent
-
createRec1
Creates an actual instance of the output type Rec1.
-