org.jclouds.virtualbox.functions
Class CreateAndRegisterMachineFromIsoIfNotAlreadyExists

java.lang.Object
  extended by org.jclouds.virtualbox.functions.CreateAndRegisterMachineFromIsoIfNotAlreadyExists
All Implemented Interfaces:
com.google.common.base.Function<MasterSpec,org.virtualbox_4_1.IMachine>

@Singleton
public class CreateAndRegisterMachineFromIsoIfNotAlreadyExists
extends Object
implements com.google.common.base.Function<MasterSpec,org.virtualbox_4_1.IMachine>

Author:
Mattias Holmqvist

Field Summary
protected  Logger logger
           
 
Constructor Summary
CreateAndRegisterMachineFromIsoIfNotAlreadyExists(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager, MachineUtils machineUtils, String workingDir)
           
 
Method Summary
 org.virtualbox_4_1.IMachine apply(MasterSpec launchSpecification)
           
 void ensureMachineHasStorageControllerNamed(String vmName, StorageController storageController)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.google.common.base.Function
equals
 

Field Detail

logger

@Named(value="jclouds.compute")
protected Logger logger
Constructor Detail

CreateAndRegisterMachineFromIsoIfNotAlreadyExists

@Inject
public CreateAndRegisterMachineFromIsoIfNotAlreadyExists(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager,
                                                                MachineUtils machineUtils,
                                                                @Named(value="jclouds.virtualbox.workingdir")
                                                                String workingDir)
Method Detail

apply

public org.virtualbox_4_1.IMachine apply(@Nullable
                                         MasterSpec launchSpecification)
Specified by:
apply in interface com.google.common.base.Function<MasterSpec,org.virtualbox_4_1.IMachine>

ensureMachineHasStorageControllerNamed

public void ensureMachineHasStorageControllerNamed(String vmName,
                                                   StorageController storageController)


Copyright © 2009-2012 jclouds. All Rights Reserved.