org.jclouds.smartos.compute.domain
Class SmartOSHost

java.lang.Object
  extended by org.jclouds.smartos.compute.domain.SmartOSHost

public class SmartOSHost
extends Object

A host machine that runs smartOS


Nested Class Summary
static class SmartOSHost.Builder
           
static class SmartOSHost.HostException
           
static class SmartOSHost.NoResponseException
           
 
Field Summary
protected  String hostname
           
protected  String password
           
protected  SshClient.Factory sshClientFactory
           
protected  String username
           
 
Constructor Summary
protected SmartOSHost(String hostname, String username, String password, SshClient.Factory sshClientFactory)
           
protected SmartOSHost(com.google.common.base.Supplier<URI> provider, String identity, String credential, SshClient.Factory sshFactory)
           
 
Method Summary
static SmartOSHost.Builder builder()
           
 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)
           
 SmartOSHost.Builder toBuilder()
           
 String vmList()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

hostname

protected final String hostname

username

protected final String username

password

protected final String password

sshClientFactory

protected SshClient.Factory sshClientFactory
Constructor Detail

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)
Method Detail

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.