Class AbstractProcessService4PythonTest.TestService
java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService
de.iip_ecosphere.platform.services.environment.AbstractRunnablesService
- All Implemented Interfaces:
de.iip_ecosphere.platform.services.environment.MonitoringService,de.iip_ecosphere.platform.services.environment.ParameterConfigurerProvider,de.iip_ecosphere.platform.services.environment.Service,de.iip_ecosphere.platform.services.environment.switching.ServiceBase
- Enclosing class:
AbstractProcessService4PythonTest
private static class AbstractProcessService4PythonTest.TestService
extends de.iip_ecosphere.platform.services.environment.AbstractStringProcessService<String,String>
Defines a simple string-in-string-out test service.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class de.iip_ecosphere.platform.services.environment.AbstractProcessService
de.iip_ecosphere.platform.services.environment.AbstractProcessService.RunnableWithStop -
Field Summary
Fields inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
APPLICATION_SEPARATOR, DEFAULT_APPLICATION_INSTANCE_ID -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedTestService(de.iip_ecosphere.platform.transport.serialization.TypeTranslator<String, String> inTrans, de.iip_ecosphere.platform.transport.serialization.TypeTranslator<String, String> outTrans, de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<String> callback, de.iip_ecosphere.platform.services.environment.YamlService yaml) Creates an instance of the service with the required type translators. -
Method Summary
Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractStringProcessService
handleInputStream, process, redirectIOMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractProcessService
addProcessSpecCmdArg, attachIngestor, attachMetricsProvider, configure, createAndConfigureProcess, createProcess, createProcess, getCallbacks, getExecutableName, getExecutableName, getExecutablePrefix, getExecutablePrefix, getExecutableSuffix, getInputTranslator, getOsArch, getOutputTranslator, getPid, getProcessId, getProcessSpec, getServiceIn, getServiceSpec, handleErrorStream, handleOutputStream, notifyCallbacks, processQuiet, redirectIO, selectNotNull, selectNotNull, setInheritIo, stop, waitAndDestroy, waitAndDestroyMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractRunnablesService
registerMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractService
activate, 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, initializeFrom, isDeployable, isTopLevel, notifyReconfigured, passivate, reconf, reconfigure, rollbackReconfigurationOnFailure, setLibJars, setState, 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, passivateMethods inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
getId, getState, setState
-
Constructor Details
-
TestService
protected TestService(de.iip_ecosphere.platform.transport.serialization.TypeTranslator<String, String> inTrans, de.iip_ecosphere.platform.transport.serialization.TypeTranslator<String, String> outTrans, de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<String> callback, de.iip_ecosphere.platform.services.environment.YamlService yaml) Creates an instance of the service with the required type translators.- Parameters:
inTrans- the input translatoroutTrans- the output translatorcallback- called when data from the service is availableyaml- the service description
-
-
Method Details
-
migrate
- Throws:
ExecutionException
-
update
- Throws:
ExecutionException
-
switchTo
- Throws:
ExecutionException
-
reconfigure
- Specified by:
reconfigurein interfacede.iip_ecosphere.platform.services.environment.Service- Overrides:
reconfigurein classde.iip_ecosphere.platform.services.environment.AbstractService- Throws:
ExecutionException
-
getWaitTimeBeforeDestroy
protected int getWaitTimeBeforeDestroy() -
start
protected de.iip_ecosphere.platform.services.environment.ServiceState start() throws ExecutionException- Overrides:
startin classde.iip_ecosphere.platform.services.environment.AbstractService- Throws:
ExecutionException
-