2019-03-22 15:51:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.resourcemanagement.model.reference.relations.isrelatedto;
|
|
|
|
|
2020-07-07 17:12:10 +02:00
|
|
|
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.informationsystem.model.reference.relations.IsRelatedTo;
|
2020-12-21 13:59:53 +01:00
|
|
|
import org.gcube.informationsystem.types.reference.Change;
|
|
|
|
import org.gcube.informationsystem.types.reference.TypeMetadata;
|
|
|
|
import org.gcube.informationsystem.utils.TypeVersion;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.resourcemanagement.model.impl.relations.isrelatedto.HostsImpl;
|
2020-12-22 15:31:40 +01:00
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode;
|
2019-03-22 15:51:44 +01:00
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.resources.Service;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.resources.Site;
|
2020-12-22 15:31:40 +01:00
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.resources.VirtualMachine;
|
2019-03-22 15:51:44 +01:00
|
|
|
|
|
|
|
/**
|
2020-12-22 15:31:40 +01:00
|
|
|
* Hosts relation is used from a {@link Site} a {@link 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 {@link Site} to a {@link VirtualMachine}.
|
2020-12-22 15:09:55 +01:00
|
|
|
*
|
2020-12-22 15:31:40 +01:00
|
|
|
* When, instead a Site provides web-services, Hosts relation is created with {@link EService}.
|
|
|
|
*
|
|
|
|
* If a site provides container facilities Hosts relation is created with {@link HostingNode}.
|
|
|
|
*
|
|
|
|
* By defining Hosts relation with target {@link Service}, the model is capable of representing
|
|
|
|
* the diverse type of federated systems and service.
|
2020-12-22 15:09:55 +01:00
|
|
|
*
|
2021-03-02 16:16:35 +01:00
|
|
|
* https://wiki.gcube-system.org/gcube/GCube_Model#Hosts
|
2020-12-21 14:56:46 +01:00
|
|
|
*
|
2019-03-22 15:51:44 +01:00
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=HostsImpl.class)
|
2020-12-21 13:59:53 +01:00
|
|
|
@TypeMetadata(
|
2020-12-22 15:09:55 +01:00
|
|
|
name = Hosts.NAME,
|
2020-12-22 16:20:14 +01:00
|
|
|
description = "Hosts relation is used from a {@link Site} a {@link Service} instance.\n"
|
|
|
|
+ "The target of the Hosts relation depends on the service offered by the Site.\n"
|
|
|
|
+ "When the resources provided by a site are virtual machines, "
|
|
|
|
+ "Hosts relation is created from a {@link Site} to a {@link VirtualMachine}.\n"
|
|
|
|
+ "When, instead a Site provides web-services, Hosts relation is created with {@link EService}.\n"
|
|
|
|
+ "If a site provides container facilities Hosts relation is created with {@link HostingNode}.\n"
|
|
|
|
+ "By defining Hosts relation with target {@link Service}, the model is capable of representing "
|
|
|
|
+ "the diverse type of federated systems and service.",
|
2020-12-21 13:59:53 +01:00
|
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
|
|
)
|
|
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
2019-03-22 15:51:44 +01:00
|
|
|
public interface Hosts<Out extends Site, In extends Service>
|
|
|
|
extends IsRelatedTo<Out, In> {
|
|
|
|
|
|
|
|
public static final String NAME = "Hosts"; // Hosts.class.getSimpleName();
|
|
|
|
|
|
|
|
}
|