@Singleton public class MachineController extends Object
Constructor and Description |
---|
MachineController(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager,
MachineUtils machineUtils,
ExecutionType executionType) |
Modifier and Type | Method and Description |
---|---|
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
|
@Named(value="jclouds.compute") protected Logger logger
@Inject public MachineController(com.google.common.base.Supplier<org.virtualbox_4_1.VirtualBoxManager> manager, MachineUtils machineUtils, ExecutionType executionType)
public org.virtualbox_4_1.ISession ensureMachineIsLaunched(String vmName)
public org.virtualbox_4_1.ISession ensureMachineHasPowerDown(String vmName)
public org.virtualbox_4_1.ISession ensureMachineIsShutdown(String vmName)
public void ensureMachineIsPaused(String vmName)
public void ensureMachineIsResumed(String vmName)
Copyright © 2009-2013 jclouds. All Rights Reserved.