Class MemoryFacetImpl
- java.lang.Object
-
- org.gcube.informationsystem.base.impl.ElementImpl
-
- org.gcube.informationsystem.base.impl.entities.EntityElementImpl
-
- org.gcube.informationsystem.model.impl.entities.EntityImpl
-
- org.gcube.informationsystem.model.impl.entities.FacetImpl
-
- org.gcube.resourcemanagement.model.impl.entities.facets.MemoryFacetImpl
-
- All Implemented Interfaces:
Serializable,org.gcube.informationsystem.base.reference.Element,org.gcube.informationsystem.base.reference.entities.EntityElement,org.gcube.informationsystem.base.reference.IdentifiableElement,org.gcube.informationsystem.base.reference.SchemaMixedElement,org.gcube.informationsystem.model.reference.entities.Entity,org.gcube.informationsystem.model.reference.entities.Facet,org.gcube.informationsystem.model.reference.ERElement,org.gcube.informationsystem.model.reference.ModelElement,MemoryFacet
public class MemoryFacetImpl extends org.gcube.informationsystem.model.impl.entities.FacetImpl implements MemoryFacet
- Author:
- Luca Frosini (ISTI - CNR)
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.gcube.resourcemanagement.model.reference.entities.facets.MemoryFacet
MemoryFacet.MemoryUnit
-
-
Field Summary
Fields Modifier and Type Field Description protected longsizeThe size of the memoryprotected MemoryFacet.MemoryUnitunitThe memory unit used to express size and usedprotected longusedThesize of used memory-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
additionalProperties, allowedAdditionalKeys
-
Fields inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
contexts, expectedtype, supertypes
-
Fields inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
metadata, uuid
-
Fields inherited from interface org.gcube.informationsystem.base.reference.Element
DATETIME_PATTERN, NAME, TYPE_PROPERTY
-
Fields inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
NAME
-
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.resourcemanagement.model.reference.entities.facets.MemoryFacet
NAME
-
-
Constructor Summary
Constructors Constructor Description MemoryFacetImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetSize()The size of the memoryMemoryFacet.MemoryUnitgetUnit()The memory unitlonggetUsed()The used memoryvoidsetSize(long size)Sets the size of the memoryvoidsetUnit(MemoryFacet.MemoryUnit unit)Sets the memory unitvoidsetUsed(long used)Sets the used memory-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.FacetImpl
addAllowedAdditionalKey, getAdditionalProperties, getAdditionalProperty, setAdditionalProperties, setAdditionalProperty
-
Methods inherited from class org.gcube.informationsystem.model.impl.entities.EntityImpl
getContexts, getExpectedtype, getSupertypes, setContexts
-
Methods inherited from class org.gcube.informationsystem.base.impl.entities.EntityElementImpl
getID, getMetadata, setID, setMetadata
-
Methods inherited from class org.gcube.informationsystem.base.impl.ElementImpl
getTypeName, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.gcube.informationsystem.base.reference.entities.EntityElement
getID, getMetadata, setID, setMetadata
-
-
-
-
Field Detail
-
size
protected long size
The size of the memory
-
used
protected long used
Thesize of used memory
-
unit
protected MemoryFacet.MemoryUnit unit
The memory unit used to express size and used
-
-
Method Detail
-
getSize
public long getSize()
The size of the memory- Specified by:
getSizein interfaceMemoryFacet- Returns:
- the size
-
setSize
public void setSize(long size)
Sets the size of the memory- Specified by:
setSizein interfaceMemoryFacet- Parameters:
size- the size
-
getUsed
public long getUsed()
The used memory- Specified by:
getUsedin interfaceMemoryFacet- Returns:
- the used
-
setUsed
public void setUsed(long used)
Sets the used memory- Specified by:
setUsedin interfaceMemoryFacet- Parameters:
used- the used
-
getUnit
public MemoryFacet.MemoryUnit getUnit()
The memory unit- Specified by:
getUnitin interfaceMemoryFacet- Returns:
- the unit
-
setUnit
public void setUnit(MemoryFacet.MemoryUnit unit)
Sets the memory unit- Specified by:
setUnitin interfaceMemoryFacet- Parameters:
unit- the unit
-
-