org.jclouds.smartos.compute.domain
Class SmartOSHost
java.lang.Object
org.jclouds.smartos.compute.domain.SmartOSHost
public class SmartOSHost
- extends Object
A host machine that runs smartOS
| 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 SshClient.Factory sshClientFactory
SmartOSHost
@Inject
protected SmartOSHost(com.google.common.base.Supplier<URI> provider,
@Nullable
String identity,
@Nullable
String credential,
SshClient.Factory sshFactory)
SmartOSHost
protected SmartOSHost(String hostname,
String username,
String password,
SshClient.Factory sshClientFactory)
builder
public static SmartOSHost.Builder builder()
toBuilder
public SmartOSHost.Builder toBuilder()
getDescription
public String getDescription()
getHostname
public String getHostname()
getUsername
public String getUsername()
getPassword
public String getPassword()
getSshClientFactory
public SshClient.Factory getSshClientFactory()
getConnection
protected 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.