Class HostingNodeManager
java.lang.Object
org.gcube.smartgears.connector.resourceregistry.resourcemanager.HostingNodeManager
- Author:
- Luca Frosini (ISTI-CNR)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHostingNodeManager(org.gcube.smartgears.context.container.ContainerContext containerContext, org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisher resourceRegistryPublisher) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToContext(UUID contextUUID, String context) voidorg.gcube.resourcemanagement.model.reference.entities.resources.HostingNodestatic List<org.gcube.resourcemanagement.model.reference.entities.facets.CPUFacet>org.gcube.resourcemanagement.model.reference.entities.resources.HostingNodestatic org.gcube.resourcemanagement.model.reference.entities.facets.SoftwareFacetgetState()voidremoveFromContext(UUID contextUUID, String context) voidorg.gcube.resourcemanagement.model.reference.entities.resources.HostingNode
-
Field Details
-
MEMORY_TYPE
- See Also:
-
MEMORY_TYPE_RAM
- See Also:
-
MEMORY_TYPE_JVM
- See Also:
-
JVM_MAX_MEMORY
- See Also:
-
MESSAGE
- See Also:
-
CPU_PROCESSOR
- See Also:
-
CPU_VENDOR_ID
- See Also:
-
CPU_MODEL_NAME
- See Also:
-
CPU_CPU_MHZ
- See Also:
-
CPU_MODEL_T
- See Also:
-
CPU_MODEL_B
- See Also:
-
CPU_MODEL_NUMBER
- See Also:
-
-
Constructor Details
-
HostingNodeManager
public HostingNodeManager(org.gcube.smartgears.context.container.ContainerContext containerContext, org.gcube.informationsystem.resourceregistry.publisher.ResourceRegistryPublisher resourceRegistryPublisher)
-
-
Method Details
-
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, String context) 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, String context) 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
-
getCPUFacets
public static List<org.gcube.resourcemanagement.model.reference.entities.facets.CPUFacet> getCPUFacets() -
getContextsUUID
- Throws:
Exception
-