2019-03-22 15:51:44 +01:00
|
|
|
/**
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
package org.gcube.resourcemanagement.model.reference.relations.consistsof;
|
|
|
|
|
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.entities.Resource;
|
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.consistsof.HasPersistentMemoryImpl;
|
|
|
|
import org.gcube.resourcemanagement.model.reference.entities.facets.MemoryFacet;
|
|
|
|
|
|
|
|
/**
|
2020-12-22 14:26:38 +01:00
|
|
|
* HasPersistentMemory indicates that the target {@link MemoryFacet} indicates a non-volatile
|
2020-12-21 13:59:53 +01:00
|
|
|
* memory, i.e., a memory which does not lose the data when the device is powered down.
|
|
|
|
*
|
|
|
|
* This type of memory is also known as secondary memory, external memory, auxiliary
|
|
|
|
* storage, or secondary storage.
|
|
|
|
*
|
|
|
|
* Of course more than one MemoryFacet related with HasPersistentMemory can be
|
|
|
|
* attached to the same resource, but actually from an infrastructure management point of view,
|
|
|
|
* we did not find any reason to further specialise the HasPersistentMemory relation.
|
|
|
|
*
|
|
|
|
* Anyway, we do not exclude other specialisation required by services to select the appropriated persistent memory better.
|
|
|
|
* For example, to discriminate between Solid State Disk and Magnetic Rotative.
|
|
|
|
*
|
2021-03-02 16:16:35 +01:00
|
|
|
* https://wiki.gcube-system.org/gcube/GCube_Model#HasPersistentMemory
|
2020-12-21 13:59:53 +01:00
|
|
|
*
|
2019-03-22 15:51:44 +01:00
|
|
|
* @author Luca Frosini (ISTI - CNR)
|
|
|
|
*/
|
|
|
|
@JsonDeserialize(as=HasPersistentMemoryImpl.class)
|
2020-12-21 13:59:53 +01:00
|
|
|
@TypeMetadata(
|
|
|
|
name = HasPersistentMemory.NAME,
|
2020-12-22 14:26:38 +01:00
|
|
|
description = "HasPersistentMemory indicates that the target {@link MemoryFacet} indicates a non-volatile "
|
2020-12-21 13:59:53 +01:00
|
|
|
+ " memory, i.e., a memory which does not lose the data when the device is powered down.\n"
|
|
|
|
+ "This type of memory is also known as secondary memory, external memory, auxiliary "
|
|
|
|
+ "storage, or secondary storage.\n"
|
|
|
|
+ "Of course more than one MemoryFacet related with HasPersistentMemory can be "
|
|
|
|
+ "attached to the same resource, but actually from an infrastructure management point of view, "
|
|
|
|
+ "we did not find any reason to further specialise the HasPersistentMemory relation.\n"
|
|
|
|
+ "Anyway, we do not exclude other specialisation required by services to select the "
|
|
|
|
+ "appropriated persistent memory better. "
|
|
|
|
+ "For example, to discriminate between Solid State Disk and Magnetic Rotative.",
|
|
|
|
version = TypeVersion.MINIMAL_VERSION_STRING
|
|
|
|
)
|
|
|
|
@Change(version = TypeVersion.MINIMAL_VERSION_STRING, description = TypeVersion.MINIMAL_VERSION_DESCRIPTION)
|
|
|
|
public interface HasPersistentMemory<Out extends Resource, In extends MemoryFacet> extends HasMemory<Out, In> {
|
2019-03-22 15:51:44 +01:00
|
|
|
|
|
|
|
public static final String NAME = "HasPersistentMemory"; // HasPersistentMemory.class.getSimpleName();
|
2020-12-21 13:59:53 +01:00
|
|
|
|
|
|
|
}
|