Package com.abiquo.hypervisor.model.VirtualMachineDefinition

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


        disk.setPath(sourcePath);
        disk.setDestinationDatastore(destinationDatastore);
        disk.setRepositoryManagerAddress(repositoryManagerAddress);
        disk.setDiskControllerType(controllerType);

        primaryDisk = new PrimaryDisk();
        primaryDisk.setDiskStandard(disk);

        // If repository is not present; it is an imported one
        isImported = StringUtils.isBlank(disk.getRepository());
View Full Code Here


        disk.setLocation(address);
        disk.setDestinationDatastore(destinationDatastore);
        disk.setDiskControllerType(controllerType);
        disk.setName(name); // Used in XenServer

        primaryDisk = new PrimaryDisk();
        primaryDisk.setDiskStateful(disk);

        // Never will be imported, because it is stateful
        isImported = false;
View Full Code Here

    }

    private static boolean haveSamePrimaryDisk(final VirtualMachineDefinition one,
        final VirtualMachineDefinition other)
    {
        PrimaryDisk oldPrimary = one.getPrimaryDisk();
        PrimaryDisk newPrimary = other.getPrimaryDisk();

        boolean sameDisk = false;

        if (oldPrimary.isStandard() && newPrimary.isStandard())
        {
            sameDisk = sameDiskStandard(oldPrimary.getDiskStandard(), newPrimary.getDiskStandard());
        }
        else if (oldPrimary.isStateful() && newPrimary.isStateful())
        {
            sameDisk = sameDiskStateful(oldPrimary.getDiskStateful(), newPrimary.getDiskStateful());
        }

        return sameDisk;
    }
View Full Code Here

        disk.setPath(sourcePath);
        disk.setDestinationDatastore(destinationDatastore);
        disk.setRepositoryManagerAddress(repositoryManagerAddress);
        disk.setDiskControllerType(controllerType);

        primaryDisk = new PrimaryDisk();
        primaryDisk.setDiskStandard(disk);

        // If repository is not present; it is an imported one
        isImported = StringUtils.isBlank(disk.getRepository());
View Full Code Here

        disk.setLocation(address);
        disk.setDestinationDatastore(destinationDatastore);
        disk.setDiskControllerType(controllerType);
        disk.setName(name); // Used in XenServer

        primaryDisk = new PrimaryDisk();
        primaryDisk.setDiskStateful(disk);

        // Never will be imported, because it is stateful
        isImported = false;
View Full Code Here

        disk.setPath(sourcePath);
        disk.setDestinationDatastore(destinationDatastore);
        disk.setRepositoryManagerAddress(repositoryManagerAddress);
        disk.setDiskControllerType(controllerType);

        primaryDisk = new PrimaryDisk();
        primaryDisk.setDiskStandard(disk);

        // If repository is not present; it is an imported one
        isImported = StringUtils.isBlank(disk.getRepository());
View Full Code Here

        disk.setLocation(address);
        disk.setDestinationDatastore(destinationDatastore);
        disk.setDiskControllerType(controllerType);
        disk.setName(name); // Used in XenServer

        primaryDisk = new PrimaryDisk();
        primaryDisk.setDiskStateful(disk);

        // Never will be imported, because it is stateful
        isImported = false;
View Full Code Here

    }

    private static boolean haveSamePrimaryDisk(final VirtualMachineDefinition one,
        final VirtualMachineDefinition other)
    {
        PrimaryDisk oldPrimary = one.getPrimaryDisk();
        PrimaryDisk newPrimary = other.getPrimaryDisk();

        boolean sameDisk = false;

        if (oldPrimary.isStandard() && newPrimary.isStandard())
        {
            sameDisk = sameDiskStandard(oldPrimary.getDiskStandard(), newPrimary.getDiskStandard());
        }
        else if (oldPrimary.isStateful() && newPrimary.isStateful())
        {
            sameDisk = sameDiskStateful(oldPrimary.getDiskStateful(), newPrimary.getDiskStateful());
        }

        return sameDisk;
    }
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.