Class PythonProcessServiceTest.CountingAsyncPythonProcessService
java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService
de.iip_ecosphere.platform.services.environment.AbstractRunnablesService
de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService
de.iip_ecosphere.platform.services.environment.PythonAsyncProcessService
test.de.iip_ecosphere.platform.services.environment.PythonProcessServiceTest.CountingAsyncPythonProcessService
- All Implemented Interfaces:
de.iip_ecosphere.platform.services.environment.GenericMultiTypeService,de.iip_ecosphere.platform.services.environment.ParameterConfigurerProvider,de.iip_ecosphere.platform.services.environment.Service,de.iip_ecosphere.platform.services.environment.switching.ServiceBase
- Enclosing class:
PythonProcessServiceTest
private class PythonProcessServiceTest.CountingAsyncPythonProcessService
extends de.iip_ecosphere.platform.services.environment.PythonAsyncProcessService
Extension of python async process service to count the number of processed items for asserting.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService
de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService.InputHandler, de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService.SyncDataIngestor<D> -
Field Summary
FieldsFields inherited from class de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService
TYPE_SEPARATOR_CHARFields inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
APPLICATION_SEPARATOR, DEFAULT_APPLICATION_INSTANCE_ID -
Constructor Summary
ConstructorsConstructorDescriptionCountingAsyncPythonProcessService(de.iip_ecosphere.platform.services.environment.YamlService yaml) Creates an instance. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of processed items.<I> voidMethods inherited from class de.iip_ecosphere.platform.services.environment.PythonAsyncProcessService
activate, createScanInputThread, getLogger, migrate, passivate, processSync, reconfigure, sendToService, setState, start, stop, switchTo, updateMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractPythonProcessService
addParameterConfigurer, attachIngestor, compose, createAndCustomizeProcess, createScanInputThread, customizePythonArgs, enableFileDeletion, getAvgResponseTime, getHome, getInTypeInfo, getLocationKey, getOutTypeInfo, getParameterConfigurer, getParameterNames, getPythonExecutable, getTypeSubstitutionsJson, handleErrorStream, handleResult, initializeFrom, isFileDeletionEnabled, registerInputTypeTranslator, registerOutputTypeTranslator, scanInputStream, startExecutableByName, toJson, unbufferMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractRunnablesService
registerMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractService
addConfigurer, addConfigurer, addConfigurer, addTypeSubstitution, createGenericInstance, createGenericInstanceByPlugin, createGenericMultiInstance, createGenericMultiInstanceByPlugin, createInstance, createInstance, createInstance, createInstanceByPlugin, getArg, getDescription, getId, getKind, getName, getNetMgtKeyAddress, getResourceAsStream, getState, getStringArg, getSubstitutedType, getTypeCreator, getTypeSubstitutions, getVersion, isDeployable, isTopLevel, notifyReconfigured, reconf, reconfigure, rollbackReconfigurationOnFailure, setLibJars, 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.GenericMultiTypeService
processQuiet, processSyncQuietMethods inherited from interface de.iip_ecosphere.platform.services.environment.Service
addTypeSubstitution, createType, createType, getDescription, getKind, getName, getNetMgtKeyAddress, getSubstitutedType, getTypeCreator, getTypeSubstitutions, getVersion, isDeployable, isTopLevelMethods inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
getId, getState
-
Field Details
-
countProcess
private int countProcess
-
-
Constructor Details
-
CountingAsyncPythonProcessService
public CountingAsyncPythonProcessService(de.iip_ecosphere.platform.services.environment.YamlService yaml) Creates an instance.- Parameters:
yaml- the YAML specification
-
-
Method Details
-
process
- Specified by:
processin interfacede.iip_ecosphere.platform.services.environment.GenericMultiTypeService- Overrides:
processin classde.iip_ecosphere.platform.services.environment.PythonAsyncProcessService- Throws:
ExecutionException
-
getCountProcess
public int getCountProcess()Returns the number of processed items.- Returns:
- the number
-