Class AbstractTestServiceManager.ServiceImpl

  • All Implemented Interfaces:
    de.iip_ecosphere.platform.services.environment.ParameterConfigurerProvider, de.iip_ecosphere.platform.services.environment.Service, de.iip_ecosphere.platform.services.environment.switching.ServiceBase
    Enclosing class:
    AbstractTestServiceManager

    protected static class AbstractTestServiceManager.ServiceImpl
    extends de.iip_ecosphere.platform.services.environment.AbstractService
    A fake service implementation for testing.
    Author:
    Holger Eichelberger, SSE
    • 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 ServiceImpl​(de.iip_ecosphere.platform.services.ServiceDescriptor desc)
      Creates a service implementation based on a service descriptor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void migrate​(java.lang.String resourceId)  
      void reconfigure​(java.util.Map<java.lang.String,​java.lang.String> values)  
      void switchTo​(java.lang.String targetId)  
      void update​(java.net.URI location)  
      • Methods inherited from class de.iip_ecosphere.platform.services.environment.AbstractService

        activate, addConfigurer, addConfigurer, addConfigurer, createInstance, createInstance, createInstance, getDescription, getId, getKind, getName, getNetMgtKeyAddress, getResourceAsStream, getState, getVersion, initializeFrom, isDeployable, isTopLevel, notifyReconfigured, passivate, reconf, reconfigure, rollbackReconfigurationOnFailure, setLibJars, setState, start, stop
      • 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

        getParameterConfigurer, getParameterNames
    • Constructor Detail

      • ServiceImpl

        protected ServiceImpl​(de.iip_ecosphere.platform.services.ServiceDescriptor desc)
        Creates a service implementation based on a service descriptor.
        Parameters:
        desc - the descriptor
    • Method Detail

      • migrate

        public void migrate​(java.lang.String resourceId)
                     throws java.util.concurrent.ExecutionException
        Throws:
        java.util.concurrent.ExecutionException
      • update

        public void update​(java.net.URI location)
                    throws java.util.concurrent.ExecutionException
        Throws:
        java.util.concurrent.ExecutionException
      • switchTo

        public void switchTo​(java.lang.String targetId)
                      throws java.util.concurrent.ExecutionException
        Throws:
        java.util.concurrent.ExecutionException
      • reconfigure

        public void reconfigure​(java.util.Map<java.lang.String,​java.lang.String> values)
                         throws java.util.concurrent.ExecutionException
        Specified by:
        reconfigure in interface de.iip_ecosphere.platform.services.environment.Service
        Overrides:
        reconfigure in class de.iip_ecosphere.platform.services.environment.AbstractService
        Throws:
        java.util.concurrent.ExecutionException