Class AbstractPythonProcessService.OutTypeInfo<T>
- java.lang.Object
-
- de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService.AbstractTypeInfo<T>
-
- de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService.OutTypeInfo<T>
-
- Type Parameters:
T- the Java representation of the output type
- Enclosing class:
- AbstractPythonProcessService
protected class AbstractPythonProcessService.OutTypeInfo<T> extends AbstractPythonProcessService.AbstractTypeInfo<T>
Represents an output type.- Author:
- Holger Eichelberger, SSE
-
-
Field Summary
Fields Modifier and Type Field Description private DataIngestor<T>ingestorprivate de.iip_ecosphere.platform.transport.serialization.TypeTranslator<java.lang.String,T>outTranslator
-
Constructor Summary
Constructors Modifier Constructor Description protectedOutTypeInfo(java.lang.Class<T> type)Creates an instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DataIngestor<T>getIngestor()Returns the associated ingestor.protected de.iip_ecosphere.platform.transport.serialization.TypeTranslator<java.lang.String,T>getOutTranslator()Returns the output translator.protected DataIngestor<T>validateAndGetIngestor(java.lang.String typeName)Validates the associated ingestor and returns it.-
Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService.AbstractTypeInfo
getType
-
-
-
-
Field Detail
-
outTranslator
private de.iip_ecosphere.platform.transport.serialization.TypeTranslator<java.lang.String,T> outTranslator
-
ingestor
private DataIngestor<T> ingestor
-
-
Constructor Detail
-
OutTypeInfo
protected OutTypeInfo(java.lang.Class<T> type)
Creates an instance.- Parameters:
type- the class representing the data type
-
-
Method Detail
-
getOutTranslator
protected de.iip_ecosphere.platform.transport.serialization.TypeTranslator<java.lang.String,T> getOutTranslator()
Returns the output translator.- Returns:
- the type translator, may be null
-
getIngestor
protected DataIngestor<T> getIngestor()
Returns the associated ingestor.- Returns:
- the ingestor (may be null)
-
validateAndGetIngestor
protected DataIngestor<T> validateAndGetIngestor(java.lang.String typeName)
Validates the associated ingestor and returns it. If no ingestor is associated, an ingestor for synchronous processing (AbstractPythonProcessService.SyncDataIngestor) will be created and associated.- Parameters:
typeName- the data type name as specified in the configuration model- Returns:
- the ingestor
-
-