org.jclouds.smartos
Class SmartOSHostController

java.lang.Object
  extended by org.jclouds.smartos.SmartOSHostController

public class SmartOSHostController
extends Object

A host machine that runs smartOS


Nested Class Summary
static class SmartOSHostController.HostException
           
static class SmartOSHostController.NoResponseException
           
 
Field Summary
protected  org.jclouds.ssh.SshClient _connection
           
protected  String hostname
           
protected  org.jclouds.json.Json json
           
protected  String password
           
protected  org.jclouds.ssh.SshClient.Factory sshClientFactory
           
protected  String username
           
 
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)
           
 
Method Summary
 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  org.jclouds.ssh.SshClient getConnection()
           
 DataSet getDataSet(UUID imageId)
           
 String getDescription()
           
 String getHostname()
           
 Iterable<DataSet> getLocalDatasets()
           
 String getPassword()
           
 org.jclouds.ssh.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()
           
 
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 final org.jclouds.ssh.SshClient.Factory sshClientFactory

json

protected final org.jclouds.json.Json json

_connection

protected transient org.jclouds.ssh.SshClient _connection
Constructor Detail

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

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.