Class MultiKodexRestService

  • 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

    public class MultiKodexRestService
    extends de.iip_ecosphere.platform.services.environment.AbstractDelegatingMultiService<KodexRestService<java.lang.String,​java.lang.String>>
    Multi-type KODEX Rest service.
    Author:
    Holger Eichelberger, SSE
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String dataSpec  
      • Fields inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase

        APPLICATION_SEPARATOR, DEFAULT_APPLICATION_INSTANCE_ID
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiKodexRestService​(de.iip_ecosphere.platform.services.environment.YamlService yaml, java.lang.String dataSpec)
      Creates an instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected KodexRestService<java.lang.String,​java.lang.String> createService​(de.iip_ecosphere.platform.services.environment.YamlService yaml)
      Creates the nested service instance to delegate to.
      protected void initService​(de.iip_ecosphere.platform.services.environment.YamlService yaml)  
      protected void processImpl​(java.lang.String inType, java.lang.String data)  
      • Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractDelegatingMultiService

        attachIngestor, getImpl, getLogger, handleResult, process, processSync, registerInputTypeTranslator, registerOutputTypeTranslator
      • Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractDelegatingService

        activate, assignService, getDescription, getId, getKind, getName, getService, getState, getVersion, isDeployable, isTopLevel, migrate, passivate, reconfigure, setState, switchTo, update
      • 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.GenericMultiTypeService

        processQuiet, processSyncQuiet
      • Methods inherited from interface de.iip_ecosphere.platform.services.environment.Service

        activate, getDescription, getKind, getName, getNetMgtKeyAddress, getParameterConfigurer, getParameterNames, getVersion, isDeployable, isTopLevel, migrate, passivate, reconfigure, switchTo, update
      • Methods inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase

        getId, getState, setState
    • Field Detail

      • dataSpec

        private java.lang.String dataSpec
    • Constructor Detail

      • MultiKodexRestService

        public MultiKodexRestService​(de.iip_ecosphere.platform.services.environment.YamlService yaml,
                                     java.lang.String dataSpec)
        Creates an instance.
        Parameters:
        yaml - the service description YAML
        dataSpec - name of the data spec file (within the process home path) to pass to KODEX; related files such as api or actions must be there as well and referenced from the data spec file
    • Method Detail

      • initService

        protected void initService​(de.iip_ecosphere.platform.services.environment.YamlService yaml)
        Overrides:
        initService in class de.iip_ecosphere.platform.services.environment.AbstractDelegatingService<KodexRestService<java.lang.String,​java.lang.String>>
      • createService

        protected KodexRestService<java.lang.String,​java.lang.String> createService​(de.iip_ecosphere.platform.services.environment.YamlService yaml)
        Creates the nested service instance to delegate to.
        Specified by:
        createService in class de.iip_ecosphere.platform.services.environment.AbstractDelegatingService<KodexRestService<java.lang.String,​java.lang.String>>
        Parameters:
        yaml - the service description YAML
        Returns:
        the service instance
      • processImpl

        protected void processImpl​(java.lang.String inType,
                                   java.lang.String data)
                            throws java.io.IOException
        Specified by:
        processImpl in class de.iip_ecosphere.platform.services.environment.AbstractDelegatingMultiService<KodexRestService<java.lang.String,​java.lang.String>>
        Throws:
        java.io.IOException