org.jclouds.virtualbox.functions
Class CloneAndRegisterMachineFromIMachineIfNotAlreadyExists

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

public class CloneAndRegisterMachineFromIMachineIfNotAlreadyExists
extends Object
implements com.google.common.base.Function<CloneSpec,org.virtualbox_4_1.IMachine>

CloneAndRegisterMachineFromIMachineIfNotAlreadyExists will take care of the followings: - cloning the master - register the clone machine.

Author:
Andrea Turli

Field Summary
protected  Logger logger
           
 
Constructor Summary
CloneAndRegisterMachineFromIMachineIfNotAlreadyExists(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager, String workingDir, MachineUtils machineUtils)
           
 
Method Summary
 org.virtualbox_4_1.IMachine apply(CloneSpec cloneSpec)
           
 
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

CloneAndRegisterMachineFromIMachineIfNotAlreadyExists

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

apply

public org.virtualbox_4_1.IMachine apply(CloneSpec cloneSpec)
Specified by:
apply in interface com.google.common.base.Function<CloneSpec,org.virtualbox_4_1.IMachine>


Copyright © 2009-2012 jclouds. All Rights Reserved.