org.jclouds.smartos
Class SmartOSHostController
java.lang.Object
org.jclouds.smartos.SmartOSHostController
public class SmartOSHostController
- extends Object
A host machine that runs smartOS
|
Constructor Summary |
protected |
SmartOSHostController(com.google.common.base.Supplier<URI> provider,
String identity,
String credential,
org.jclouds.ssh.SshClient.Factory sshFactory,
org.jclouds.json.Json json)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
hostname
protected final String hostname
username
protected final String username
password
protected final String password
sshClientFactory
protected final org.jclouds.ssh.SshClient.Factory sshClientFactory
json
protected final org.jclouds.json.Json json
_connection
protected transient org.jclouds.ssh.SshClient _connection
SmartOSHostController
@Inject
protected SmartOSHostController(com.google.common.base.Supplier<URI> provider,
@Nullable
String identity,
@Nullable
String credential,
org.jclouds.ssh.SshClient.Factory sshFactory,
org.jclouds.json.Json json)
getDescription
public String getDescription()
getHostname
public String getHostname()
getUsername
public String getUsername()
getPassword
public String getPassword()
getSshClientFactory
public org.jclouds.ssh.SshClient.Factory getSshClientFactory()
getConnection
protected org.jclouds.ssh.SshClient getConnection()
exec
public String exec(String cmd)
vmList
public String vmList()
getVMIpAddresses
public Map<String,String> getVMIpAddresses(UUID vmId)
getAvailableImages
public Iterable<DataSet> getAvailableImages()
- What remotely available images are there in the cloud?
- Returns:
- Collection of datasets
getLocalDatasets
public Iterable<DataSet> getLocalDatasets()
getVMs
public Iterable<VM> getVMs()
createVM
public VM createVM(VmSpecification specification)
getVM
public VM getVM(UUID serverId)
getDataSet
public DataSet getDataSet(UUID imageId)
destroyHost
public void destroyHost(UUID uuid)
rebootHost
public void rebootHost(UUID uuid)
stopHost
public void stopHost(UUID uuid)
startHost
public void startHost(UUID uuid)
Copyright © 2009-2012 jclouds. All Rights Reserved.