Class AbstractRestProcessServiceTest.MyRestProcessService

java.lang.Object
de.iip_ecosphere.platform.services.environment.AbstractService
de.iip_ecosphere.platform.services.environment.AbstractRunnablesService
de.iip_ecosphere.platform.services.environment.AbstractProcessService<String,String,String,String>
de.iip_ecosphere.platform.services.environment.AbstractRestProcessService<String,String>
test.de.iip_ecosphere.platform.services.environment.AbstractRestProcessServiceTest.MyRestProcessService
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

    Constructors
    Modifier
    Constructor
    Description
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected String
    adjustRestQuery(String input, String inTypeName)
     
    protected String
     
    protected String
    getApiPath(String inTypeName)
     
    protected String
     
    void
    migrate(String resourceId)
     
    protected de.iip_ecosphere.platform.services.environment.ServiceState
     
    void
    switchTo(String targetId)
     
    void
    update(URI location)
     

    Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractRestProcessService

    getConnection, getNewConnectionInstance, getNewConnectionInstanceQuiet, handleInputStream, handleReception, process, process, setupConnectionManager, stop, toSendString, waitForConnection

    Methods 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, redirectIO, selectNotNull, selectNotNull, setInheritIo, waitAndDestroy, waitAndDestroy

    Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractRunnablesService

    register

    Methods 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, transferData

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods 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, reconfigure

    Methods 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 translator
      outTrans - the output translator
      callback - called when data from the service is available
      yaml - the service description
  • Method Details

    • migrate

      public void migrate(String resourceId) throws ExecutionException
      Throws:
      ExecutionException
    • update

      public void update(URI location) throws ExecutionException
      Throws:
      ExecutionException
    • switchTo

      public void switchTo(String targetId) throws ExecutionException
      Throws:
      ExecutionException
    • getApiPath

      protected String getApiPath(String inTypeName)
      Specified by:
      getApiPath in class de.iip_ecosphere.platform.services.environment.AbstractRestProcessService<String,String>
    • getBearerToken

      protected String getBearerToken()
      Specified by:
      getBearerToken in class de.iip_ecosphere.platform.services.environment.AbstractRestProcessService<String,String>
    • adjustRestQuery

      protected String adjustRestQuery(String input, String inTypeName)
      Specified by:
      adjustRestQuery in class de.iip_ecosphere.platform.services.environment.AbstractRestProcessService<String,String>
    • adjustRestResponse

      protected String adjustRestResponse(String response)
      Specified by:
      adjustRestResponse in class de.iip_ecosphere.platform.services.environment.AbstractRestProcessService<String,String>
    • start

      protected de.iip_ecosphere.platform.services.environment.ServiceState start() throws ExecutionException
      Overrides:
      start in class de.iip_ecosphere.platform.services.environment.AbstractService
      Throws:
      ExecutionException