Class HostingNodeManager
- java.lang.Object
-
- org.gcube.smartgears.handler.resourceregistry.resourcemanager.HostingNodeManager
-
public class HostingNodeManager extends Object
- Author:
- Luca Frosini (ISTI-CNR)
-
-
Field Summary
Fields Modifier and Type Field Description static StringCPU_CPU_MHZstatic StringCPU_MODEL_Bstatic StringCPU_MODEL_NAMEstatic StringCPU_MODEL_NUMBERstatic StringCPU_MODEL_Tstatic StringCPU_PROCESSORstatic StringCPU_VENDOR_IDstatic StringJVM_MAX_MEMORYstatic StringMEMORY_TYPEstatic StringMEMORY_TYPE_JVMstatic StringMEMORY_TYPE_RAMstatic StringMESSAGE
-
Constructor Summary
Constructors Constructor Description HostingNodeManager(org.gcube.smartgears.context.container.ContainerContext containerContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddToContext(UUID contextUUID)voidaddToCurrentContext()org.gcube.resourcemanagement.model.reference.entities.resources.HostingNodecreateHostingNode()Map<UUID,String>getContextsUUID()static List<org.gcube.resourcemanagement.model.reference.entities.facets.CPUFacet>getCPUFacets()org.gcube.resourcemanagement.model.reference.entities.resources.HostingNodegetHostingNode()static org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacetgetOperativeSystem()StringgetState()voidremoveFromContext(UUID contextUUID)voidremoveFromCurrentContext()org.gcube.resourcemanagement.model.reference.entities.resources.HostingNodeupdateFacets()
-
-
-
Field Detail
-
MEMORY_TYPE
public static final String MEMORY_TYPE
- See Also:
- Constant Field Values
-
MEMORY_TYPE_RAM
public static final String MEMORY_TYPE_RAM
- See Also:
- Constant Field Values
-
MEMORY_TYPE_JVM
public static final String MEMORY_TYPE_JVM
- See Also:
- Constant Field Values
-
JVM_MAX_MEMORY
public static final String JVM_MAX_MEMORY
- See Also:
- Constant Field Values
-
MESSAGE
public static final String MESSAGE
- See Also:
- Constant Field Values
-
CPU_PROCESSOR
public static final String CPU_PROCESSOR
- See Also:
- Constant Field Values
-
CPU_VENDOR_ID
public static final String CPU_VENDOR_ID
- See Also:
- Constant Field Values
-
CPU_MODEL_NAME
public static final String CPU_MODEL_NAME
- See Also:
- Constant Field Values
-
CPU_CPU_MHZ
public static final String CPU_CPU_MHZ
- See Also:
- Constant Field Values
-
CPU_MODEL_T
public static final String CPU_MODEL_T
- See Also:
- Constant Field Values
-
CPU_MODEL_B
public static final String CPU_MODEL_B
- See Also:
- Constant Field Values
-
CPU_MODEL_NUMBER
public static final String CPU_MODEL_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
getHostingNode
public org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode getHostingNode()
-
addToCurrentContext
public void addToCurrentContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
addToContext
public void addToContext(UUID contextUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
removeFromCurrentContext
public void removeFromCurrentContext() throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
removeFromContext
public void removeFromContext(UUID contextUUID) throws org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundException, org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.entities.resource.ResourceNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.contexts.ContextNotFoundExceptionorg.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
updateFacets
public org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode updateFacets() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getOperativeSystem
public static org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacet getOperativeSystem()
-
createHostingNode
public org.gcube.resourcemanagement.model.reference.entities.resources.HostingNode createHostingNode() throws org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException- Throws:
org.gcube.informationsystem.resourceregistry.api.exceptions.ResourceRegistryException
-
getState
public String getState()
-
getCPUFacets
public static List<org.gcube.resourcemanagement.model.reference.entities.facets.CPUFacet> getCPUFacets()
-
-