Class AbstractRestProcessServiceTest.MyRestProcessService
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:
AbstractRestProcessServiceTest
private class AbstractRestProcessServiceTest.MyRestProcessService
extends de.iip_ecosphere.platform.services.environment.AbstractRestProcessService<String,String>
Simple 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
ConstructorsModifierConstructorDescriptionprotectedMyRestProcessService(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
Modifier and TypeMethodDescriptionprotected StringadjustRestQuery(String input, String inTypeName) protected StringadjustRestResponse(String response) protected StringgetApiPath(String inTypeName) protected Stringvoidprotected de.iip_ecosphere.platform.services.environment.ServiceStatestart()voidvoidMethods inherited from class de.iip_ecosphere.platform.services.environment.AbstractRestProcessService
getConnection, getNewConnectionInstance, getNewConnectionInstanceQuiet, handleInputStream, handleReception, process, process, setupConnectionManager, stop, toSendString, waitForConnectionMethods 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, getWaitTimeBeforeDestroy, handleErrorStream, handleOutputStream, notifyCallbacks, processQuiet, redirectIO, selectNotNull, selectNotNull, setInheritIo, 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, 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, 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, passivate, reconfigureMethods inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
getId, getState, setState
-
Constructor Details
-
MyRestProcessService
protected MyRestProcessService(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
-
getApiPath
-
getBearerToken
-
adjustRestQuery
-
adjustRestResponse
-
start
protected de.iip_ecosphere.platform.services.environment.ServiceState start() throws ExecutionException- Overrides:
startin classde.iip_ecosphere.platform.services.environment.AbstractService- Throws:
ExecutionException
-