gcube-model/src/main/java/org/gcube/resourcemanagement/model/reference/relations/isrelatedto/Activates.java

61 lines
3.3 KiB
Java
Raw Normal View History

/**
*
*/
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;
import org.gcube.informationsystem.model.reference.relations.IsRelatedTo;
import org.gcube.informationsystem.types.reference.Change;
import org.gcube.informationsystem.types.reference.TypeMetadata;
import org.gcube.informationsystem.utils.TypeVersion;
import org.gcube.resourcemanagement.model.impl.relations.isrelatedto.ActivatesImpl;
2020-12-22 15:09:55 +01:00
import org.gcube.resourcemanagement.model.reference.entities.resources.EService;
import org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode;
import org.gcube.resourcemanagement.model.reference.entities.resources.RunningPlugin;
import org.gcube.resourcemanagement.model.reference.entities.resources.Service;
2020-12-22 15:09:55 +01:00
import org.gcube.resourcemanagement.model.reference.entities.resources.VirtualMachine;
/**
2020-12-22 15:09:55 +01:00
* Activates has a {@link Service} instance both as source and target as well as
* {@link CallsFor} but with a complete different semantic.
* Activates is used to indicates that the source {@link Service} of the relation
* enable the operation of the target Service.
* Examples are between a {@link VirtualMachine} and an {@link HostingNode} to capture
* the {@link VirtualMachine} is operating the {@link HostingNode}.
* Another example is between a {@link VirtualMachine} and an {@link EService},
* e.g., between a {@link VirtualMachine} and a database instance.
* This relation can be created also between an {@link HostingNode} and one
* {@link EService}, e.g., to represent a container e.g., Tomcat and the web-service(s)
* is operating.
* Activates is also used between an {@link EService} and a {@link RunningPlugin}
* which enrich the functionality offered by the source service.
*
* https://wiki.gcube-system.org/gcube/GCube_Model#Activates
2020-12-21 14:56:46 +01:00
*
* @author Luca Frosini (ISTI - CNR)
*/
@JsonDeserialize(as=ActivatesImpl.class)
@TypeMetadata(
2020-12-21 14:56:46 +01:00
name = Activates.NAME,
2020-12-22 15:09:55 +01:00
description = "Activates has a {@link Service} instance both as source and target as "
2021-09-13 12:57:00 +02:00
+ "well as {@link CallsFor} but with a complete different semantic. "
2020-12-22 15:09:55 +01:00
+ "Activates is used to indicates that the source {@link Service} of the relation "
2021-09-13 12:57:00 +02:00
+ "enable the operation of the target Service. "
2020-12-22 15:09:55 +01:00
+ "Examples are between a {@link VirtualMachine} and an {@link HostingNode} to "
2021-09-13 12:57:00 +02:00
+ "capture the {@link VirtualMachine} is operating the {@link HostingNode}. "
2020-12-22 15:09:55 +01:00
+ "Another example is between a {@link VirtualMachine} and an {@link EService}, "
2021-09-13 12:57:00 +02:00
+ "e.g., between a {@link VirtualMachine} and a database instance. "
2020-12-22 15:09:55 +01:00
+ "This relation can be created also between an {@link HostingNode} and one {@link EService}, "
2021-09-13 12:57:00 +02:00
+ "e.g., to represent a container e.g., Tomcat and the web-service(s) is operating. "
2020-12-22 15:09:55 +01:00
+ "Activates is also used between an {@link EService} and a {@link RunningPlugin} which "
+ "enrich the functionality offered by the source service.",
version = TypeVersion.MINIMAL_VERSION_STRING
)
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
public interface Activates<Out extends Service, In extends Service>
extends IsRelatedTo<Out, In> {
public static final String NAME = "Activates"; //CallsFor.class.getSimpleName();
}