Package com.abiquo.hypervisor.model

Examples of com.abiquo.hypervisor.model.VirtualMachineIdentifier


    }

    public static VirtualMachineStateChange newVirtualMachineStateChange(
        final String virtualMachine, final VirtualMachineEvent event)
    {
        return new VirtualMachineStateChange(new VirtualMachineIdentifier(virtualMachine), event);
    }
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

    public PublicIP(final String ip, final String providerId, final String virtualMachineName)
    {
        this.ip = ip;
        this.providerId = providerId;
        virtualMachineIdentifier =
            new VirtualMachineIdentifier(requireNonNull(virtualMachineName, "virtualMachineName"));
    }
View Full Code Here

    }

    public static VirtualMachineStateChange newVirtualMachineStateChange(
        final String virtualMachine, final VirtualMachineEvent event)
    {
        return new VirtualMachineStateChange(new VirtualMachineIdentifier(virtualMachine), event);
    }
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

    }

    @Override
    public Optional<VirtualMachineDefinition> find(final String name, final Jedis redis)
    {
        return find(new VirtualMachineIdentifier(name), redis);
    }
View Full Code Here

     * @param outOfService if not suitable, otherwise online.
     */
    public HealthState(final String virtualMachineName, final boolean outOfService)
    {
        this(
            new VirtualMachineIdentifier(requireNonNull(virtualMachineName, "virtualMachineName")),
            outOfService);
    }
View Full Code Here

TOP

Related Classes of com.abiquo.hypervisor.model.VirtualMachineIdentifier

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.