public class CdoHelper extends Object
| Constructor and Description |
|---|
CdoHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAndUpdateLogicalDCModel(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel hbaseLogicalDCModel,
eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository cdoHypervisorRepository,
eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository cdoArchitectureTypeRepository,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
Update the Logical DC Model and its nodes.
|
static void |
checkAndUpdateLogicalLoadModel(eu.cactosfp7.infrastructuremodels.load.logical.LogicalLoadModel cdoLogicalLoadModel,
eu.cactosfp7.infrastructuremodels.load.logical.LogicalLoadModel hbaseLogicalLoadModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
Update the Logical Load Model and its nodes.
|
static void |
checkAndUpdatePhysicalDCModel(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel hbasePhysicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository cdoHypervisorRepository,
eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository cdoArchitectureTypeRepository,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
Update the Physical DC Model and its nodes.
|
static void |
checkAndUpdatePhysicalLoadModel(eu.cactosfp7.infrastructuremodels.load.physical.PhysicalLoadModel cdoPhysicalLoadModel,
eu.cactosfp7.infrastructuremodels.load.physical.PhysicalLoadModel hbasePhysicalLoadModel,
eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
Update the Physical Load Model and its nodes.
|
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine |
createVMModel(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel logicalDcModel,
eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository architectureTypeRepository,
int vcores,
int memory,
int diskspace,
String imageref,
Map<String,String> inputParameters) |
static void |
deleteVirtualMachine(eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine vm) |
static void |
deleteVirtualMachineInOffOrFailureState(eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine deleteVM) |
static void |
deleteVirtualMachineOld(eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine typeToDelete) |
static <T> eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository |
findArchitectureTypeRepository(List<T> models) |
static <T> eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository |
findHypervisorRepository(List<T> models) |
static <T> eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel |
findLogicalDCModel(List<T> models) |
static <T> eu.cactosfp7.infrastructuremodels.load.logical.LogicalLoadModel |
findLogicalLoadModel(List<T> models) |
static <T> eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel |
findPhysicalDCModel(List<T> models) |
static <T> eu.cactosfp7.infrastructuremodels.load.physical.PhysicalLoadModel |
findPhysicalLoadModel(List<T> models) |
static void |
fixReferencesBetweenPhysicalDCAndLogicalDC(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel)
Fix any references between the Physical DC and Logical DC Model.
|
static eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureType |
getArchitectureTypeByName(eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository repo,
String architectureTypeName) |
static eu.cactosfp7.infrastructuremodels.physicaldc.core.ComputeNode |
getComputeNodeById(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String computenodeId) |
static eu.cactosfp7.infrastructuremodels.physicaldc.core.ComputeNode |
getComputeNodeByName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String computenodeName) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.Hypervisor |
getEquivalentHypervisorFromLogicalDCModel(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel repo,
eu.cactosfp7.infrastructuremodels.physicaldc.core.ComputeNode computeNode) |
static eu.cactosfp7.infrastructuremodels.physicaldc.core.NetworkInterconnect |
getEquivalentNetworkInterconnectFromPhysicalDCModel(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel repo,
String name) |
static eu.cactosfp7.infrastructuremodels.physicaldc.core.PowerDistributionUnit |
getEquivalentPowerDistributionUnitFromPhysicalDCModel(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel repo,
eu.cactosfp7.infrastructuremodels.physicaldc.core.AbstractNode computeNode) |
static eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorType |
getHypervisorTypeByName(eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository repo,
String hypervisorTypeName) |
static eu.cactosfp7.infrastructuremodels.physicaldc.core.MemorySpecification |
getMemoryByNodeName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String name) |
static <T> T |
getModelByIdentifier(List<T> models,
String identifier) |
static <T> T |
getModelByIdentifierForNetworkInterconnects(List<T> models,
String identifier) |
static <T> T |
getModelByIdentifierForPowerDistributionUnits(List<T> models,
String identifier) |
static eu.cactosfp7.infrastructuremodels.physicaldc.core.ProcessingUnitSpecification |
getProcessingUnitByNodeName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String name) |
static eu.cactosfp7.infrastructuremodels.physicaldc.core.StorageSpecification |
getStorageSpecificationByNodeName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String name) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine |
getVirtualMachineById(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel lldc,
String virtualMachineId) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine |
getVirtualMachineByName(eu.cactosfp7.infrastructuremodels.logicaldc.core.Hypervisor repo,
String virtualMachineName) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMemory |
getVirtualMemoryByVMName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualProcessingUnit |
getVirtualProcessingUnitByVMName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VMImage |
getVMImageByName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VMImageInstance |
getVMImageInstanceByName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name) |
static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine |
printingGetVirtualMachineById(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel lldc,
String virtualMachineId,
boolean print) |
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine createVMModel(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel logicalDcModel,
eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository architectureTypeRepository,
int vcores,
int memory,
int diskspace,
String imageref,
Map<String,String> inputParameters)
public static void deleteVirtualMachine(eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine vm)
public static void deleteVirtualMachineOld(eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine typeToDelete)
public static void deleteVirtualMachineInOffOrFailureState(eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine deleteVM)
public static <T> eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel findPhysicalDCModel(List<T> models)
public static <T> eu.cactosfp7.infrastructuremodels.load.physical.PhysicalLoadModel findPhysicalLoadModel(List<T> models)
public static <T> eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel findLogicalDCModel(List<T> models)
public static <T> eu.cactosfp7.infrastructuremodels.load.logical.LogicalLoadModel findLogicalLoadModel(List<T> models)
public static <T> eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository findHypervisorRepository(List<T> models)
public static <T> eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository findArchitectureTypeRepository(List<T> models)
public static <T> T getModelByIdentifier(List<T> models, String identifier) throws Exception
Exceptionpublic static <T> T getModelByIdentifierForNetworkInterconnects(List<T> models, String identifier) throws Exception
Exceptionpublic static <T> T getModelByIdentifierForPowerDistributionUnits(List<T> models, String identifier) throws Exception
Exceptionpublic static void checkAndUpdatePhysicalDCModel(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel hbasePhysicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository cdoHypervisorRepository,
eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository cdoArchitectureTypeRepository,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
throws Exception
Exceptionpublic static void checkAndUpdateLogicalDCModel(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel hbaseLogicalDCModel,
eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository cdoHypervisorRepository,
eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository cdoArchitectureTypeRepository,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
throws Exception
Exceptionpublic static void fixReferencesBetweenPhysicalDCAndLogicalDC(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel)
public static void checkAndUpdatePhysicalLoadModel(eu.cactosfp7.infrastructuremodels.load.physical.PhysicalLoadModel cdoPhysicalLoadModel,
eu.cactosfp7.infrastructuremodels.load.physical.PhysicalLoadModel hbasePhysicalLoadModel,
eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
throws Exception
Exceptionpublic static void checkAndUpdateLogicalLoadModel(eu.cactosfp7.infrastructuremodels.load.logical.LogicalLoadModel cdoLogicalLoadModel,
eu.cactosfp7.infrastructuremodels.load.logical.LogicalLoadModel hbaseLogicalLoadModel,
eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
boolean updateUtilisation,
Collection<String> availableComputeNodes)
throws Exception
Exceptionpublic static eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureType getArchitectureTypeByName(eu.cactosfp7.infrastructuremodels.physicaldc.architecturetype.ArchitectureTypeRepository repo,
String architectureTypeName)
public static eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorType getHypervisorTypeByName(eu.cactosfp7.infrastructuremodels.logicaldc.hypervisor.HypervisorRepository repo,
String hypervisorTypeName)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine getVirtualMachineByName(eu.cactosfp7.infrastructuremodels.logicaldc.core.Hypervisor repo,
String virtualMachineName)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.Hypervisor getEquivalentHypervisorFromLogicalDCModel(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel repo,
eu.cactosfp7.infrastructuremodels.physicaldc.core.ComputeNode computeNode)
public static eu.cactosfp7.infrastructuremodels.physicaldc.core.NetworkInterconnect getEquivalentNetworkInterconnectFromPhysicalDCModel(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel repo,
String name)
public static eu.cactosfp7.infrastructuremodels.physicaldc.core.PowerDistributionUnit getEquivalentPowerDistributionUnitFromPhysicalDCModel(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel repo,
eu.cactosfp7.infrastructuremodels.physicaldc.core.AbstractNode computeNode)
public static eu.cactosfp7.infrastructuremodels.physicaldc.core.ComputeNode getComputeNodeByName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String computenodeName)
public static eu.cactosfp7.infrastructuremodels.physicaldc.core.ComputeNode getComputeNodeById(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String computenodeId)
public static eu.cactosfp7.infrastructuremodels.physicaldc.core.StorageSpecification getStorageSpecificationByNodeName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String name)
public static eu.cactosfp7.infrastructuremodels.physicaldc.core.MemorySpecification getMemoryByNodeName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String name)
public static eu.cactosfp7.infrastructuremodels.physicaldc.core.ProcessingUnitSpecification getProcessingUnitByNodeName(eu.cactosfp7.infrastructuremodels.physicaldc.core.PhysicalDCModel cdoPhysicalDCModel,
String name)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine getVirtualMachineById(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel lldc,
String virtualMachineId)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMachine printingGetVirtualMachineById(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel lldc,
String virtualMachineId,
boolean print)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VMImage getVMImageByName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VMImageInstance getVMImageInstanceByName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualMemory getVirtualMemoryByVMName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name)
public static eu.cactosfp7.infrastructuremodels.logicaldc.core.VirtualProcessingUnit getVirtualProcessingUnitByVMName(eu.cactosfp7.infrastructuremodels.logicaldc.core.LogicalDCModel cdoLogicalDCModel,
String name)