org.jclouds.virtualbox.util
Class MachineController
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
@Named(value="jclouds.compute")
protected Logger logger
MachineController
@Inject
public MachineController(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager,
MachineUtils machineUtils,
ExecutionType executionType)
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.