2019-03-22 15:51:44 +01:00
/ * *
*
* /
package org.gcube.resourcemanagement.model.reference.entities.resources ;
2020-07-07 17:12:10 +02:00
import org.gcube.com.fasterxml.jackson.databind.annotation.JsonDeserialize ;
2019-12-05 12:04:31 +01:00
import org.gcube.informationsystem.types.annotations.ResourceSchema ;
import org.gcube.informationsystem.types.annotations.ResourceSchemaEntry ;
2021-02-18 15:44:45 +01:00
import org.gcube.informationsystem.types.annotations.RelatedResourcesEntry ;
2020-12-15 20:06:58 +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.entities.resources.EServiceImpl ;
2019-12-05 12:04:31 +01:00
import org.gcube.resourcemanagement.model.reference.entities.facets.AccessPointFacet ;
import org.gcube.resourcemanagement.model.reference.entities.facets.EventFacet ;
import org.gcube.resourcemanagement.model.reference.entities.facets.LicenseFacet ;
import org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacet ;
2020-12-21 13:59:53 +01:00
import org.gcube.resourcemanagement.model.reference.entities.facets.StateFacet ;
2019-12-05 12:04:31 +01:00
import org.gcube.resourcemanagement.model.reference.relations.consistsof.IsIdentifiedBy ;
2020-01-16 12:44:10 +01:00
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.Discovers ;
import org.gcube.resourcemanagement.model.reference.relations.isrelatedto.Uses ;
2019-03-22 15:51:44 +01:00
/ * *
2020-12-21 15:43:36 +01:00
* EService is any running service that is registered in the infrastructure and
* made available by an access point .
*
* EService has similar meaning of PE8_EService defined in PARTHENOS Entities Model ( PE Model ) .
*
2021-03-02 16:16:35 +01:00
* https : //wiki.gcube-system.org/gcube/GCube_Model#EService
2020-12-21 15:43:36 +01:00
*
2019-03-22 15:51:44 +01:00
* @author Luca Frosini ( ISTI - CNR )
* /
2020-01-15 17:26:54 +01:00
@JsonDeserialize ( as = EServiceImpl . class )
@ResourceSchema (
facets = {
2021-03-02 15:57:39 +01:00
@ResourceSchemaEntry ( relation = IsIdentifiedBy . class , facet = SoftwareFacet . class , min = 1 , max = 1 , description = " The main software enabling the EService capabilities. " ) ,
2020-01-15 17:26:54 +01:00
@ResourceSchemaEntry ( facet = SoftwareFacet . class , description = " Software available in the EService environment that characterizes the specific EService instance. " ) ,
@ResourceSchemaEntry ( facet = AccessPointFacet . class , min = 1 , description = " Identify the endpoints of the EService. " ) ,
@ResourceSchemaEntry ( facet = EventFacet . class , min = 1 , description = " Events characterising the current status and lifecycle of the service, e.g. ActivationTime, DeploymentTime. " ) ,
2020-12-21 13:59:53 +01:00
@ResourceSchemaEntry ( facet = StateFacet . class , min = 1 , max = 1 , description = " The current status of the EService, e.g. STARTED, ready, down, failed. " ) ,
2020-01-15 17:26:54 +01:00
@ResourceSchemaEntry ( facet = LicenseFacet . class , description = " The specific terms of use governing the exploitation of the EService. " )
2020-01-16 12:44:10 +01:00
} ,
resources = {
2021-02-18 15:44:45 +01:00
@RelatedResourcesEntry ( source = EService . class , relation = Discovers . class , target = EService . class , description = " A reference to any other EService, the EService instance is discovering through query on IS. " ) ,
@RelatedResourcesEntry ( source = EService . class , relation = Uses . class , target = EService . class , description = " A reference to any other EService, the EService instance is invoking. " )
2020-01-15 17:26:54 +01:00
}
)
2020-12-15 20:06:58 +01:00
@TypeMetadata (
name = EService . NAME ,
2020-12-21 15:43:36 +01:00
description = " EService is any running service that is registered in the infrastructure and made available by an access point. " ,
2020-12-15 20:06:58 +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 EService extends Service {
public static final String NAME = " EService " ; // EService.class.getSimpleName();
public static EService getInstance ( ) {
return new EServiceImpl ( ) ;
}
}