org.gcube.vremanagement.resourcemanager.impl.deployment
Class VirtualNodeManager

java.lang.Object
  extended by org.gcube.vremanagement.resourcemanager.impl.deployment.VirtualNodeManager

public class VirtualNodeManager
extends java.lang.Object

Manager for VirtualNodes

Author:
Manuele Simi (ISTI-CNR)

Constructor Summary
VirtualNodeManager()
           
 
Method Summary
static VirtualNode getNode(java.lang.String ID, GCUBEScope scope)
          Gets or builds the VirtualNode
static void setNodes(java.util.Map<java.lang.String,VirtualNode> nodes)
          Assigns the initial set of nodes to the manager.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VirtualNodeManager

public VirtualNodeManager()
Method Detail

getNode

public static VirtualNode getNode(java.lang.String ID,
                                  GCUBEScope scope)
                           throws VirtualNode.NoGHNFoundException
Gets or builds the VirtualNode

Parameters:
ID - the node identifier
scope - the deployment scope
Returns:
the Virtual Node
Throws:
VirtualNode.NoGHNFoundException - if the node does not exist

setNodes

public static void setNodes(java.util.Map<java.lang.String,VirtualNode> nodes)
Assigns the initial set of nodes to the manager.

Parameters:
nodes - the set of nodes