Class MyServiceDescriptor

java.lang.Object
de.iip_ecosphere.platform.services.AbstractServiceDescriptor<MyArtifactDescriptor>
test.de.iip_ecosphere.platform.services.MyServiceDescriptor
All Implemented Interfaces:
de.iip_ecosphere.platform.services.ServiceDescriptor

class MyServiceDescriptor extends de.iip_ecosphere.platform.services.AbstractServiceDescriptor<MyArtifactDescriptor>
A test service descriptor.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.services.ServiceDescriptor

    de.iip_ecosphere.platform.services.ServiceDescriptor.Action
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    MyServiceDescriptor(String id, String name, String description, de.iip_ecosphere.platform.support.Version version)
    Creates an instance with empty application id.
    protected
    MyServiceDescriptor(String id, String appId, String name, String description, de.iip_ecosphere.platform.support.Version version)
    Creates an instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addInputDataConnector(de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor input)
     
    void
    addOutputDataConnector(de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor output)
     
    void
    addParameter(de.iip_ecosphere.platform.services.TypedDataDescriptor parameter)
     
     
    de.iip_ecosphere.platform.services.ServiceDescriptor
     
    de.iip_ecosphere.platform.support.aas.InvocablesCreator
     
    (package private) void
    Sets the ensemble leader.
     

    Methods inherited from class de.iip_ecosphere.platform.services.AbstractServiceDescriptor

    attachAction, connectorIds, ensemble, ensembleConnectorNames, executeAction, getAdditionalArguments, getApplicationId, getArtifact, getDataConnectors, getDescription, getId, getInputDataConnectors, getKind, getName, getOutputDataConnectors, getParameters, getState, getStub, getVersion, instantiateFrom, instantiateFrom, internalConnectorNames, isDeployable, isTopLevel, setAdditionalArguments, setArtifact, setClassification, setState, setStub

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface de.iip_ecosphere.platform.services.ServiceDescriptor

    getApplicationInstanceId, getServiceId
  • Field Details

  • Constructor Details

    • MyServiceDescriptor

      protected MyServiceDescriptor(String id, String name, String description, de.iip_ecosphere.platform.support.Version version)
      Creates an instance with empty application id. Call AbstractServiceDescriptor.setClassification(de.iip_ecosphere.platform.services.environment.ServiceKind, boolean, boolean) afterwards.
      Parameters:
      id - the service id
      name - the name of this service
      description - the description of the service
      version - the version
    • MyServiceDescriptor

      protected MyServiceDescriptor(String id, String appId, String name, String description, de.iip_ecosphere.platform.support.Version version)
      Creates an instance. Call AbstractServiceDescriptor.setClassification(de.iip_ecosphere.platform.services.environment.ServiceKind, boolean, boolean) afterwards.
      Parameters:
      id - the service id
      appId - the application id, may be empty
      name - the name of this service
      description - the description of the service
      version - the version
  • Method Details

    • addParameter

      public void addParameter(de.iip_ecosphere.platform.services.TypedDataDescriptor parameter)
      Overrides:
      addParameter in class de.iip_ecosphere.platform.services.AbstractServiceDescriptor<MyArtifactDescriptor>
    • addInputDataConnector

      public void addInputDataConnector(de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor input)
      Overrides:
      addInputDataConnector in class de.iip_ecosphere.platform.services.AbstractServiceDescriptor<MyArtifactDescriptor>
    • addOutputDataConnector

      public void addOutputDataConnector(de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor output)
      Overrides:
      addOutputDataConnector in class de.iip_ecosphere.platform.services.AbstractServiceDescriptor<MyArtifactDescriptor>
    • getEnsembleLeader

      public de.iip_ecosphere.platform.services.ServiceDescriptor getEnsembleLeader()
      Specified by:
      getEnsembleLeader in interface de.iip_ecosphere.platform.services.ServiceDescriptor
      Overrides:
      getEnsembleLeader in class de.iip_ecosphere.platform.services.AbstractServiceDescriptor<MyArtifactDescriptor>
    • setEnsembleLeader

      void setEnsembleLeader(MyServiceDescriptor ensembleLeader)
      Sets the ensemble leader.
      Parameters:
      ensembleLeader - the ensemble leader
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getArtifactDescriptorClass

      protected Class<MyArtifactDescriptor> getArtifactDescriptorClass()
      Specified by:
      getArtifactDescriptorClass in class de.iip_ecosphere.platform.services.AbstractServiceDescriptor<MyArtifactDescriptor>
    • getInvocablesCreator

      public de.iip_ecosphere.platform.support.aas.InvocablesCreator getInvocablesCreator()