public class SmartOSHostController extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SmartOSHostController.HostException |
static class |
SmartOSHostController.NoResponseException |
Modifier and Type | Field and Description |
---|---|
protected SshClient |
_connection |
protected String |
hostname |
protected Json |
json |
protected String |
password |
protected SshClient.Factory |
sshClientFactory |
protected String |
username |
Modifier | Constructor and Description |
---|---|
protected |
SmartOSHostController(com.google.common.base.Supplier<URI> provider,
String identity,
String credential,
SshClient.Factory sshFactory,
Json json) |
Modifier and Type | Method and Description |
---|---|
VM |
createVM(VmSpecification specification) |
void |
destroyHost(UUID uuid) |
String |
exec(String cmd) |
Iterable<DataSet> |
getAvailableImages()
What remotely available images are there in the cloud?
|
protected SshClient |
getConnection() |
DataSet |
getDataSet(UUID imageId) |
String |
getDescription() |
String |
getHostname() |
Iterable<DataSet> |
getLocalDatasets() |
String |
getPassword() |
SshClient.Factory |
getSshClientFactory() |
String |
getUsername() |
VM |
getVM(UUID serverId) |
Map<String,String> |
getVMIpAddresses(UUID vmId) |
Iterable<VM> |
getVMs() |
void |
rebootHost(UUID uuid) |
void |
startHost(UUID uuid) |
void |
stopHost(UUID uuid) |
String |
vmList() |
protected final String hostname
protected final String username
protected final String password
protected final SshClient.Factory sshClientFactory
protected final Json json
protected transient SshClient _connection
public String getDescription()
public String getHostname()
public String getUsername()
public String getPassword()
public SshClient.Factory getSshClientFactory()
protected SshClient getConnection()
public String vmList()
public Iterable<DataSet> getAvailableImages()
public VM createVM(VmSpecification specification)
public void destroyHost(UUID uuid)
public void rebootHost(UUID uuid)
public void stopHost(UUID uuid)
public void startHost(UUID uuid)
Copyright © 2009-2013 jclouds. All Rights Reserved.