org.jclouds.virtualbox.util
Class MachineController

java.lang.Object
  extended by org.jclouds.virtualbox.util.MachineController

@Singleton
public class MachineController
extends Object

Utilities to manage VirtualBox machine life cycle.

Author:
Adrian Cole, Mattias Holmqvist, Andrea Turli

Field Summary
protected  Logger logger
           
 
Constructor Summary
MachineController(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager, MachineUtils machineUtils, ExecutionType executionType)
           
 
Method Summary
 org.virtualbox_4_1.ISession ensureMachineHasPowerDown(String vmName)
           
 org.virtualbox_4_1.ISession ensureMachineIsLaunched(String vmName)
           
 void ensureMachineIsPaused(String vmName)
           
 void ensureMachineIsResumed(String vmName)
           
 org.virtualbox_4_1.ISession ensureMachineIsShutdown(String vmName)
          if machine supports ACPI it can be shutdown gently - not powerdown() http://askubuntu.com/questions/82015/shutting-down-ubuntu-server-running-in-headless-virtualbox
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

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

MachineController

@Inject
public MachineController(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager,
                                MachineUtils machineUtils,
                                ExecutionType executionType)
Method Detail

ensureMachineIsLaunched

public org.virtualbox_4_1.ISession ensureMachineIsLaunched(String vmName)

ensureMachineHasPowerDown

public org.virtualbox_4_1.ISession ensureMachineHasPowerDown(String vmName)

ensureMachineIsShutdown

public org.virtualbox_4_1.ISession ensureMachineIsShutdown(String vmName)
if machine supports ACPI it can be shutdown gently - not powerdown() http://askubuntu.com/questions/82015/shutting-down-ubuntu-server-running-in-headless-virtualbox


ensureMachineIsPaused

public void ensureMachineIsPaused(String vmName)

ensureMachineIsResumed

public void ensureMachineIsResumed(String vmName)


Copyright © 2009-2012 jclouds. All Rights Reserved.