Package com.abiquo.hypervisor.model

Examples of com.abiquo.hypervisor.model.VirtualMachineDefinition$PrimaryDisk


        return this;
    }

    public VirtualMachineDefinition build()
    {
        final VirtualMachineDefinition virtualMachine = new VirtualMachineDefinition();
        // TODO check not null
        virtualMachine.setName(name);
        virtualMachine.setUuid(uuid);
        virtualMachine.setLayer(layer);
        virtualMachine.setHardwareConfiguration(hardConf);
        virtualMachine.setNetworkConfiguration(netConf);
        virtualMachine.setOperatingSystem(operatingSystem);
        virtualMachine.setBootstrap(bootstrapConf);
        virtualMachine.setAntiaffinityRule(antiaffinityRule);
        virtualMachine.setOwner(owner);

        virtualMachine.setPrimaryDisk(primaryDisk);
        virtualMachine.setSecondaryDisks(secondaryDisks);
        virtualMachine.setHA(isHA);
        virtualMachine.setImported(isImported);

        if (hasDvd)
        {
            virtualMachine.setCdrom(new Cdrom());
        }

        if (primaryDisk == null)
        {
            throw new BuilderException(VirtualMachineDescriptionBuilderError.NO_PRIMARY_DISK);
View Full Code Here


        final TransactionBlockList blocks = new TransactionBlockList();

        blocks.add(subscriptionDao.delete(subscription, redis).get());

        final VirtualMachineIdentifier vmId = new VirtualMachineIdentifier(subscription.getName());
        final VirtualMachineDefinition definition = findVirtualMachineDefinition(vmId);
        if (definition != null)
        {
            blocks.add(virtualMachineDefinitionDao.delete(definition, redis).get());
        }
View Full Code Here

        return this;
    }

    public VirtualMachineDefinition build()
    {
        final VirtualMachineDefinition virtualMachine = new VirtualMachineDefinition();
        // TODO check not null
        virtualMachine.setName(name);
        virtualMachine.setUuid(uuid);
        virtualMachine.setFriendlyName(friendlyName);
        virtualMachine.setLayer(layer);
        virtualMachine.setHardwareConfiguration(hardConf);
        virtualMachine.setNetworkConfiguration(netConf);
        virtualMachine.setOperatingSystem(operatingSystem);
        virtualMachine.setBootstrap(bootstrapConf);
        virtualMachine.setAntiaffinityRule(antiaffinityRule);
        virtualMachine.setOwner(owner);
        virtualMachine.setLoginUser(loginUser);
        virtualMachine.setLoginPassword(loginPassword);
        virtualMachine.setFirewallPolicies(firewallPolicies);
        virtualMachine.setDiskController(diskController);

        virtualMachine.setPrimaryDisk(primaryDisk);
        virtualMachine.setSecondaryDisks(secondaryDisks);
        virtualMachine.setHA(isHA);
        virtualMachine.setImported(isImported);

        if (hasDvd)
        {
            virtualMachine.setCdrom(new Cdrom());
        }

        if (primaryDisk == null)
        {
            throw new BuilderException(VirtualMachineDescriptionBuilderError.NO_PRIMARY_DISK);
View Full Code Here

        final TransactionBlockList blocks = new TransactionBlockList();

        blocks.add(subscriptionDao.delete(subscription, redis).get());

        final VirtualMachineIdentifier vmId = new VirtualMachineIdentifier(subscription.getName());
        final VirtualMachineDefinition definition = findVirtualMachineDefinition(vmId);
        if (definition != null)
        {
            blocks.add(virtualMachineDefinitionDao.delete(definition, redis).get());
        }
View Full Code Here

        }
    }

    private Optional<VirtualMachineDefinition> deserialize(final String bytes)
    {
        VirtualMachineDefinition definition = null;

        try
        {
            if (!isNullOrEmpty(bytes))
            {
View Full Code Here

        return this;
    }

    public VirtualMachineDefinition build()
    {
        final VirtualMachineDefinition virtualMachine = new VirtualMachineDefinition();
        // TODO check not null
        virtualMachine.setName(name);
        virtualMachine.setUuid(uuid);
        virtualMachine.setFriendlyName(friendlyName);
        virtualMachine.setLayer(layer);
        virtualMachine.setHardwareConfiguration(hardConf);
        virtualMachine.setNetworkConfiguration(netConf);
        virtualMachine.setOperatingSystem(operatingSystem);
        virtualMachine.setBootstrap(bootstrapConf);
        virtualMachine.setAntiaffinityRule(antiaffinityRule);
        virtualMachine.setOwner(owner);
        virtualMachine.setLoginUser(loginUser);
        virtualMachine.setLoginPassword(loginPassword);
        virtualMachine.setFirewallPolicies(firewallPolicies);
        virtualMachine.setDiskController(diskController);

        virtualMachine.setPrimaryDisk(primaryDisk);
        virtualMachine.setSecondaryDisks(secondaryDisks);
        virtualMachine.setHA(isHA);
        virtualMachine.setImported(isImported);

        if (hasDvd)
        {
            virtualMachine.setCdrom(new Cdrom());
        }

        if (primaryDisk == null)
        {
            throw new BuilderException(VirtualMachineDescriptionBuilderError.NO_PRIMARY_DISK);
View Full Code Here

TOP

Related Classes of com.abiquo.hypervisor.model.VirtualMachineDefinition$PrimaryDisk

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.