Class SpringAsyncServiceBaseTests.MyService

java.lang.Object
test.de.iip_ecosphere.platform.services.environment.spring.SpringAsyncServiceBaseTests.MyService
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:
SpringAsyncServiceBaseTests

private static class SpringAsyncServiceBaseTests.MyService extends Object implements de.iip_ecosphere.platform.services.environment.Service
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     

    Fields inherited from interface de.iip_ecosphere.platform.services.environment.Service

    START_COMPARATOR

    Fields inherited from interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase

    APPLICATION_SEPARATOR, DEFAULT_APPLICATION_INSTANCE_ID
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
     
     
    de.iip_ecosphere.platform.services.environment.ServiceKind
     
     
    de.iip_ecosphere.platform.services.environment.ServiceState
     
    de.iip_ecosphere.platform.support.Version
     
    boolean
     
    boolean
     
    void
    migrate(String resourceId)
     
    void
     
    void
     
    void
    setState(de.iip_ecosphere.platform.services.environment.ServiceState state)
     
    void
    switchTo(String targetId)
     
    void
    update(URI location)
     

    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

    addTypeSubstitution, createType, createType, getNetMgtKeyAddress, getParameterConfigurer, getParameterNames, getSubstitutedType, getTypeCreator, getTypeSubstitutions, startData, stopData
  • Field Details

  • Constructor Details

    • MyService

      private MyService(String id)
      Creates an instance.
      Parameters:
      id - the service id
  • Method Details

    • getId

      public String getId()
      Specified by:
      getId in interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
    • getState

      public de.iip_ecosphere.platform.services.environment.ServiceState getState()
      Specified by:
      getState in interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
    • setState

      public void setState(de.iip_ecosphere.platform.services.environment.ServiceState state) throws ExecutionException
      Specified by:
      setState in interface de.iip_ecosphere.platform.services.environment.switching.ServiceBase
      Throws:
      ExecutionException
    • getName

      public String getName()
      Specified by:
      getName in interface de.iip_ecosphere.platform.services.environment.Service
    • getVersion

      public de.iip_ecosphere.platform.support.Version getVersion()
      Specified by:
      getVersion in interface de.iip_ecosphere.platform.services.environment.Service
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in interface de.iip_ecosphere.platform.services.environment.Service
    • isDeployable

      public boolean isDeployable()
      Specified by:
      isDeployable in interface de.iip_ecosphere.platform.services.environment.Service
    • isTopLevel

      public boolean isTopLevel()
      Specified by:
      isTopLevel in interface de.iip_ecosphere.platform.services.environment.Service
    • getKind

      public de.iip_ecosphere.platform.services.environment.ServiceKind getKind()
      Specified by:
      getKind in interface de.iip_ecosphere.platform.services.environment.Service
    • migrate

      public void migrate(String resourceId) throws ExecutionException
      Specified by:
      migrate in interface de.iip_ecosphere.platform.services.environment.Service
      Throws:
      ExecutionException
    • update

      public void update(URI location) throws ExecutionException
      Specified by:
      update in interface de.iip_ecosphere.platform.services.environment.Service
      Throws:
      ExecutionException
    • switchTo

      public void switchTo(String targetId) throws ExecutionException
      Specified by:
      switchTo in interface de.iip_ecosphere.platform.services.environment.Service
      Throws:
      ExecutionException
    • activate

      public void activate() throws ExecutionException
      Specified by:
      activate in interface de.iip_ecosphere.platform.services.environment.Service
      Throws:
      ExecutionException
    • passivate

      public void passivate() throws ExecutionException
      Specified by:
      passivate in interface de.iip_ecosphere.platform.services.environment.Service
      Throws:
      ExecutionException
    • reconfigure

      public void reconfigure(Map<String,String> values) throws ExecutionException
      Specified by:
      reconfigure in interface de.iip_ecosphere.platform.services.environment.Service
      Throws:
      ExecutionException