org.jclouds.cloudstack.compute.strategy
Interface OptionsConverter

All Known Implementing Classes:
AdvancedNetworkOptionsConverter, BasicNetworkOptionsConverter

public interface OptionsConverter

Convert template options into DeployVirtualMachineOptions. Expressed as an interface, because in CloudStack different zone network types have different requirements when it comes to networks and security groups.

Author:
Richard Downer

Method Summary
 DeployVirtualMachineOptions apply(CloudStackTemplateOptions templateOptions, Map<Long,Network> networks, long zoneId, DeployVirtualMachineOptions options)
          Convert a CloudStackTemplateOptions and apply to a DeployVirtualMachineOptions instance.
 

Method Detail

apply

DeployVirtualMachineOptions apply(CloudStackTemplateOptions templateOptions,
                                  Map<Long,Network> networks,
                                  long zoneId,
                                  DeployVirtualMachineOptions options)
Convert a CloudStackTemplateOptions and apply to a DeployVirtualMachineOptions instance.

Parameters:
templateOptions - the input set of options
networks - the networks available
zoneId - the zone of the new virtual machine
options - where the resulting set of options will be applied
Returns:
same as "options" parameter


Copyright © 2009-2012 jclouds. All Rights Reserved.