Interface Hosts<Out extends Site,​In extends Service>

  • All Superinterfaces:
    org.gcube.informationsystem.base.reference.Element, org.gcube.informationsystem.model.reference.ERElement, org.gcube.informationsystem.base.reference.IdentifiableElement, org.gcube.informationsystem.model.reference.relations.IsRelatedTo<Out,​In>, org.gcube.informationsystem.model.reference.ModelElement, org.gcube.informationsystem.model.reference.relations.Relation<Out,​In>, org.gcube.informationsystem.base.reference.relations.RelationElement<Out,​In>, org.gcube.informationsystem.base.reference.SchemaMixedElement, Serializable
    All Known Implementing Classes:
    HostsImpl

    @TypeMetadata(name="Hosts",
                  description="Hosts relation is used from a [Site](type:Site) to a [Service](type:Service) instance. The target of the Hosts relation depends on the service offered by the Site. When the resources provided by a site are virtual machines, Hosts relation is created from a [Site](type:Site) to a [VirtualMachine](type:VirtualMachine). When, instead a Site provides web-services, Hosts relation is created with [EService](type:EService). If a site provides container facilities Hosts relation is created with [HostingNode](type:HostingNode). By defining Hosts relation with target [Service](type:Service), the model is capable of representing the diverse types of federated systems and services.",
                  version="1.0.0")
    @Change(version="1.0.0",
            description="First Version")
    public interface Hosts<Out extends Site,​In extends Service>
    extends org.gcube.informationsystem.model.reference.relations.IsRelatedTo<Out,​In>
    Hosts relation is used from a Site to a Service instance. The target of the Hosts relation depends on the service offered by the Site. When the resources provided by a site are virtual machines, Hosts relation is created from a Site to a VirtualMachine. When, instead a Site provides web-services, Hosts relation is created with EService. If a site provides container facilities Hosts relation is created with HostingNode. By defining Hosts relation with target Service, the model is capable of representing the diverse types of federated systems and services.
    Author:
    Luca Frosini (ISTI - CNR)
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String NAME
      The name of the Hosts relation type.
      • Fields inherited from interface org.gcube.informationsystem.base.reference.Element

        DATETIME_PATTERN, REDACTED, TYPE_PROPERTY, UNKNOWN_USER
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ERElement

        CONTEXTS_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.base.reference.IdentifiableElement

        ID_PROPERTY, METADATA_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        EXPECTED_TYPE_PROPERTY, SUPERTYPES_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.model.reference.relations.Relation

        PROPAGATION_CONSTRAINT_PROPERTY
      • Fields inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement

        SOURCE_PROPERTY, TARGET_PROPERTY
    • Method Summary

      Static Methods 
      Modifier and Type Method Description
      static <Out extends Site,​In extends Service>
      Hosts<Out,​In>
      getDefaultInstance​(Out out, In in)
      Returns a default instance of Hosts
      • Methods inherited from interface org.gcube.informationsystem.base.reference.Element

        getTypeName
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ERElement

        getContexts
      • Methods inherited from interface org.gcube.informationsystem.model.reference.ModelElement

        getExpectedType, getSupertypes
      • Methods inherited from interface org.gcube.informationsystem.model.reference.relations.Relation

        getAdditionalProperties, getAdditionalProperty, getPropagationConstraint, getSource, getTarget, setAdditionalProperties, setAdditionalProperty, setPropagationConstraint, setSource, setTarget
      • Methods inherited from interface org.gcube.informationsystem.base.reference.relations.RelationElement

        getID, getMetadata, setID, setMetadata
    • Method Detail

      • getDefaultInstance

        static <Out extends Site,​In extends Service> Hosts<Out,​In> getDefaultInstance​(Out out,
                                                                                                  In in)
        Returns a default instance of Hosts
        Type Parameters:
        Out - the source Site
        In - the target Service
        Parameters:
        out - the source Site instance
        in - the target Service instance
        Returns:
        a default instance of Hosts